400 - Invalid Postal Code
Tip
The invalid_postal_code
error code is returned if you provide a postal_code
value that is not in a valid format for the corresponding country_iso_code
This error code will be returned, for example, if you provide a postal_code
value for GB
that is not a valid UK postcode format, e.g.:
{
"addresses": [
{
"address_type": "origin",
"postal_code": "90210",
"country_iso_code": "GB"
}
]
}
Tip
Sorted uses standard international formats for postal codes. Not all countries support postal codes or zip codes, and therefore these properties may not always be validated. However, where there is a recognised standard format of postal code or zip code, and the country_iso_code
requires a valid postal code, the value provided will be checked.