Creates stock item batches
Name | Type | Description |
---|---|---|
batches | List<StockItemBatch> |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/Stock/CreateStockBatches
Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE
This is an example of the request structure. Results will vary depending on your data.
batches=[
{
"BatchId": 1,
"SKU": "sample string 2",
"InventoryTrackingType": 3,
"StockItemId": "dac4fc9c-5a3f-4afa-90b8-b8c34f4a6cb7",
"BatchNumber": "sample string 5",
"ExpiresOn": "2023-01-10T13:49:46.1497048+00:00",
"SellBy": "2023-01-10T13:49:46.1507015+00:00",
"Inventory": [
{
"BatchInventoryId": 1,
"BatchId": 2,
"StockLocationId": "09a7c044-b6a8-4172-a32a-6ec29ab72264",
"BinRack": "sample string 4",
"PrioritySequence": 5,
"Quantity": 6,
"StockValue": 7.0,
"StartQuantity": 8,
"PickedQuantity": 9,
"BatchStatus": "Available",
"IsDeleted": true,
"WarehouseBinrackStandardType": 1,
"WarehouseBinrackTypeName": "sample string 12",
"InTransfer": 1,
"BinRackId": 1,
"WarehouseBinrackTypeId": 1
}
],
"IsDeleted": true
}
]
This is an example of the response JSON. Results will vary depending on your data.
[
{
"BatchId": 1,
"SKU": "sample string 2",
"InventoryTrackingType": 3,
"StockItemId": "be0b13cf-37ee-4e03-9ddc-f2ddf410c246",
"BatchNumber": "sample string 5",
"ExpiresOn": "2023-01-10T13:49:55.1114282+00:00",
"SellBy": "2023-01-10T13:49:55.1114282+00:00",
"Inventory": [
{
"BatchInventoryId": 1,
"BatchId": 2,
"StockLocationId": "269a2ed4-34ce-403a-8fcc-91fa2ceb7be2",
"BinRack": "sample string 4",
"PrioritySequence": 5,
"Quantity": 6,
"StockValue": 7.0,
"StartQuantity": 8,
"PickedQuantity": 9,
"BatchStatus": "Available",
"IsDeleted": true,
"WarehouseBinrackStandardType": 1,
"WarehouseBinrackTypeName": "sample string 12",
"InTransfer": 1,
"BinRackId": 1,
"WarehouseBinrackTypeId": 1
}
],
"IsDeleted": true
}
]