Discussions

Ask a Question
Back to All

HTTP 400: Parcels dimensions or all items dimensions are mandatory

I'm seeing HTTP 400 errors on requests that appear to be valid

Request:

{
  "origin_address": {
    "city": "Waukegan",
    "state": "IL",
    "postal_code": "60085",
    "country_alpha2": "US"
  },
  "destination_address": {
    "city": "Burtenbach",
    "state": "",
    "postal_code": "89349",
    "country_alpha2": "DE"
  },
  "incoterms": "DDU",
  "shipping_settings": {
    "units": { "weight": "lb", "dimensions": "in" },
    "output_currency": "USD"
  },
  "parcels": [
    {
      "items": [
        {
          "quantity": 1,
          "category": "documents",
          "description": "sticker sheet",
          "actual_weight": 1,
          "declared_currency": "USD",
          "declared_customs_value": "1.25",
          "dimensions": { "length": 2, "width": 2, "height": 2 }
        }
      ]
    }
  ]
}

Response:

{
  "status": "failure",
  "errors": ["Parcels dimensions or all items dimensions are mandatory"],
  "request_id": "84ad7271-68fb-469f-a3f1-a3fa789ecd9c",
  "timestamp": "2022-09-19T16:34:28.114Z"
}

I have tried overriding the weight and the dimensions to inflate them, as I saw linked elsewhere with no luck. Any insights?