# Voters Card

## Allows merchant to verify information of users using National ID and other identifiers.

<mark style="color:green;">`POST`</mark> `https://api.myidentitypay.com/{{BASE_URL}}/api/v2/biometrics/merchant/data/verification/sl/voters`

#### Headers

| Name                                        | Type   | Description        |
| ------------------------------------------- | ------ | ------------------ |
| x-api-key<mark style="color:red;">\*</mark> | String | \<your secret key> |
| app-id<mark style="color:red;">\*</mark>    | String | \<your app id>     |

#### Request Body

| Name                                           | Type   | Description                           |
| ---------------------------------------------- | ------ | ------------------------------------- |
| firstname                                      | String | first name(If search\_mode is BIO)    |
| lastname                                       | String | last name(if search\_mode is BIO)     |
| dob                                            | String | Date of Birth(if search\_mode is BIO) |
| search\_mode<mark style="color:red;">\*</mark> | String | ID or BIO                             |
| number                                         | String | ID number(if search\_mode is ID)      |
| middlename                                     | String | middlename(if search\_mode is BIO)    |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
   "status":True,
   "response_code":"00",
   "message":"Voters card verification successful",
   "data":
   {
"IdNumber":"E123456",
"CenterCode":"1001",
"Ward":"21",
"Constituency": "38",
"District":"",
"LastName": "DOE",
"OtherNames":"JOHN",
"Sex":"M",
"DateOfBirth":"February 15,2018 ",
"Address":"22 Kamal Street",
"Village": "Makeni",
"Picture":"<base 64 string of users face>"
}
   
}

```

{% endtab %}
{% endtabs %}
