Validate an Address
Address validation ensures accurate addresses and can lead to reduced shipping costs by preventing address correction surcharges. ShipEngine cross references multiple databases to validate addresses and identify potential deliverability issues.
ShipEngine supports address validation for virtually every country on Earth, including the United States, Canada, Great Britain, Australia, Germany, France, Norway, Spain, Sweden, Israel, Italy, and over 160 others.
Requirements
- The address validation endpoint is available to accounts in the Advanced plan or higher.
Example Request & Response
POST /v1/addresses/validate
This is an example of a full request to the address verification service. The JSON body can validate up to 250 addresses per request.
Example Response
The response includes every address sent to the Address Validator, in the order it was received.
Response Statuses
The status
field in the response can have one of the following four statuses:
status | description |
---|---|
verified | Address was successfully verified. |
unverified | Address was not verified against the database because pre-validation failed. |
warning | The address was validated, but could have formatting issues and should be double checked. |
error | The address could not be validated with any degree of certainty against the database. |
Example: Verified Status
Example: Unverified Status
This issue is with the country_code
value of "USA" rather than the approved 2-charater ISO country code "US".
Example: Warning Status
This issue is with the entire address, while correct, being contained in the address_line1
field.
Example: Error Status
This address cannot be verified because the postal_code
is incorrect.