List inventories
Get stock levels per product and warehouse.
POST
/ bigblue.storeapi.v1.PublicAPI/ ListInventoriesReturns one row per product and warehouse. Both filters are optional. Without filters, you get every product in every warehouse.
Request body
productstringOnly return this product. Bundle IDs aren't accepted.
Pattern
^([A-Za-z0-9]{4}-[A-Za-z0-9]{6}-[A-Za-z0-9]{4}|)$warehousestringOnly return this warehouse.
Pattern
^([A-Za-z]{2}-[A-Za-z]{3}-[0-9]{3}|)$page_sizeintegerdefault 1000Rows per page.
Maximum 1,000
page_tokenstringThe
next_page_token from the previous response.Responses
inventoriesInventory[]One row per product and warehouse.
next_page_tokenstringToken for the next page. Missing on the last page.
Inventory
productstringProduct ID.
Pattern
^[A-Za-z0-9]{4}-[A-Za-z0-9]{6}-[A-Za-z0-9]{4}$warehousestringWarehouse ID.
Pattern
^[A-Za-z]{2}-[A-Za-z]{3}-[0-9]{3}$availableintegerUnits you can sell now.
in_warehouseintegerGood units in the warehouse, including reserved units.
damagedintegerDamaged units.
quality_controlintegerUnits held for inspection.
expiredintegerExpired units.
backorderedintegerUnits ordered that stock couldn't cover.
lotsInventory.Lot[]Counts per lot. Up to 100 lots.
See Stock counts for details.
{
"code": "invalid_argument",
"msg": "page_size value must be less than or equal to 1000",
"meta": { "argument": "page_size" }
}POST
/ bigblue.storeapi.v1.PublicAPI/ ListInventories{ "page_size": 1000 }{ "product": "BGBL-COFBEA-1KGX", "warehouse": "FR-CDG-001" }{
"inventories": [
{
"product": "BGBL-COFBEA-1KGX",
"warehouse": "FR-CDG-001",
"available": 348,
"in_warehouse": 372,
"damaged": 4,
"quality_control": 480,
"expired": 12,
"lots": [
{
"lot_code": "L2026-02",
"lot_expiration_date": "2027-02-28",
"in_warehouse": 372,
"damaged": 4,
"expired": 12
},
{
"lot_code": "L2026-04",
"lot_expiration_date": "2027-04-30",
"quality_control": 480
}
]
}
]
}All units in lot L2026-04 are in quality control, so they aren't available.