get_inventory

Updated September 9, 20261 min read

Get the stock by location of one inventory, addressed by inventory_key, product_id or product_ref + merchant (GET /inventory/inventory-key/{key}, /inventory/product-id/{id} or /inventory/product-ref/{ref}). Use select with json-mask syntax to return only required fields.

Parameters

NameTypeRequiredDescription
tenantIdstringYes
inventory_keystringNo
merchantstringNo
product_idstringNoProduct whose inventory_key identifies the inventory.
product_refstringNoMerchant product reference; requires merchant.
selectstringNojson-mask expression to filter response fields.

Example agent prompt

"Look up the inventory for me."

get_inventory(
  tenantId="…",
  product_id="PROD-1234"
)