Validate An Address
Changed onAddress 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.
Request
- Base URLhttps://api.shipengine.com
- URLhttps://api.shipengine.com/v1/addresses/validate
- AuthAPI key in header API-Key
Request body
Example request
[
{
"name": "John Doe",
"phone": "+1 204-253-9411 ext. 123",
"email": "example@example.com",
"company_name": "The Home Depot",
"address_line1": "1999 Bishop Grandin Blvd.",
"address_line2": "Unit 408",
"address_line3": "Building #7",
"city_locality": "Winnipeg",
"state_province": "Manitoba",
"postal_code": "78756-3717",
"country_code": "CA"
}
]Response
The request was a success.
Example response
[
{
"original_address": {
"name": "John Doe",
"phone": "+1 204-253-9411 ext. 123",
"email": "example@example.com",
"company_name": "The Home Depot",
"address_line1": "1999 Bishop Grandin Blvd.",
"address_line2": "Unit 408",
"address_line3": "Building #7",
"city_locality": "Winnipeg",
"state_province": "Manitoba",
"postal_code": "78756-3717",
"country_code": "CA"
},
"matched_address": {
"name": "John Doe",
"phone": "+1 204-253-9411 ext. 123",
"email": "example@example.com",
"company_name": "The Home Depot",
"address_line1": "1999 Bishop Grandin Blvd.",
"address_line2": "Unit 408",
"address_line3": "Building #7",
"city_locality": "Winnipeg",
"state_province": "Manitoba",
"postal_code": "78756-3717",
"country_code": "CA"
},
"messages": [
{
"message": "Invalid Postal Code"
}
]
}
]Changes
- info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status
- info
- warning
added the new
file_not_foundenum value to the////response property for the response status - warning
added the new
file_not_foundenum value to the////response property for the response status - warning
added the new
funding_source_errorenum value to the////response property for the response status - warning
added the new
funding_source_errorenum value to the////response property for the response status - warning
added the new
funding_source_missing_configurationenum value to the////response property for the response status - warning
added the new
funding_source_missing_configurationenum value to the////response property for the response status - warning
added the new
funding_source_registration_in_progressenum value to the////response property for the response status - warning
added the new
funding_source_registration_in_progressenum value to the////response property for the response status - warning
added the new
insurance_failureenum value to the////response property for the response status - warning
added the new
insurance_failureenum value to the////response property for the response status - warning
added the new
service_not_determinedenum value to the////response property for the response status - warning
added the new
service_not_determinedenum value to the////response property for the response status - warning
added the new
shipping_rule_not_foundenum value to the////response property for the response status - warning
added the new
shipping_rule_not_foundenum value to the////response property for the response status
- warning