To get stock levels of products in the system use the GET api call
/api/Product/StockLevels
You'll need to supply the API key and WarehouseId.
There is also an option Param called Breakdown. Set this to true if you want to get a breakdown of the Stock held i.e. Best Before Dates, Batch No, Serial No
e.g.
[
{
"ProductId": 1,
"WarehouseId": 3,
"ClientId": 3,
"SKU": "MY-SKU",
"Level": 10,
"PreOrderable": true,
"Bundle": false,
"LowStockLevel": 0,
"Breakdown": []
}
]
With the breakdown Param set to True
[
{
"ProductId": 1,
"WarehouseId": 3,
"ClientId": 3,
"SKU": "MY-SKU",
"Level": 10,
"PreOrderable": true,
"Bundle": false,
"LowStockLevel": 0,
"Breakdown": [ {
"Quantity": 5,
"BatchNo": "BATCH-1",
"SerialNo": "SERIAL1234",
"BestBefore": "05-May-2019",
"Type": "Allocation"
},{
"Quantity": 5,
"BatchNo": "BATCH-2",
"SerialNo": "SERIAL123",
"BestBefore": "01-June-2019",
"Type": "Allocation"
}]
}]
Comments
0 comments
Article is closed for comments.