If 2 or more addresses include the same address_type value it is not possible for Shipments API to determine which address should be used and the error code duplicate_address_type will be returned.

For example, the following JSON would result in a duplicate_address_type error code because it contains 2 origin address_types:

  {
  "addresses": [
    {
      "address_type": "origin",
      "shipping_location_reference": "WHOUSE09"
    },
    {
      "address_type": "origin",
      "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"
        }
      }
    }
  ]
}