Create an address validation
We are excited to announce a new API capability that is now available for use, so we highly recommend that you start using this new API as soon as possible to take full advantage of its benefits.
Content-Type
Create an address validation oject
The object contains address object information. Please refer to address object for details.
Address object: the description of address information
address_line1 of address
Country in ISO 3166-1 alpha 3 code
contact_name of address
contact_phone of address
fax_number of address
email of address
company_name of address
address_line2 of address
address_line3 of address
city of address
state of address
postal_code of address
type of address
tax id
tax id type. Only applies to DHL Express, DHL eCommerce US, DHL eCommerce UK.
identification number
identification type
eori number
Create an address validation object
Meta data object.
Code of Meta
Message of Meta
Details of Meta
Whether this request will be retryable or not
The Address Validation object is used to provide information about an address, including the recommended address if available. Production and sandbox APIs support USA addresses by default, and you can contact our support team to enable AUS, BEL, DNK, and DEU in our sandbox API for testing as well.
Validation result of the address
Address object: the description of address information
Address object: the description of address information
{
"address": {
"contact_name": "AfterShip Shipping",
"company_name": "AfterShip Shipping",
"street1": "230 W 200 S LBBY",
"city": "Salt Lake City",
"state": "UT",
"postal_code": "84101",
"country": "USA",
"phone": "123456789",
"email": "[email protected]"
}
}{ "meta": { "code": 200, "type": "OK", "message": "Everything worked as expected." }, "data": { "id": "00000000-0000-0000-0000-000000000000", "status": "valid", "created_at": "2022-02-11T08:10:47+00:00", "updated_at": "2022-02-11T08:10:47+00:00", "address": { "contact_name": "AfterShip Shipping", "street1": "This is the first streeet", "street2": "This is the second streeet", "city": "New York", "state": "New York", "postal_code": "10001", "country": "USA", "phone": "1-123-456-5496", "email": "[email protected]", "type": "residential" }, "recommended_address": { "contact_name": "AfterShip Shipping", "street1": "This is the first streeet", "street2": "This is the second streeet", "city": "New York", "state": "New York", "postal_code": "10001", "country": "USA", "phone": "1-123-456-5496", "email": "[email protected]", "type": "residential" } } }