The stock level object
productobjectThe product.
Fields:
id, sku, barcode, name· detailswarehouseobjectThe warehouse holding the stock.
Fields:
id, name· detailson_handstring (decimal)Quantity physically in the warehouse.
reservedstring (decimal)Quantity held by orders and reservations still in force.
availablestring (decimal)What can still be sold here:
on_handminusreserved, never below zero, and0where the warehouse does not count as available stock.is_counted_as_availablebooleanFalse for warehouses kept out of available stock (quarantine, damaged goods and the like).
{
"product": {
"id": "01K2ZQ7M4X8N6P3R9T5V7W1Y2A",
"sku": "TEA-500",
"barcode": "6260000000017",
"name": "Black tea 500 g"
},
"warehouse": {
"id": "01K2ZQ7M4X8N6P3R9T5V7W1Y2A",
"name": "Main warehouse"
},
"on_hand": "2.0000",
"reserved": "2.0000",
"available": "2.0000",
"is_counted_as_available": true
}