We currently can only validate UK & US addresses.
Parameter | Type | Description |
---|---|---|
company | string | Company name. |
address1 | string | Address line 1. |
address2 | string | Address line 2. |
city | string | Address city. |
state | string | Two-letter abbreviation if possible. |
zipcode | string | Address zipcode. |
country | string | ISO 3166-1 Alpha 2 Country Code (US,GB,CA,FR...). |
curl "https://api-us1.stannp.com/v1/addresses/validate" \
-u {API_KEY}: \
-d "company=Stannp" \
-d "address1=1000 N west street" \
-d "address2=Suite 1200 #1939" \
-d "city=Wilmington" \
-d "postcode=EX31 1JZ" \
-d "country=US" \
-d "zipcode=19801"
{ "success": true, "data": { "is_valid": true } }