Validate an address
We currently can only validate UK & US addresses.
Request
using RestSharp;
var client = new RestClient("https://api-eu1.stannp.com/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 } }