Used to get batch info by stock item id and location id
Name | Type | Description |
---|---|---|
request | GetStockItemBatchesByLocationRequest | Contains Guid StockItemId, Guid LocationId, bool OnlyAvailable |
The following request format is required for this method.
POST https://eu-ext.linnworks.net/api/Inventory/GetStockItemBatchesByLocation
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.
request={
"StockItemId": "e62c1ae8-9cd1-4f00-aca6-099be5a55af1",
"LocationId": "e63a526e-6e1f-4b7f-b229-c3362b711e73",
"OnlyAvailable": true
}
This is an example of the response JSON. Results will vary depending on your data.
{
"Batches": [
{
"BatchId": 1,
"SKU": "sample string 2",
"InventoryTrackingType": 3,
"StockItemId": "33a5b469-2535-4856-b448-3934627e854b",
"BatchNumber": "sample string 5",
"ExpiresOn": "2022-03-09T13:04:14.421019+00:00",
"SellBy": "2022-03-09T13:04:14.421019+00:00",
"Inventory": [
{
"BatchInventoryId": 1,
"BatchId": 2,
"StockLocationId": "0a5bc74f-0a62-4cba-a737-fe6a20e7a6af",
"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
}
]
}