400 - Invalid Region
Tip
The invalid_region
error code will be returned if you attempt to create or update a shipment
but provide an invalid region
for an address
.
This error code will be returned, for example, if you attempt to create a shipment
with a country_iso_code
of US
but do not provide a valid US state in the region
property, e.g.:
{
"addresses": [
{
"address_type": "destination",
"country_iso_code": "US",
"region": "Lancashire"
}
]
}
Note
Not all countries have formally-recognised regions and therefore this property will not be validated or checked in all cases. However, the value will be checked for the following countries:
GB
- Great BritainIE
- IrelandUS
- United States of AmericaAU
- AustraliaCA
- Canada