With just the number of a government issued ID, we can fetch all the information from the official government databases.

BVN

Regex: /^[0-9]{11}$/

BVN API gives all the details about a user including user's name, address, phone number and their photo.

{
    "template_id" : "{{YOUR_TEMPLATE_ID}}",
    "user_data": {
        "identity": {
            "identity_country_code": "NG",
            "identity_number_type": "BVN",
            "identity_number": "{{Valid_BVN_Number}}"
        }
    }
}
{
  "aiprise_summary": {
    "verification_result": "APPROVED"
  },
  "client_reference_id": null,
  "created_at": 123456789,
  
  // Identity Info
  "id_info": {
    // Normalized fields.
    "address": {
      "full_address": "",
      "parsed_address": null
    },
    "birth_date": "YYYY-MM-DD",
    "first_name": "",
    "full_name": "",
    "gender": "",
    "id_issue_date": "YYYY-MM-DD",
    "id_number": "",
    "id_type": "BVN",
    "issue_country": "Nigeria",
    "issue_country_code": "NG",
    "last_name": "",
    "middle_name": "",
    "nationality": "Nigeria",
    
    // Government Lookup details.
    "lookup_details": {
      "lookup_list": [
        {
          "lookup_source": "Nigerian Inter-Bank Settlement Systems",
          "lookup_type": "BVN",
          "issuer_country_code": "NG",
          "lookup_data": {
            "birth_date": "YYYY-MM-DD",
            "bvn": "",
            "email": "",
            "enrollment_bank": "",
            "enrollment_branch": "",
            "first_name": "",
            "gender": "",
            "last_name": "",
            "level_of_account": "",
            "lga_of_origin": "",
            "lga_of_residence": "",
            "marital_status": "",
            "middle_name": "",
            "name_on_card": "",
            "nin": "",
            "phone_number": "",
            "phone_number2": "",
            "registration_date": "YYYY-MM-DD",
            "state_of_origin": "",
            "state_of_residence": "",
            "title": "",
            "user_photo": "{{BASE64_STRING}}",
            "watch_listed": null
          }
        }
      ]
    },
    "result": "APPROVED"
  },
  "status": "COMPLETED",
  "template_id": "{{YOUR_TEMPLATE_ID}}",
  "verification_session_id": ""
}

NIN

The NIN endpoint requires the 11 digit NIN Number and a selfie of the user. This API confirms the NIN Number and also fetches the user photo and NIN slip document.

Regex: /^[a-zA-Z0-9]{11}$/

{
    "template_id" : "{{YOUR_TEMPLATE_ID}}",
    "user_data": {
        "identity": {
            "identity_country_code": "NG",
            "identity_number_type": "NIN",
            "identity_number": "{{Valid_11_Digit_NIN_Number}}"
        },
        "selfie": "{Base_64_String}"
    }
}

Voter ID

Regex: /^[a-zA-Z0-9]{9,20}$/

Voter ID Number does not return the selfie of the user from the government database so cannot be used for face match.

{
    "template_id" : "NG_VOTERID_NUMBER_VERIFICATION",
    "user_data": {
        "identity": {
            "identity_country_code": "NG",
            "identity_number_type": "VOTER_ID",
            "identity_number": "{{Valid_Voter_Id_Number}}",
        }
    }
}
{
    "aiprise_summary": {
        "verification_result": "APPROVED"
    },
    "client_reference_id": null,
    "created_at": 123456789,
    "id_info": {

        // Normalized fields.
        "full_name": "",
        "gender": "",
        "id_issue_date": "YYYY-MM-DD",
        "id_number": "",
        "id_type": "VOTER_ID_NUMBER",
        "issue_country": "Nigeria",
        "issue_country_code": "NG",

        // Government Lookup details.
        "lookup_details": {
            "lookup_list": [
                {
                    "issuer_country_code": "NG",
                    "lookup_source": "Independent National Electoral Commission",
                    "lookup_type": "VOTER_ID",
                    "lookup_data": {
                        "birth_date": "",
                        "full_name": "",
                        "gender": "",
                        "issue_date": "",
                        "issue_state": "",
                        "vin": "",
                        "occupation": "",
                        "local_government": "",
                        "registration_area_ward": "",
                        "polling_unit": "",
                        "polling_unit_code": "",
                        "phone": "",
                    }
                }
            ]
        },
        "result": "APPROVED"
    },
    "status": "COMPLETED",
    "template_id": "{{YOUR_TEMPLATE_ID}}",
    "verification_session_id": ""
}