inventory-movements

List inventory movements

Changed on

Returns 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.

get/api/v1/inventory-movements

Request

Query parameters

skustring
qstring
strategyCodestring[]
reasonstring
updateTypestring
occurredFromstring
occurredTostring
pagenumber
limitnumber
sortBystring
sortOrderstring

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 query request parameter limit

    • info

      added the new optional query request parameter occurredFrom

    • info

      added the new optional query request parameter occurredTo

    • info

      added the new optional query request parameter page

    • info

      added the new optional query request parameter q

    • info

      added the new optional query request parameter reason

    • info

      added the new optional query request parameter sku

    • info

      added the new optional query request parameter sortBy

    • info

      added the new optional query request parameter sortOrder

    • info

      added the new optional query request parameter strategyCode

    • info

      added the new optional query request parameter updateType

    • info

      removed the DELTA enum 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

    • 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 query request parameter limit

    • warning

      deleted the query request parameter occurredFrom

    • warning

      deleted the query request parameter occurredTo

    • warning

      deleted the query request parameter page

    • warning

      deleted the query request parameter q

    • warning

      deleted the query request parameter reason

    • warning

      deleted the query request parameter sku

    • warning

      deleted the query request parameter sortBy

    • warning

      deleted the query request parameter sortOrder

    • warning

      deleted the query request parameter strategyCode

    • warning

      deleted the query request parameter updateType