inventory_sync_items_status

Fetch inventory sync items status matching the supplied arguments.

Arguments

ArgumentTypeRequiredDefaultDescription
idString!Yes

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

statusStringNo

Any of the following statuses:

pending: Queued for processing

processing: Being processed

success: Finished successfully

error: Matches all error states below

error_unknown: Unknown error occurred

error_not_found: Product was not found

Multiple statuses can be combined using: , e.g. status: "pending,processing"

One or more statuses can be excluded using: ! e.g. status: "!error_not_found"

analyzeBooleanNo

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

Return Type

InventorySyncRowsQueryResult

Query

query inventory_sync_items_status(
  $id: String!,
  $status: String,
  $analyze: Boolean
) {
  inventory_sync_items_status(
    id: $id,
    status: $status,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...InventorySyncItemStatusConnectionFragment
    }
  }
}

Variables

{
  "id": "UmVjb3JkOjEyMzQ=",
  "status": "pending",
  "analyze": true
}

Response

{
  "data": {
    "inventory_sync_items_status": {
      "request_id": "UmVjb3JkOjEyMzQ=",
      "complexity": 100,
      "data": [{id: "SW52ZW50b3J5U3luY0l0ZW1TdGF0dXM6MTIzNA=="}]
    }
  }
}