X

Validate an address

We currently can only validate UK & US addresses.


[POST] https://api-us1.stannp.com/v1/addresses/validate

Parameters

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...).

Request

                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 "zipcode=19801" \
-d "country=US"
            

Response

{
    "success": true,
    "data": {
        "is_valid": true
    }
}