inventory_changes

Arguments

ArgumentTypeRequiredDefaultDescription
skuStringNo
warehouse_idStringNo
location_idStringNo
location_nameStringNo
date_fromISODateTimeNo
date_toISODateTimeNo
customer_account_idStringNo
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": "abc123",
  "warehouse_id": "abc123",
  "location_id": "abc123",
  "location_name": "abc123",
  "date_from": ISODateTime,
  "date_to": ISODateTime,
  "customer_account_id": "abc123",
  "reason": "abc123",
  "analyze": true
}

Response

{
  "data": {
    "inventory_changes": {
      "request_id": "abc123",
      "complexity": 987,
      "data": InventoryChangeConnection
    }
  }
}