400 - Duplicate Address Type
Tip
The duplicate_address_type
error code is returned when a request includes 2 or more addresses
with the same address_type
value.
If 2 or more addresses
include the same address_type
value it is not possible for SortedPRO 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"
}
}
}
]
}
Note
To correct this error, ensure that you only pass 1 of each address_type
with any request.