Verify Passport number using official government database.

There are 2 types of Passport APIs

1. Passport Number Lookup

Validate the passport number of a user against the government database. This API requires just Passport number and user's last name as input.

Request:

{
    "template_id" : "NG_PASSPORT_NUMBER_VERIFICATION",
    "user_data": {
        "identity": {
            "identity_country_code": "NG",
            "identity_number_type": "PASSPORT",
            "identity_number": "{{Valid_Passport_Number}}",
        },
        "last_name": "{{User_Last_Name}}"
    }
}

Response:

{
    "aiprise_summary": {
        "verification_result": "APPROVED"
    },
    "client_reference_id": null,
    "created_at": 123456789,
    "id_info": {
        // Normalized fields.
        "birth_date": "YYYY-MM-DD",
        "first_name": "",
        "full_name": "",
        "gender": "",
        "id_expiry_date": "YYYY-MM-DD",
        "id_issue_date": "YYYY-MM-DD",
        "id_number": "",
        "id_type": "PASSPORT_NUMBER",
        "issue_country": "Nigeria",
        "issue_country_code": "NG",
        "last_name": "",
        "middle_name": "",
        "result": "APPROVED",

        // Government Lookup details.
        "lookup_details": {
            "lookup_list": [
                {
                    "issuer_country_code": "NG",
                    "lookup_data": {
                        "birth_date": "",
                        "expiry_date": "",
                        "first_name": "",
                        "gender": "",
                        "issue_date": "",
                        "issue_place": "",
                        "last_name": "",
                        "middle_name": "",
                        "mobile": "",
                        "passport_number": "",
                        "user_photo": "{{BASE64_STRING}}",
                        "user_signature": "{{BASE64_STRING}}"
                    },
                    "lookup_source": "Nigeria Immigration Service",
                    "lookup_type": "PASSPORT"
                }
            ]
        },
    },
    "status": "COMPLETED",
    "template_id": "{{YOUR_TEMPLATE_ID}}",
    "verification_session_id": ""
}

2. Passport Number Lookup + Face Match

Validate the passport number of a user against the government database along with the face match. This API requires Passport number, user's last name and user's selfie as input.

Request:

{
    "template_id" : "NG_PASSPORT_NUMBER_VERIFICATION",
    "user_data": {
        "identity": {
            "identity_country_code": "NG",
            "identity_number_type": "PASSPORT",
            "identity_number": "{{Valid_Passport_Number}}",
        },
        "last_name": "{{User_Last_Name}}",
        "selfie": "{{Valid_Base64_String}}"
    }
}

Respone:

{
    "aiprise_summary": {
        "verification_result": "APPROVED"
    },
    "client_reference_id": null,
    "created_at": 123456789,
  
    // Face Match Info
    "face_match_info": {
      "face_match_score": 98.44,
      "result": "APPROVED"
    },
  
    // Identity Info
    "id_info": {
        // Normalized fields.
        "birth_date": "YYYY-MM-DD",
        "first_name": "",
        "full_name": "",
        "gender": "",
        "id_expiry_date": "YYYY-MM-DD",
        "id_issue_date": "YYYY-MM-DD",
        "id_number": "",
        "id_type": "PASSPORT_NUMBER",
        "issue_country": "Nigeria",
        "issue_country_code": "NG",
        "last_name": "",
        "middle_name": "",
        "result": "APPROVED",

        // Government Lookup details.
        "lookup_details": {
            "lookup_list": [
                {
                    "issuer_country_code": "NG",
                    "lookup_data": {
                        "birth_date": "",
                        "expiry_date": "",
                        "first_name": "",
                        "gender": "",
                        "issue_date": "",
                        "issue_place": "",
                        "last_name": "",
                        "middle_name": "",
                        "mobile": "",
                        "passport_number": "",
                        "user_photo": "{{BASE64_STRING}}",
                        "user_signature": "{{BASE64_STRING}}"
                    },
                    "lookup_source": "Nigeria Immigration Service",
                    "lookup_type": "PASSPORT"
                }
            ]
        },
    },
    "status": "COMPLETED",
    "template_id": "{{YOUR_TEMPLATE_ID}}",
    "verification_session_id": ""
}