These docs are for v1.0. Click to read the latest docs for v2024.09.

Discussions

Ask a Question
Back to All

Shipment is too heavy error Response

I'm making a test call using VueJS & Axios with my Sandbox API to retrieve rates.

My Method;

    fetchShippingRates() {
      this.axios.post(this.endpoint, {
        'origin_country_alpha2': 'US',
        'origin_postal_code': '90210',
        'destination_country_alpha2': 'US',
        'destination_postal_code': '10030',
        'taxes_duties_paid_by': 'Sender',
        'is_insured': false,
        'items': [
          {
            'actual_weight': 0.23,
            'height': 2.54,
            'width': 25.4,
            'length': 30,
            'category': 'fashion',
            'declared_currency': 'USD',
            'declared_customs_value': 100
          }
        ]
      },
      {
        headers: {
          'Content-Type': 'application/json',
          'Authorization': 'Bearer ' + this.accessToken
        }
      })
      .then(response => {
        console.log(response);
      })
      .catch(error => {
        console.log(error);
      });
    }

I'm receiving a 200 response, but with the message;

data:
  messages: Array(1)
    0: "Sorry, your shipment is too heavy! If possible, try splitting it into multiple shipments."
  rates: [ ]

I see nothing regarding shipping limit in the documentation, plus that 0.23kg is equivalent to half a pound which would be a single t-shirt.