get_inventory_history

Updated September 9, 20261 min read

Get inventory event history of one inventory, addressed by inventory_key or product_id (GET /inventory-events/inventory-key/{key} or /inventory-events/product-id/{id}), optionally for one location. Newest first, paged by page_num/rows_per_page over the latest 500 events. Use select with json-mask syntax to return only required fields.

Parameters

NameTypeRequiredDescription
tenantIdstringYes
inventory_keystringNo
location_idstringNoRestrict the history to one location.
page_numnumberNo1-based page number. Backend defaults to 1.
product_idstringNoProduct whose inventory_key identifies the inventory.
rows_per_pagenumberNoEvents per page. Backend defaults to 10.
selectstringNojson-mask expression to filter response fields.

Example agent prompt

"Run get_inventory_history."

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