Retrieve inventory
GET
/inventory/{product}Read available stock, variation keys and the inventory version.
Bearer token ·
inventory:readPath parameters
productintegerrequiredStorlio product ID belonging to this store.
Min: 1.
Integration notes
- An untracked product returns version 0 and quantity null. Inventory IDs identify separate stock-tracking lifetimes.
Responses
Request successful.
Response fields
dataobjectChild fields
productIdstringStorlio product ID.
inventoryIdstring | nullStock tracking record ID; compare versions within this record.
versionintegerCurrent resource version.
Min: 0.
trackedbooleanWhether inventory tracking is enabled.
quantityinteger | nullNumber of units.
variantStockobject | arrayComplete variation-key-to-quantity map.
variantKeysstring[]Valid stock variation keys.
updatedAtstring | nullLast update in ISO 8601 format.
Format: date-time.