v1Resources/Locations/getResolve a country or state

Resolve a country or state

Resolves an accepted country or state name or alias to its canonical code. field and value are required; resolving a state also requires country. valueLong can provide the full state name.

get/api/v1/reference/resolve
locations:read
Query parameters
fieldstring (country | state)required
valuestringrequired
countrystringoptional
valueLongstringoptional
Response
codestringoptional
namestringoptional
Errors
400The request is missing a required parameter or is otherwise malformed.
401Missing, invalid, expired, or revoked API key.
403The key lacks the required scope, or isn't authorized for this client/location.
404The resource wasn't found, or doesn't belong to your agency.
429Too many requests. Retry after the number of seconds in the Retry-After header.
503The service is temporarily unavailable. Retry a credit grant with the same idempotency key.
get/api/v1/reference/resolve
Your API key
field *
value *
country
valueLong
{}

Guides that use this resource