StorlioDevelopers
Inventory

Retrieve inventory

GET/inventory/{product}

Read available stock, variation keys and the inventory version.

Bearer token ·inventory:read

Path parameters

productintegerrequired

Storlio 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
dataobject
Child fields
productIdstring

Storlio product ID.

inventoryIdstring | null

Stock tracking record ID; compare versions within this record.

versioninteger

Current resource version.

Min: 0.

trackedboolean

Whether inventory tracking is enabled.

quantityinteger | null

Number of units.

variantStockobject | array

Complete variation-key-to-quantity map.

variantKeysstring[]

Valid stock variation keys.

updatedAtstring | null

Last update in ISO 8601 format.

Format: date-time.

Storlio Commerce API v1