Used to create new batches
Name | Type | Description |
---|---|---|
batches | IEnumerable<StockItemBatch> | List of batches to create |
The following request format is required for this method.
POST https://eu-ext.linnworks.net/api/Inventory/CreateBatches
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": "db363773-b478-450e-ace3-ef46705ac963",
"BatchNumber": "sample string 5",
"ExpiresOn": "2022-03-09T13:04:03.0214124+00:00",
"SellBy": "2022-03-09T13:04:03.0214124+00:00",
"Inventory": [
{
"BatchInventoryId": 1,
"BatchId": 2,
"StockLocationId": "1136e086-b0e8-41e3-9090-0812e1d014a3",
"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.