POST api/Stock
Add stock
Request Information
URI Parameters
None.
Body Parameters
Message with stock items to add
PutStockMessageRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Header | MessageHeader |
None. |
|
| Stock | Collection of StockPutItem |
None. |
|
| Footer | MessageFooter |
None. |
Request Formats
application/json, text/json
Sample:
{
"Header": {
"Version": "string 1",
"Identification": "string 2",
"Sender": "string 3"
},
"Stock": [
{
"CompanyIdentifier": "string 1",
"ProductIdentifier": "string 2",
"WarehouseIdentifier": "string 3",
"StockLocationIdentifier": "string 4",
"URNIdentifier": "string 5",
"URNTypeIdentifier": "string 6",
"Quantity": 7,
"Blocked": true,
"BlockedReason": "string 9",
"Lot": {
"CompanyIdentifier": "string 1",
"BatchNumber": "string 2",
"LotNumber": "string 3",
"MinimalExpirationDate": "2025-12-06T04:00:27.5861916+01:00",
"MinimalExpirationDateSpecified": true,
"MaximalExpirationDate": "2025-12-06T04:00:27.5861916+01:00",
"MaximalExpirationDateSpecified": true,
"LotDate": "2025-12-06T04:00:27.5861916+01:00",
"LotDateSpecified": true
}
},
{
"CompanyIdentifier": "string 1",
"ProductIdentifier": "string 2",
"WarehouseIdentifier": "string 3",
"StockLocationIdentifier": "string 4",
"URNIdentifier": "string 5",
"URNTypeIdentifier": "string 6",
"Quantity": 7,
"Blocked": true,
"BlockedReason": "string 9",
"Lot": {
"CompanyIdentifier": "string 1",
"BatchNumber": "string 2",
"LotNumber": "string 3",
"MinimalExpirationDate": "2025-12-06T04:00:27.5861916+01:00",
"MinimalExpirationDateSpecified": true,
"MaximalExpirationDate": "2025-12-06T04:00:27.5861916+01:00",
"MaximalExpirationDateSpecified": true,
"LotDate": "2025-12-06T04:00:27.5861916+01:00",
"LotDateSpecified": true
}
}
],
"Footer": {
"TotalRecords": 1,
"Records": 2
}
}
application/xml, text/xml
Sample:
<PutStockMessageRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Header>
<Version>string 1</Version>
<Identification>string 2</Identification>
<Sender>string 3</Sender>
</Header>
<Stock>
<StockPutItem>
<CompanyIdentifier>string 1</CompanyIdentifier>
<ProductIdentifier>string 2</ProductIdentifier>
<WarehouseIdentifier>string 3</WarehouseIdentifier>
<StockLocationIdentifier>string 4</StockLocationIdentifier>
<URNIdentifier>string 5</URNIdentifier>
<URNTypeIdentifier>string 6</URNTypeIdentifier>
<Quantity>7</Quantity>
<Blocked>true</Blocked>
<BlockedReason>string 9</BlockedReason>
<Lot>
<CompanyIdentifier>string 1</CompanyIdentifier>
<BatchNumber>string 2</BatchNumber>
<LotNumber>string 3</LotNumber>
<MinimalExpirationDate>2025-12-06T04:00:27.5861916+01:00</MinimalExpirationDate>
<MinimalExpirationDateSpecified>true</MinimalExpirationDateSpecified>
<MaximalExpirationDate>2025-12-06T04:00:27.5861916+01:00</MaximalExpirationDate>
<MaximalExpirationDateSpecified>true</MaximalExpirationDateSpecified>
<LotDate>2025-12-06T04:00:27.5861916+01:00</LotDate>
<LotDateSpecified>true</LotDateSpecified>
</Lot>
</StockPutItem>
<StockPutItem>
<CompanyIdentifier>string 1</CompanyIdentifier>
<ProductIdentifier>string 2</ProductIdentifier>
<WarehouseIdentifier>string 3</WarehouseIdentifier>
<StockLocationIdentifier>string 4</StockLocationIdentifier>
<URNIdentifier>string 5</URNIdentifier>
<URNTypeIdentifier>string 6</URNTypeIdentifier>
<Quantity>7</Quantity>
<Blocked>true</Blocked>
<BlockedReason>string 9</BlockedReason>
<Lot>
<CompanyIdentifier>string 1</CompanyIdentifier>
<BatchNumber>string 2</BatchNumber>
<LotNumber>string 3</LotNumber>
<MinimalExpirationDate>2025-12-06T04:00:27.5861916+01:00</MinimalExpirationDate>
<MinimalExpirationDateSpecified>true</MinimalExpirationDateSpecified>
<MaximalExpirationDate>2025-12-06T04:00:27.5861916+01:00</MaximalExpirationDate>
<MaximalExpirationDateSpecified>true</MaximalExpirationDateSpecified>
<LotDate>2025-12-06T04:00:27.5861916+01:00</LotDate>
<LotDateSpecified>true</LotDateSpecified>
</Lot>
</StockPutItem>
</Stock>
<Footer>
<TotalRecords>1</TotalRecords>
<Records>2</Records>
</Footer>
</PutStockMessageRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Ok: Message with result. Invalid APIKey: HttpStatusCode.Conflict
PutStockMessageResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Header | MessageHeader |
None. |
|
| Stock | Collection of StockPutResult |
None. |
|
| Footer | MessageFooter |
None. |
Response Formats
application/json, text/json
Sample:
{
"Header": {
"Version": "string 1",
"Identification": "string 2",
"Sender": "string 3"
},
"Stock": [
{
"ProcessingStatus": "P",
"StockImportResult": "string 1",
"CompanyIdentifier": "string 2",
"ProductIdentifier": "string 3",
"WarehouseIdentifier": "string 4",
"StockLocationIdentifier": "string 5",
"URNIdentifier": "string 6",
"URNTypeIdentifier": "string 7",
"Quantity": 8,
"Blocked": true,
"BlockedReason": "string 10",
"Lot": {
"CompanyIdentifier": "string 1",
"BatchNumber": "string 2",
"LotNumber": "string 3",
"MinimalExpirationDate": "2025-12-06T04:00:27.6018247+01:00",
"MinimalExpirationDateSpecified": true,
"MaximalExpirationDate": "2025-12-06T04:00:27.6018247+01:00",
"MaximalExpirationDateSpecified": true,
"LotDate": "2025-12-06T04:00:27.6018247+01:00",
"LotDateSpecified": true
}
},
{
"ProcessingStatus": "P",
"StockImportResult": "string 1",
"CompanyIdentifier": "string 2",
"ProductIdentifier": "string 3",
"WarehouseIdentifier": "string 4",
"StockLocationIdentifier": "string 5",
"URNIdentifier": "string 6",
"URNTypeIdentifier": "string 7",
"Quantity": 8,
"Blocked": true,
"BlockedReason": "string 10",
"Lot": {
"CompanyIdentifier": "string 1",
"BatchNumber": "string 2",
"LotNumber": "string 3",
"MinimalExpirationDate": "2025-12-06T04:00:27.6018247+01:00",
"MinimalExpirationDateSpecified": true,
"MaximalExpirationDate": "2025-12-06T04:00:27.6018247+01:00",
"MaximalExpirationDateSpecified": true,
"LotDate": "2025-12-06T04:00:27.6018247+01:00",
"LotDateSpecified": true
}
}
],
"Footer": {
"TotalRecords": 1,
"Records": 2
}
}
application/xml, text/xml
Sample:
<PutStockMessageResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Header>
<Version>string 1</Version>
<Identification>string 2</Identification>
<Sender>string 3</Sender>
</Header>
<Stock>
<StockPutResult>
<CompanyIdentifier>string 2</CompanyIdentifier>
<ProductIdentifier>string 3</ProductIdentifier>
<WarehouseIdentifier>string 4</WarehouseIdentifier>
<StockLocationIdentifier>string 5</StockLocationIdentifier>
<URNIdentifier>string 6</URNIdentifier>
<URNTypeIdentifier>string 7</URNTypeIdentifier>
<Quantity>8</Quantity>
<Blocked>true</Blocked>
<BlockedReason>string 10</BlockedReason>
<Lot>
<CompanyIdentifier>string 1</CompanyIdentifier>
<BatchNumber>string 2</BatchNumber>
<LotNumber>string 3</LotNumber>
<MinimalExpirationDate>2025-12-06T04:00:27.6018247+01:00</MinimalExpirationDate>
<MinimalExpirationDateSpecified>true</MinimalExpirationDateSpecified>
<MaximalExpirationDate>2025-12-06T04:00:27.6018247+01:00</MaximalExpirationDate>
<MaximalExpirationDateSpecified>true</MaximalExpirationDateSpecified>
<LotDate>2025-12-06T04:00:27.6018247+01:00</LotDate>
<LotDateSpecified>true</LotDateSpecified>
</Lot>
<ProcessingStatus>P</ProcessingStatus>
<StockImportResult>string 1</StockImportResult>
</StockPutResult>
<StockPutResult>
<CompanyIdentifier>string 2</CompanyIdentifier>
<ProductIdentifier>string 3</ProductIdentifier>
<WarehouseIdentifier>string 4</WarehouseIdentifier>
<StockLocationIdentifier>string 5</StockLocationIdentifier>
<URNIdentifier>string 6</URNIdentifier>
<URNTypeIdentifier>string 7</URNTypeIdentifier>
<Quantity>8</Quantity>
<Blocked>true</Blocked>
<BlockedReason>string 10</BlockedReason>
<Lot>
<CompanyIdentifier>string 1</CompanyIdentifier>
<BatchNumber>string 2</BatchNumber>
<LotNumber>string 3</LotNumber>
<MinimalExpirationDate>2025-12-06T04:00:27.6018247+01:00</MinimalExpirationDate>
<MinimalExpirationDateSpecified>true</MinimalExpirationDateSpecified>
<MaximalExpirationDate>2025-12-06T04:00:27.6018247+01:00</MaximalExpirationDate>
<MaximalExpirationDateSpecified>true</MaximalExpirationDateSpecified>
<LotDate>2025-12-06T04:00:27.6018247+01:00</LotDate>
<LotDateSpecified>true</LotDateSpecified>
</Lot>
<ProcessingStatus>P</ProcessingStatus>
<StockImportResult>string 1</StockImportResult>
</StockPutResult>
</Stock>
<Footer>
<TotalRecords>1</TotalRecords>
<Records>2</Records>
</Footer>
</PutStockMessageResponse>