custom_boxes
Arguments
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
warehouse_id | String | No | ||
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
}
}
}
}Variables
{
"warehouse_id": "abc123",
"only_active": true,
"only_in_stock": true,
"analyze": true
}Response
{
"data": {
"custom_boxes": {
"request_id": "abc123",
"complexity": 987,
"data": CustomBoxConnection
}
}
}