400 - Invalid Dimension Unit
Tip
The invalid_dimension_unit
error code will be returned if you provide an invalid or unrecognised value for a unit
property within a dimensions
object
When expressing dimensions
, the following format of object is used:
{
"dimensions": {
"length": 1.00,
"height": 1.00,
"width": 1.00,
"unit": "cm" //or "in"
}
}
The only acceptable values for unit
are cm
or in
(i.e. centimetres or inches).
Warning
Additionally, all dimensions
within a single shipment
must be expressed in the same unit
. It is not acceptable to have multiple shipment_contents
objects with different format of dimensions
.