Support identify and standardize address.
Contact sales to activate this feature.
An API key is a token that you provide when making API calls. Include the token in a header parameter called as-api-key.
Content-Type for all calls should be application/json.
Create an address validation.
Address object. Refer to below address schema.
Address_line1 of address.
Address_line2 of address.
Address_line3 of address.
Street number.
District name.
County name.
Postal code.
City name.
State object
Country region object.
Coordinate object.
Unique slug in AfterShip. Supported carrier slug: fedex, ups
Maximum suggested addresses count in response.
OK
Meta data object.
Code
Error message, only exist if the response status is not 2xx
Common address object.
Each error object contains a "path" key and an "info" key. The "path" is the JSON path of the request object to indicate the error location. The "info" is a human-readable description of the error.
Unauthorized
Meta data object.
Code
Error message, only exist if the response status is not 2xx
{
"request_address": {
"country_region": {
"name": "United States",
"code": "USA"
},
"state": {
"name": "California",
"code": "US-CA"
},
"county": "Santa Clara County",
"city": "San Jose",
"district": null,
"street_1": "123 Main Street",
"street_2": "Suite 200",
"street_3": null,
"street_number": "125",
"postal_code": "95113"
},
"carrier_slug": "fedex",
"max_address_response": 1
}{ "meta": { "code": 200, "message": "OK", "details": [] }, "data": { "status": "valid", "suggested_addresses": [ { "country_region": { "name": "United States", "code": "USA" }, "state": { "name": "CALIFORNIA", "code": "US-CA" }, "county": null, "city": "SAN JOSE", "district": null, "street_1": "123 MAIN ST", "street_2": "STE 200", "street_3": null, "street_number": null, "postal_code": "95113", "type": null, "coordinate": null } ], "errors": [] } }