carrier_boxes

Fetch carrier boxes matching the supplied arguments.

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.

warehouse_identifierStringNo

Filter by warehouse display identifier, such as Primary or Secondary. Use warehouse_id when an ID is available.

carrierStringNo

Filter by carrier.

only_activeBooleanNo

Whether to show only active boxes.

only_in_stockBooleanNo

Whether to only show boxes in stock.

analyzeBooleanNo

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

Return Type

CarrierBoxesQueryResult

Query

query carrier_boxes(
  $warehouse_id: String,
  $warehouse_identifier: String,
  $carrier: String,
  $only_active: Boolean,
  $only_in_stock: Boolean,
  $analyze: Boolean
) {
  carrier_boxes(
    warehouse_id: $warehouse_id,
    warehouse_identifier: $warehouse_identifier,
    carrier: $carrier,
    only_active: $only_active,
    only_in_stock: $only_in_stock,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...CarrierBoxConnectionFragment
    }
  }
}

Variables

{
  "warehouse_id": "V2FyZWhvdXNlOjEyMzQ=",
  "warehouse_identifier": "2",
  "carrier": "ups",
  "only_active": true,
  "only_in_stock": true,
  "analyze": true
}

Response

{
  "data": {
    "carrier_boxes": {
      "request_id": "UmVjb3JkOjEyMzQ=",
      "complexity": 100,
      "data": [{carrier: "ups", method: "ups_ground"}]
    }
  }
}