packs_per_day

Gets the details of each shipment's package between the specified dates. Results are sorted by date, warehouse, and user, but they can be filtered by warehouse_id if you are only interested in packages from a particular warehouse. The sorting can be overridden by specifying any other field or list of fields from the output type.

Arguments

ArgumentTypeRequiredDefaultDescription
warehouse_idStringNo

Filter by public API warehouse ID. Use this ID field when selecting a warehouse; warehouse fields are display values or nested objects.

user_idStringNo

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

order_idStringNo

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

order_numberStringNo

Filter by order number.

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.

analyzeBooleanNo

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

Return Type

PacksPerDayQueryResult

Query

query packs_per_day(
  $warehouse_id: String,
  $user_id: String,
  $order_id: String,
  $order_number: String,
  $date_from: ISODateTime,
  $date_to: ISODateTime,
  $analyze: Boolean
) {
  packs_per_day(
    warehouse_id: $warehouse_id,
    user_id: $user_id,
    order_id: $order_id,
    order_number: $order_number,
    date_from: $date_from,
    date_to: $date_to,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...PackageConnectionFragment
    }
  }
}

Variables

{
  "warehouse_id": "V2FyZWhvdXNlOjEyMzQ=",
  "user_id": "VXNlcjoxMjM0",
  "order_id": "T3JkZXI6MTIzNA==",
  "order_number": "SO-100045",
  "date_from": "2026-07-09T15:30:00Z",
  "date_to": "2026-07-09T15:30:00Z",
  "analyze": true
}

Response

{
  "data": {
    "packs_per_day": {
      "request_id": "UmVjb3JkOjEyMzQ=",
      "complexity": 100,
      "data": [{id: "UGFja2FnZToxMjM0"}]
    }
  }
}