Discussions

Ask a Question
Back to All

Error: Parcels dimensions or all items dimensions are mandatory

When I trying https://api.easyship.com/v2/rate, I have this error "Parcels dimensions or all items dimensions are mandatory" if i send in "parcels[box.slug]" one of USPS Boxes from Boxes API (e.c. "usps-regional-box-b2")

And there is no error if I send in "parcels[box.slug]" slug-value of my own box or an random or empty string.

Under what conditions is it impossible to select a box from the Box API list (e.c. USPS)?

{
"origin_address": {
"state": "CA",
"city": "Los Angeles",
"postal_code": "89135",
"line_1": "some address",
"line_2": "",
"company_name": "some company",
"contact_name": "",
"contact_phone": "",
"contact_email": "[email protected]"
},
"destination_address": {
"country_alpha2": "US",
"state": "NY",
"city": "New York",
"postal_code": "10022",
"line_1": "some address",
"line_2": "",
"contact_name": "Andy Anderson",
"contact_phone": "72688822211",
"contact_email": "[email protected]"
},
"incoterms": "DDU",
"insurance": {
"is_insured": false,
"insured_amount": 88,
"insured_currency": "USD"
},
"courier_selection": {
"apply_shipping_rules": true
},
"shipping_settings": {
"units": {
"weight": "kg",
"dimensions": "cm"
},
"output_currency": "USD"
},
"parcels": [
{
"total_actual_weight": 0.3,
"box": {
"slug": "usps-regional-box-b2", // error "Parcels dimensions or all items dimensions are mandatory"
//"slug": "custom_or_empty_slug", // no errors
"length": 31.11,
"width": 26.67,
"height": 13.97
},
"items": [
{
"quantity": 1,
"category": "fashion",
"description": "Little Black Dress",
"sku": "",
"declared_currency": "USD",
"declared_customs_value": 88
}
]
}
]
}