Social Security Number (without UI)

AI Tools

This type of method does not use the Age Verification UI.

The API endpoint to request the SSN check for age:

HTTP
Copy
HeaderDescription
AuthorizationAPI Key to call the Yoti Age API. Should be sent as a 'Bearer {{API_TOKEN}}'.
Content-Typeapplication/json
Yoti-Sdk-IdYour unique Yoti-Sdk-Id (uuid)

You should inform the user of this check in advance

Example payload

Full SSN
Last 4 Digits
Copy
FieldValueDescription
typeOVEROnly 'OVER' is supported
thresholdnumberDefaults to 18
first_namestringThe first name of the user
last_namestringThe last name of the user
zip_codestringUser zip code
social_security_numberstringUser SSN
date_of_birthstring (dob)User DOB
phone_numberstringThe user phone number
streetstringThe user street name

Example response

JSON
Copy
FieldDescription
transaction_idUnique ID related to the request check being performed.
typeThe condition for the age check (Over threshold)
status

COMPLETE - The SSN was verified to be over the threshold

ERROR - No match found for the check

INSUFFICIENT_DATA - No match found for the check (this will eventually replace the ERROR state)

resultReturns true if the threshold (18) has been met. Returns false if not met, or on error. The result flag will eventually be deprecated so we recommend looking at the Status to determine the outcome.
ageThe threshold of the check (18)
methodThe method used. This should return as Social Security Number
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard