shipments

Fetch shipments matching the supplied arguments.

Arguments

ArgumentTypeRequiredDefaultDescription
ids[String]No

List of ids of shipments to include in the query.

customer_account_idStringNo

If you are a 3PL you can specify one of your customer's account.

order_idStringNo

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

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.

order_date_fromISODateTimeNo

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

order_date_toISODateTimeNo

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

tracking_numberStringNo

Filter by tracking number.

alternate_tracking_idStringNo

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

voidedBooleanNo

When true, filters results where voided applies; when false, filters where it does not.

analyzeBooleanNo

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

Return Type

ShipmentsQueryResult

Query

query shipments(
  $ids: [String],
  $customer_account_id: String,
  $order_id: String,
  $date_from: ISODateTime,
  $date_to: ISODateTime,
  $order_date_from: ISODateTime,
  $order_date_to: ISODateTime,
  $tracking_number: String,
  $alternate_tracking_id: String,
  $voided: Boolean,
  $analyze: Boolean
) {
  shipments(
    ids: $ids,
    customer_account_id: $customer_account_id,
    order_id: $order_id,
    date_from: $date_from,
    date_to: $date_to,
    order_date_from: $order_date_from,
    order_date_to: $order_date_to,
    tracking_number: $tracking_number,
    alternate_tracking_id: $alternate_tracking_id,
    voided: $voided,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...ShipmentConnectionFragment
    }
  }
}

Variables

{
  "ids": ["U2hpcG1lbnQ6MTIzNA==", "U2hpcG1lbnQ6NTY3OA=="],
  "customer_account_id": "QWNjb3VudDoxMjM0",
  "order_id": "T3JkZXI6MTIzNA==",
  "date_from": "2026-07-09T15:30:00Z",
  "date_to": "2026-07-09T15:30:00Z",
  "order_date_from": "2026-07-09T15:30:00Z",
  "order_date_to": "2026-07-09T15:30:00Z",
  "tracking_number": "1Z999AA10123456784",
  "alternate_tracking_id": "UmVjb3JkOjEyMzQ=",
  "voided": true,
  "analyze": true
}

Response

{
  "data": {
    "shipments": {
      "request_id": "UmVjb3JkOjEyMzQ=",
      "complexity": 100,
      "data": [{id: "U2hpcG1lbnRDb25uZWN0aW9uOjEyMzQ="}]
    }
  }
}