# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.myidentitypass.com/products/data-verification/sierra-leone/voters-card.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
