When creating or updating a shipment, each address object must contain an address_type, e.g.

  {
  "addresses": [
    {
      "address_type": "origin",
      "shipping_location_reference": "WHOUSE001"
    },
    {
      "address_type": "destination",
      "property_number": "12b",
      "address_line1": "Peter Street",
      "address_line2": "Bertwistle",
      "locality": "Manchester",
      "region": "Greater Manchester",
      "postal_code": "M2 5BD",
      "country_iso_code": "GB",
      "contact": {
        "title": "Mrs",
        "first_name": "Karen",
        "last_name": "McDonald",
        "contact_details": {
          "mobile": "+447595777654",
          "email": "kmcdonald1986@hotmail.com"
        }
      }
    }
  ],
  //other properties...
}
  

If an address is provided without an address_type, you will receive an address_type_required error code.