List inventory movements
Changed onReturns a paginated history of inventory movements (SNAPSHOT and DELTA records) read from the Elasticsearch audit log, scoped to the caller account and ordered newest-first ("occurred_at" desc) by default. Filter by exact "sku", free-text "q" matching SKU or product name (case-insensitive substring), "strategyCode", "reason" and "updateType". Each item exposes the running balance ("balance_after") recorded when the movement occurred, which may be null for deltas still awaiting backfill.
Request
- Base URLhttps://oms-api.tenant.krzlabs.io
- Auth
- HTTP basic
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Response
Paginated history of inventory movements.
Example response
{
"meta": {
"total": 42,
"pages": 3,
"current_page": 1,
"next_page": 2,
"limit": 20
}
}Changes
- info
added the new optional
queryrequest parameterlimit - info
added the new optional
queryrequest parameteroccurredFrom - info
added the new optional
queryrequest parameteroccurredTo - info
added the new optional
queryrequest parameterpage - info
added the new optional
queryrequest parameterq - info
added the new optional
queryrequest parameterreason - info
added the new optional
queryrequest parametersku - info
added the new optional
queryrequest parametersortBy - info
added the new optional
queryrequest parametersortOrder - info
added the new optional
queryrequest parameterstrategyCode - info
added the new optional
queryrequest parameterupdateType - info
removed the
DELTAenum value from the//response property for the response status - info
added the required property
///////to the response with the status - info
added the required property
///////to the response with the status - info
added the required property
///////to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status
- info
- breaking
removed the required property
///////from the response with the status - breaking
removed the required property
///////from the response with the status - breaking
removed the required property
///////from the response with the status - breaking
removed the required property
//from the response with the status - breaking
removed the required property
//from the response with the status - breaking
removed the required property
//from the response with the status - breaking
removed the required property
//from the response with the status - breaking
removed the required property
//from the response with the status - breaking
removed the required property
//from the response with the status - warning
deleted the
queryrequest parameterlimit - warning
deleted the
queryrequest parameteroccurredFrom - warning
deleted the
queryrequest parameteroccurredTo - warning
deleted the
queryrequest parameterpage - warning
deleted the
queryrequest parameterq - warning
deleted the
queryrequest parameterreason - warning
deleted the
queryrequest parametersku - warning
deleted the
queryrequest parametersortBy - warning
deleted the
queryrequest parametersortOrder - warning
deleted the
queryrequest parameterstrategyCode - warning
deleted the
queryrequest parameterupdateType
- breaking