Used to get batch info for stock item for all locations
Name | Type | Description |
---|---|---|
stockItemId | Guid | Item id |
onlyAvailable | Boolean | If true, only available batches will be returned |
stockLocationId | Nullable<Guid> |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/Inventory/GetBatchesByStockItemId
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.
stockItemId=81780aea-65e8-4ff1-8ce5-9289275da361&onlyAvailable=true&stockLocationId=facee24c-d0a2-41b9-8c33-8f53d9c3755d
This is an example of the response JSON. Results will vary depending on your data.
[
{
"BatchId": 1,
"SKU": "sample string 2",
"InventoryTrackingType": 3,
"StockItemId": "f8b843c7-92c9-4e79-9ee5-362da10cb4fa",
"BatchNumber": "sample string 5",
"ExpiresOn": "2023-01-10T13:49:55.1917246+00:00",
"SellBy": "2023-01-10T13:49:55.1917246+00:00",
"Inventory": [
{
"BatchInventoryId": 1,
"BatchId": 2,
"StockLocationId": "14aa6e77-3130-4877-a181-f2a5e5bf5c31",
"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
}
]