Validate an address

We currently can only validate UK & US addresses.
https://dash.stannp.com/api/v1/addresses/validate

Parameters

company string Company name.
address1 string Address line 1.
address2 string Address line 2.
address3 string Address line 3.
city string Address city.
postcode string Address postal code.
country string ISO 3166-1 Alpha 2 Country Code (GB,US,FR...).
Request
$ curl https://dash.stannp.com/api/v1/addresses/validate \
-u {API_KEY}: \
-d "company=Stannp" \ 
-d "address1=Unit 12" \ 
-d "address2=Taw trade park" \ 
-d "city=Barnstaple" \ 
-d "postcode=EX31 1JZ" \ 
-d "country=GB"
$curl = curl_init();

curl_setopt_array($curl, array(
    CURLOPT_URL => 'https://dash.stannp.com/api/v1/addresses/validate?api_key={API_KEY}',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => '',
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_POSTFIELDS => array(
        'company' => "Stannp",
        'address1' => "Unit 12",
        'address2' => "Taw trade park",
        'city' => "Barnstaple",
        'postcode' => "EX31 1JZ",
        'country' => "GB"
    ),
));

$response = curl_exec($curl);

curl_close($curl);
print_r($response);
import requests

data = {
    'company': 'Stannp',
    'address1': 'Unit 12',
    'address2': 'Taw trade park',
    'city': 'Barnstaple',
    'postcode': 'EX31 1JZ',
    'country': 'GB'
}

response = requests.post('https://dash.stannp.com/api/v1/addresses/validate?api_key={API_KEY}', data=data)
print(response.text)
var client = new RestClient("https://dash.stannp.com/api/v1/addresses/validate?api_key={API_KEY}");

var request = new RestRequest(Method.POST);

request.AddParameter("company", "Stannp");
request.AddParameter("address1", "Unit 12");
request.AddParameter("address2", "Taw trade park");
request.AddParameter("city", "Barnstaple");
request.AddParameter("postcode", "EX31 1JZ");
request.AddParameter("country", "GB");

IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content)
Response
{
   "success":true,
   "data":{
       "is_valid":true
    }
}