Shipping Orders Queries

Track shipping orders, carrier details, and delivery status.

ShippingOrder — Returns a single shipping order by id

query GetShippingOrder($id: Int!) {
  ShippingOrder(id: $id) {
    id
    label
    status
    dated_at
    shipping_at
    total_units
    customer { id label }
    line_items {
      id
      variant { id label }
      quantity
    }
    orders {
      paginatorInfo { total }
      data { id label }
    }
    invoices {
      paginatorInfo { total }
      data { id label }
    }
    shipping_address {
      address_1
      city
      postal_code
      country
    }
  }
}

ShippingOrders — Returns a list of shipping orders with sorting and filters

query ShippingOrders(
  $where: QueryShippingOrdersWhereWhereConditions,
  $orderBy: [QueryShippingOrdersOrderByOrderByClause!],
  $search: String,
  $first: Int,
  $page: Int
) {
  ShippingOrders(
    where: $where,
    orderBy: $orderBy,
    search: $search,
    first: $first,
    page: $page
  ) {
    paginatorInfo {
      total
      currentPage
    }
    data {
      id
      label
      status
      dated_at
      total_units
      customer { id label }
    }
  }
}

Available fields

FieldTypeDescription
idIntUnique identifier.
labelStringShipping order number.
statusShippingOrderStatusCurrent status.
dated_atDateDocument date.
shipping_atDateExpected shipping date.
total_unitsFloatTotal quantity to ship.
notesStringPublic notes.
internal_notesStringPrivate notes.
for_the_attention_ofStringContact person name.
external_referenceStringCustomer reference.
billing_statusBillingStatusInvoicing status.
payment_statusPaymentStatusPayment progress.
committed_quantityFloatStock committed quantity.
uncommitted_quantityFloatAwaiting commitment.
reserved_quantityFloatQuantity reserved for this shipment.
delivered_quantityFloatQuantity received by customer.
shipped_quantityFloatQuantity left the warehouse.
billed_quantityFloatQuantity already invoiced.
unbilled_quantityFloatQuantity remaining to be invoiced.
paid_quantityFloatPaid quantity.
unpaid_quantityFloatUnpaid quantity.
billed_amountFloatAmount already invoiced.
unbilled_amountFloatAmount remaining to be invoiced.
paid_amountFloatTotal paid amount.
unpaid_amountFloatTotal unpaid amount.
order_numberStringRelated order label.
location_labelStringAssigned location label.
customerCustomerAssociated customer.
line_items[LineItemShippingOrder]List of items.
orders[Order]Related sales orders.
invoices[Invoice]Related invoices.
seasonSeasonLinked season.
account_representativeAccountRepresentativeAssigned representative.
pdf_templatePdfTemplateShipping order PDF design.
picking_list_pdf_templatePdfTemplatePicking list PDF design.
shipping_addressAddressShipping destination.
files[File]Attachments.
created_atDateCreation date.
tracking_completedBooleanTrue if all tracking info (batches, etc) is entered.
has_batch_numbersBooleanTrue if items have batch tracking.
invoices_countIntNumber of linked invoices.
orders_countIntNumber of linked sales orders.
subscriptions_countIntNumber of linked subscriptions.
custom_fields[EntityCustomField]Custom fields for this entity.

Filters

The following fields can be used in the where parameter:

id, label, status, total_units, dated_at, created_at, updated_at, shipping_at, customer_id, committed_quantity, uncommitted_quantity, delivered_quantity, shipped_quantity, reserved_quantity, orders_count, invoices_count, variant_id, variant_label, variant_sku, location_id, batch_number_id, has_batch_numbers, tracking_completed.

Example Filters:

FieldExample
id{ "column": "ID", "operator": "EQ", "value": 200050 }
label{ "column": "LABEL", "operator": "LIKE", "value": "%SHIP-2025%" }
status{ "column": "STATUS", "operator": "EQ", "value": "ready_to_ship" }
customer_id{ "column": "CUSTOMER_ID", "operator": "EQ", "value": 100001 }
variant_id{ "column": "VARIANT_ID", "operator": "EXISTS", "value": 200500 }
variant_sku{ "column": "VARIANT_SKU", "operator": "EQ", "value": "SKU-RED" }
location_id{ "column": "LOCATION_ID", "operator": "EXISTS", "value": 100 }
dated_at{ "column": "DATED_AT", "operator": "GTE", "value": "2025-01-01" }

Sorting

You can sort results using the orderBy parameter:

  • id
  • label
  • notes
  • total_units
  • status
  • dated_at
  • created_at
  • shipping_at
  • order_number
  • customer_id
  • customer_label

Grouping Options

You can group shipping orders using the groupBy parameter for totals aggregate:

FieldDescription
idGroup by internal ID.
statusGroup by current status.
yearGroup by year of dated_at.
monthGroup by month of dated_at.
dayGroup by day of dated_at.

Enums

ShippingOrderStatus

ValueDescription
unpublishedDraft status.
pendingDocument processed, shipment pending.
make_the_shipmentReady for pick & pack.
in_preparationPacking in progress.
ready_to_shipBox labeled and ready.
shippedLeft the warehouse.
deliveredReceived by customer.
cancelledDocument cancelled.

BillingStatus

ValueDescription
not_billedNot invoiced.
partially_billedPartial invoicing.
billedFully invoiced.

PaymentStatus

ValueDescription
unpaidNo payment received.
partially_paidPartial payment received.
paidFully paid.