API Status

Age Verification

Verify an individual's age against a specified age threshold.

Compatible Cases

Icon 1

About the service

W2DataAgeVerification007Service is an age verification service for the United Kingdom. It provides a date of birth check against an age threshold, using various public data sources to verify that the age is either above or below the given age threshold.

Product Code: W2-DATA-AGE_VERIFICATION-007

Does this service leave a credit search Footprint? No


Request

Property

Type

Length

Optional/Mandatory

Notes

Forename

String

15

Mandatory

MiddleName

String

15

Optional

Surname

String

15

Mandatory

DayOfBirth

Integer

2

Mandatory

MonthOfBirth

Integer

2

Mandatory

YearOfBirth

Integer

4

Mandatory

HouseName

String

26

Mandatory if no HouseNumber given

HouseNumber

String

26

Mandatory if no HouseName given

Postcode

String

8

Mandatory

Street

String

40

Optional

County

String

20

Optional

City

String

20

Optional

Country

String

3

Optional

If set, must be a valid three-letter ISO country code as described here. If not set, the search will be within the United Kingdom (GBR)

AgeVerificationThreshold

Integer

3

Mandatory

The age limit that the searched-for individual will be checked against.

AgeVerificationPassIf

Integer

3

Mandatory

A number between 1 and 4 that tells us what check needs to be made against the limit.

The options are:
1: GreaterThan
2: GreaterThanOrEqualTo
3: LessThan
4: LessThanOrEqualTo

For example, to check that an individual is 18 or over, the AgeVerificationThreshold should be 18 and the AgeVerificationPassIf should be 2 (GreaterThanOrEqualTo).


Response

Example response

"w2DataAgeVerification007Result": {
	"ageVerificationThreshold": 25,
	"passIf": "LessThan",
	"thresholdMet": true,
	"verifiedDob": true
}
PropertyTypeNotes
VerifiedDobBoolConfirms whether or not the requested DOB has been successfully matched to the searched individual.
ThresholdMetBoolTRUE if the individual has passed the requested test. For example, if the requested age threshold was 18 and the test was GreaterThanOrEqualTo, and the service has confirmed that the individual is indeed 18 or over, this will be TRUE. If the test has failed then this value will be FALSE. Additionally, if the date of birth was not verified in the first place then this will also be FALSE.
PassIfStringThe requested test, in plain English.
AgeVerificationThresholdIntThe requested age limit.
MessageStringFurther details on result, if necessary. This is mostly used for reporting errors.

Result Interpretation

In the service transaction information block (ServiceResponse > ProcessRequestResult > TransactionInformation > ServiceTransactions) the ServiceInterpretResult value will be "Pass" if the threshold was met, and "Fail" if it wasn't.

In the event of an unexpected error, the value will be "NotPerformed" and more information can be found in either the ServiceTransactionResultMessage field of the same block, or the Message block of the service result.


Sandbox

To use sandbox the following example request can be used.

Remember to include the W2-provided API key in the Authorization Header.

{
    "Bundle": "KYC_UK_AGE_VERIFY",
    "Data": {
        "forename": "Charlotte",
        "surname": "Hurst",
        "dayOfBirth": 1,
        "monthOfBirth": 1,
        "yearOfBirth": 2011,
        "PassIf" : 1,
        "AgeVerificationThreshold": 10,
        "houseNumber": "47",
        "street": "Bootham Terrace",
        "postcode": "KW14 3ZB"


    },
    "Options": {
        "Sandbox": "true"
    },
    "ClientReference": "your-client-reference"
}
Language
Credentials
Header
Click Try It! to start a request and see the response here!