custom_boxes
Fetch custom boxes matching the supplied arguments.
Arguments
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
warehouse_id | String | No | Filter by public API warehouse ID. Use this ID field when selecting a warehouse; warehouse fields are display values or nested objects. | |
only_active | Boolean | No | Whether to show only active boxes. | |
only_in_stock | Boolean | No | Whether to only show boxes in stock. | |
analyze | Boolean | No | If true, the query will only be analyzed (cost estimated) without executing it. |
Return Type
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 {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
node {
id
legacy_id
account_id
warehouse_id
warehouse_identifier
barcode
name
dimensions {
weight
height
width
length
}
active
on_hand
cost
packaging_type
price
}
cursor
}
total_count
}
}
}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"}]
}
}
}