inventory_changes

Fetch inventory changes matching the supplied arguments.

Arguments

ArgumentTypeRequiredDefaultDescription
skuStringNo

Filter by SKU. SKU matching is case-insensitive and ignores surrounding whitespace.

warehouse_idStringNo

Filter by public API warehouse ID. Use this ID field when selecting a warehouse; warehouse fields are display values or nested objects.

location_idStringNo

Filter by location ID; pass the public API ID unless the field name says legacy ID.

location_nameStringNo

Filter by location name.

date_fromISODateTimeNo

Inclusive start of the date range, in ISO-8601 datetime format.

date_toISODateTimeNo

Inclusive end of the date range, in ISO-8601 datetime format.

customer_account_idStringNo

Filter by 3PL child/customer account ID; omit to use the authenticated account.

reasonStringNo

It performs a contains / like search and requires a date range, with a maximum of 60 days.

analyzeBooleanNo

If true, the query will only be analyzed (cost estimated) without executing it.

Return Type

InventoryChangesQueryResult

Query

query inventory_changes(
  $sku: String,
  $warehouse_id: String,
  $location_id: String,
  $location_name: String,
  $date_from: ISODateTime,
  $date_to: ISODateTime,
  $customer_account_id: String,
  $reason: String,
  $analyze: Boolean
) {
  inventory_changes(
    sku: $sku,
    warehouse_id: $warehouse_id,
    location_id: $location_id,
    location_name: $location_name,
    date_from: $date_from,
    date_to: $date_to,
    customer_account_id: $customer_account_id,
    reason: $reason,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...InventoryChangeConnectionFragment
    }
  }
}

Variables

{
  "sku": "BLUE-TEE-M",
  "warehouse_id": "V2FyZWhvdXNlOjEyMzQ=",
  "location_id": "TG9jYXRpb246MTIzNA==",
  "location_name": "A01-01-01",
  "date_from": "2026-07-09T15:30:00Z",
  "date_to": "2026-07-09T15:30:00Z",
  "customer_account_id": "QWNjb3VudDoxMjM0",
  "reason": "Customer requested expedited handling.",
  "analyze": true
}

Response

{
  "data": {
    "inventory_changes": {
      "request_id": "UmVjb3JkOjEyMzQ=",
      "complexity": 100,
      "data": [{id: "SW52ZW50b3J5Q2hhbmdlOjEyMzQ="}]
    }
  }
}