Create packaging
You can configure packaging information to use for deliveries: set the dimensions of different package types and use them in your shipments to set the physical size of the shipment.
When creating a package, you need to set a human-readable name and an identifying handle:
mutation {
createPackaging(
input: {
name: "Normal",
handle: "normal",
}
)
}
To set the size of the package, use the dimensions field. Provide all dimension values in meters. Fractions are allowed:
mutation {
createPackaging(
input: {
name: "Normal",
handle: "normal",
dimensions: {
width: 1.5,
length: 5.3,
height: 2.2,
},
}
)
}
You must specify whether the created package should be the default option with the isDefault field:
mutation {
createPackaging(
input: {
name: "Normal",
handle: "normal",
dimensions: {
width: 1.5,
length: 5.3,
height: 2.2,
},
isDefault: true
}
)
{
name
}
}