Validate Address
Beta/v1/core/addresses/actions/validateThis endpoint is idempotent. Learn more
Validates an address and returns whether it is valid, a formatted version, and any validation messages.
address_line_1stringFirst line of the street address.
address_line_2optional stringSecond line of the street address.
citystringCity or locality.
statestringState or administrative area.
postal_codestringPostal or ZIP code.
countrystringCountry name or two-letter country code (for example United States or US).
objectstringenumValues:validated_addressResource type identifier.
statusstringenumValues:validinvalidWhether the address could be validated.
formatted_addressstringnullableFormatted, single-line address as standardized by the validation service.
The validation service may omit this regardless of status, so it can be absent even for a valid address.
componentsaddress_componentsnullableStandardized, parsed address components returned by the validation service.
The validation service may omit this regardless of status, so it can be absent even for a valid address.
objectstringenumValues:address_componentsResource type identifier.
address_line_1stringFirst line of the street address.
address_line_2stringnullableSecond line of the street address.
citystringCity or locality.
statestringState or administrative area.
postal_codestringPostal or ZIP code.
countrystringCountry name or code.
country_codestringTwo-letter country code.
validation_messagesarray of stringHuman-readable messages describing issues found during validation.
May be non-empty even when status is valid, for example when components were inferred or replaced with standardized values. Empty when no issues were reported.
Responses
Successful response for Validate Address