ID Number Regex
The most common reason for failure of an ID lookup is because the end user did not input their ID number correctly. One of the best ways to mitigate this is to validate ID numbers on the client-side, before sending them to Smile Identity. Below we will provide validation regexes for most of our ID types. It is important to note that they change over time, and we will do our best to keep this page updated.

Know Your Business (KYB)

Country
Country Code
id_type
Regex
🇳🇬
Nigeria
NG
TIN
/^[0-9]{8,}-[0-9]{4,}$/
Nigeria
NG
CAC
/^[0-9]{5,8}$/
Copy link