POST TidaexWarehouseManagement/AddStockItem

Request Information

URI Parameters

None.

Body Parameters

AddStockItemParameters
NameDescriptionTypeAdditional information
TRefXID

integer

None.

ExternalPayload

TidaexExternalPayload

None.

StockCode

string

None.

Quantity

decimal number

None.

DepotId

integer

None.

LineId

integer

None.

Payload

TidaexExternalPayload

None.

Request Formats

application/json, text/json

Sample:
{
  "TRefXID": 1,
  "ExternalPayload": {
    "UniqueId": "sample string 1"
  },
  "StockCode": "sample string 2",
  "Quantity": 3.0,
  "DepotId": 4,
  "LineId": 1,
  "Payload": {
    "UniqueId": "sample string 1"
  }
}

application/xml, text/xml

Sample:
<AddStockItemParameters xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cam.Cameo.Structures.WarehouseManagement.Tidaex">
  <DepotId>4</DepotId>
  <ExternalPayload>
    <UniqueId>sample string 1</UniqueId>
  </ExternalPayload>
  <LineId>1</LineId>
  <Payload>
    <UniqueId>sample string 1</UniqueId>
  </Payload>
  <Quantity>3</Quantity>
  <StockCode>sample string 2</StockCode>
  <TRefXID>1</TRefXID>
</AddStockItemParameters>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AddStockItemParameters'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.