Mutation
mutation custom_box_create(
$data: CreateCustomBoxInput!
) {
custom_box_create(
data: $data
) {
request_id
complexity
custom_box {
...CustomBoxFragment
id
legacy_id
account_id
warehouse_id
warehouse_identifier
barcode
name
dimensions {
...DimensionsFragment
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="}
}
}
}