custom_box_create
Creates a custom box for a warehouse with its dimensions, price, and quantity on hand.
Arguments
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
data | CreateCustomBoxInput! | Yes |
Return Type
Mutation
mutation custom_box_create(
$data: CreateCustomBoxInput!
) {
custom_box_create(
data: $data
) {
request_id
complexity
custom_box {
id
legacy_id
account_id
warehouse_id
warehouse_identifier
barcode
name
dimensions {
weight
height
width
length
}
active
on_hand
cost
packaging_type
price
}
}
}Variables
{
"data": {
"name": "12x10x4 Box",
"barcode": "012345678905",
"warehouse_id": "V2FyZWhvdXNlOjEyMzQ=",
"dimensions": {length: 12.5, width: 8.0, height: 4.0},
"on_hand": 2,
"price": 19.99,
"active": true,
"packaging_type": "BOX"
}
}Response
{
"data": {
"custom_box_create": {
"request_id": "UmVjb3JkOjEyMzQ=",
"complexity": 100,
"custom_box": {id: "Q3VzdG9tQm94OjEyMzQ="}
}
}
}