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 ID. 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)

CountryCountry Codeid_typeRegex

Nigeria

NG

BUSINESS_REGISTRATION

/^0{7}$|^(?![0]+$)[A-Z0-9]{1,8}$/i

Nigeria

NG

TAX_INFORMATION

/^[0-9]{8,}-[0-9]{4,}$/

Nigeria

NG

TIN (Deprecated)

/^[0-9]{8,}-[0-9]{4,}$/

Nigeria

NG

CAC (Deprecated)

/^[0-9]{5,8}$/

South Africa

ZA

BUSINESS_REGISTRATION

/\d{4}\/\d{6}\/\d{2}/

Last updated