custom_boxes

Fetch custom 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.

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

CustomBoxesQueryResult

Query

query custom_boxes(
  $warehouse_id: String,
  $only_active: Boolean,
  $only_in_stock: Boolean,
  $analyze: Boolean
) {
  custom_boxes(
    warehouse_id: $warehouse_id,
    only_active: $only_active,
    only_in_stock: $only_in_stock,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...CustomBoxConnectionFragment
    }
  }
}

Variables

{
  "warehouse_id": "V2FyZWhvdXNlOjEyMzQ=",
  "only_active": true,
  "only_in_stock": true,
  "analyze": true
}

Response

{
  "data": {
    "custom_boxes": {
      "request_id": "UmVjb3JkOjEyMzQ=",
      "complexity": 100,
      "data": [{id: "Q3VzdG9tQm94Q29ubmVjdGlvbjoxMjM0"}]
    }
  }
}