post https://integrations.getravenbank.com/v1/passport/verify
The International PAssport verification API allows you to verify a passport by parsing passport_number
, first_name
, last_name
, date_of_birth
, phone_number
in the request body as just as shown in the example below.
Example Requests
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
'passport_number': 'B54386879',
'first_name': 'JOHN',
'last_name': 'DOE',
'date_of_birth': '1997-08-06',
'phone_number': '075456612902'
});
var config = {
method: 'post',
url: 'https://integrations.getravenbank.com/v1/passport/verify',
headers: { },
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
Example Response
{
"status": "success",
"message": "Passport data retrieved successfully",
"data": {
"firstname": "FIRSTNAME",
"lastname": "LASTNAME",
"fullname": "FIRSTNAME LASTNAME",
"date_of_birth": "1990-07-06",
"gender": "male",
"email": null,
"place_of_issuance": "IKOYI, LAGOS",
"date_of_issuance": "May 28, 2021",
"passport_expiration_date": "May 27, 2031"
}
}