Ghana
With just the number of a government issued ID, we can fetch all the information from the official government databases.
Driver License
Regex: /^[a-zA-Z0-9!-]{6,18}$/i
{
"template_id" : "{{YOUR_TEMPLATE_ID}}",
"user_data": {
"identity": {
"identity_country_code": "GH",
"identity_number_type": "DRIVER_LICENSE",
"identity_number": "{{Valid_Driver_License_Number}}"
},
}
}
Passport
Regex: /^[A-Z][0-9]{7,9}$/i
{
"template_id" : "{{YOUR_TEMPLATE_ID}}",
"user_data": {
"identity": {
"identity_country_code": "GH",
"identity_number_type": "PASSPORT",
"identity_number": "{{Valid_Passport_Number}}"
},
}
}
Voter ID
Regex: /^[0-9]{10,12}$/
{
"template_id" : "{{YOUR_TEMPLATE_ID}}",
"user_data": {
"identity": {
"identity_country_code": "GH",
"identity_number_type": "VOTER_ID",
"identity_number": "{{Valid_Voter_ID_Number}}"
},
}
}
Voter ID (Old)
Regex: /^[0-9]{10,12}$/
{
"template_id" : "{{YOUR_TEMPLATE_ID}}",
"user_data": {
"identity": {
"identity_country_code": "GH",
"identity_number_type": "VOTER_ID_OLD",
"identity_number": "{{Valid_Voter_ID_Number}}"
},
}
}
SSNIT
Regex: /^[a-zA-Z]{1}[a-zA-Z0-9]{12,14}$/i
{
"template_id" : "{{YOUR_TEMPLATE_ID}}",
"user_data": {
"identity": {
"identity_country_code": "GH",
"identity_number_type": "SSNIT",
"identity_number": "{{Valid_SSNIT_Number}}"
},
}
}
Updated 2 months ago