International Passport Verification (Ghana)
Ghanaian International Passport Lookup API
To perform verification on a Ghanaian International passport, make a POST request to the following endpoint;
https://api.korapay.com/merchant/api/v1/identities/gh/passport
Data Validation for International Passport
Data validation for international passports enables you to verify an international passport and validate the information in the government database against the data parameters you provided when the verification request was made. You can validate the first_name
, last_name
, and date_of_birth
by passing this information in the request body to get a true
or false
response on whether they match the information in the database. Use the same endpoint above to make this request.
Facial Matching for International Passport
Facial matching for international passport enables you to compare the passport holder’s image in the government database against the image provided when the verification request was made. A confidence score of how well the images match will be returned. Use the same endpoint above to make this request.
The request body should have the following parameters:
{
"id": "G0000555",
"verification_consent": true
}
{
"id": "G0000555",
"verification_consent": true,
"validation": {
"first_name": "John",
"last_name": "Doe",
"date_of_birth": "1988-04-04"
}
}
{
"id": "G0000555",
"verification_consent": true,
"validation": {
"first_name": "john",
"last_name": "doe",
"date_of_birth": "1988-04-04",
"selfie": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQ"
}
}
The fields in this request include:
Field | Data Type | Description |
---|---|---|
id | String | Required - the ID number |
verification_consent | Boolean | Required - this indicates that subject has given consent to perform this verification. This must be true for the check to be performed. |
validation.first_name | String | Optional (required for data matching) - the first name of the ID holder to be compared with ID information in the government database. |
validation.last_name | String | Optional (required for data matching) - the last name of the ID holder to be compared with ID information in the government database. |
validation.date_of_birth | String | Optional (required for data matching) - the date of birth of the ID holder to be compared with ID information in the government database. |
validation.selfie | String | Optional (required for facial matching) - the selfie/photo of the ID holder to be compared with ID information in the government database. |
The response to this request would look like this:
{
"status": true,
"message": "GH passport verified successfully",
"data": {
"reference": "VR-xriDbTZ6ZuwPWYQxd",
"id": "G0000555",
"id_type": "gh_passport",
"first_name": "SAMUEL",
"last_name": "KUDUS",
"middle_name": "MICHAEL",
"full_name": "SAMUEL MICHAEL KUDUS",
"gender": "male",
"date_of_birth": "1955-05-25",
"place_of_birth": "ACCRA",
"nationality": "GHANAIAN",
"issued_at": "ACCRA",
"issued_date": "2023-03-10",
"expired_date": "2030-03-11",
"image": "/9j/4AAQSkZJRgABAQAAAQABAAD/4gIcSUNDX1BST0ZJTEUAAQE",
"signature": "/9j/4AAQSkZJRgABAQAAAQABAAD/4gIcSUNDX1BST0ZJTEUAAQEA",
"validation": {
"first_name": {
"value": "Viola",
"match": false
},
"last_name": {
"value": "doe",
"match": false
},
"date_of_birth": {
"value": "1988-10-16",
"match": false
},
"selfie": {
"value": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAA",
"match": true,
"confidence_rating": 94
}
},
"requested_by": "API User"
}
}
Updated about 2 months ago