T2A
Click here for a complete list of operations.
age_verification
Validate that a given UK resident is aged 18 years or older.
Test
To test the operation using the HTTP POST protocol, click the 'Invoke' button.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /soap/t2a.asmx HTTP/1.1
Host: api.t2a.io
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://api.t2a.io/soap/age_verification"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<age_verification xmlns="https://api.t2a.io/soap">
<api_key>string</api_key>
<client>string</client>
<surname>string</surname>
<forename>string</forename>
<fullname>string</fullname>
<addr1>string</addr1>
<addr2>string</addr2>
<addr3>string</addr3>
<place>string</place>
<town>string</town>
<postcode>string</postcode>
<surname_fuzzy>string</surname_fuzzy>
<forename_fuzzy>string</forename_fuzzy>
<check_under_18>string</check_under_18>
</age_verification>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<age_verificationResponse xmlns="https://api.t2a.io/soap">
<age_verificationResult>
<validation_status>string</validation_status>
<match_code_forename>string</match_code_forename>
<match_code_surname>string</match_code_surname>
<match_code_address>string</match_code_address>
<transaction_id>string</transaction_id>
<searched_name>string</searched_name>
<searched_surname>string</searched_surname>
<searched_forename>string</searched_forename>
<searched_postcode>string</searched_postcode>
<searched_addr1>string</searched_addr1>
</age_verificationResult>
</age_verificationResponse>
</soap:Body>
</soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /soap/t2a.asmx HTTP/1.1
Host: api.t2a.io
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<age_verification xmlns="https://api.t2a.io/soap">
<api_key>string</api_key>
<client>string</client>
<surname>string</surname>
<forename>string</forename>
<fullname>string</fullname>
<addr1>string</addr1>
<addr2>string</addr2>
<addr3>string</addr3>
<place>string</place>
<town>string</town>
<postcode>string</postcode>
<surname_fuzzy>string</surname_fuzzy>
<forename_fuzzy>string</forename_fuzzy>
<check_under_18>string</check_under_18>
</age_verification>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<age_verificationResponse xmlns="https://api.t2a.io/soap">
<age_verificationResult>
<validation_status>string</validation_status>
<match_code_forename>string</match_code_forename>
<match_code_surname>string</match_code_surname>
<match_code_address>string</match_code_address>
<transaction_id>string</transaction_id>
<searched_name>string</searched_name>
<searched_surname>string</searched_surname>
<searched_forename>string</searched_forename>
<searched_postcode>string</searched_postcode>
<searched_addr1>string</searched_addr1>
</age_verificationResult>
</age_verificationResponse>
</soap12:Body>
</soap12:Envelope>
HTTP GET
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.
GET /soap/t2a.asmx/age_verification?api_key=string&client=string&surname=string&forename=string&fullname=string&addr1=string&addr2=string&addr3=string&place=string&town=string&postcode=string&surname_fuzzy=string&forename_fuzzy=string&check_under_18=string HTTP/1.1 Host: api.t2a.io
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <age_verification_res xmlns="https://api.t2a.io/soap"> <validation_status>string</validation_status> <match_code_forename>string</match_code_forename> <match_code_surname>string</match_code_surname> <match_code_address>string</match_code_address> <transaction_id>string</transaction_id> <searched_name>string</searched_name> <searched_surname>string</searched_surname> <searched_forename>string</searched_forename> <searched_postcode>string</searched_postcode> <searched_addr1>string</searched_addr1> </age_verification_res>
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /soap/t2a.asmx/age_verification HTTP/1.1 Host: api.t2a.io Content-Type: application/x-www-form-urlencoded Content-Length: length api_key=string&client=string&surname=string&forename=string&fullname=string&addr1=string&addr2=string&addr3=string&place=string&town=string&postcode=string&surname_fuzzy=string&forename_fuzzy=string&check_under_18=string
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <age_verification_res xmlns="https://api.t2a.io/soap"> <validation_status>string</validation_status> <match_code_forename>string</match_code_forename> <match_code_surname>string</match_code_surname> <match_code_address>string</match_code_address> <transaction_id>string</transaction_id> <searched_name>string</searched_name> <searched_surname>string</searched_surname> <searched_forename>string</searched_forename> <searched_postcode>string</searched_postcode> <searched_addr1>string</searched_addr1> </age_verification_res>