On this page
article
400 - Address Type Required
The
address_type_required error code is returned when an address is provided without specifying the address_type. All addresses must include a valid address_type.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.
Almost all
shipments will be created with both an origin and a destination address. Other address types include billing, return, sender, importer, and exporter. The use of these address_type values depends on use case.