work_orders

Fetch work orders matching the supplied arguments.

Arguments

ArgumentTypeRequiredDefaultDescription
ids[String]No

List of ids of work orders to include in the query.

status[String]No

Filter by status; use values returned by the corresponding status field.

wo_type[String]No

Filter by one or more work order type values.

requested_date_fromISODateTimeNo

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

requested_date_toISODateTimeNo

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

updated_at_fromISODateTimeNo

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

updated_at_toISODateTimeNo

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

customer_account_idIntNo

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

analyzeBooleanNo

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

Return Type

WorkOrdersQueryResult

Query

query work_orders(
  $ids: [String],
  $status: [String],
  $wo_type: [String],
  $requested_date_from: ISODateTime,
  $requested_date_to: ISODateTime,
  $updated_at_from: ISODateTime,
  $updated_at_to: ISODateTime,
  $customer_account_id: Int,
  $analyze: Boolean
) {
  work_orders(
    ids: $ids,
    status: $status,
    wo_type: $wo_type,
    requested_date_from: $requested_date_from,
    requested_date_to: $requested_date_to,
    updated_at_from: $updated_at_from,
    updated_at_to: $updated_at_to,
    customer_account_id: $customer_account_id,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...WorkOrderIdentifiableTypeConnectionFragment
    }
  }
}

Variables

{
  "ids": ["V29ya09yZGVyOjEyMzQ=", "V29ya09yZGVyOjU2Nzg="],
  "status": ["pending", "shipped"],
  "wo_type": ["ASSEMBLY", "PACKING"],
  "requested_date_from": "2026-07-09T15:30:00Z",
  "requested_date_to": "2026-07-09T15:30:00Z",
  "updated_at_from": "2026-07-09T15:30:00Z",
  "updated_at_to": "2026-07-09T15:30:00Z",
  "customer_account_id": 1234,
  "analyze": true
}

Response

{
  "data": {
    "work_orders": {
      "request_id": "UmVjb3JkOjEyMzQ=",
      "complexity": 100,
      "data": [{id: "T3JkZXI6MTIzNA==", order_number: "SO-100045"}]
    }
  }
}