> ## Documentation Index
> Fetch the complete documentation index at: https://docs.smartcomply.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Voter's ID

> Verify a customer's identity using their Nigerian Permanent Voter's Card number.

The Voter's ID endpoint validates a Permanent Voter's Card (PVC) number against the INEC database and returns the voter's registered personal details, registration area, and polling unit.

## Endpoint

```
POST /api/onboarding/nigeria_kyc/voters_id/
```

## Request

### Headers

| Header           | Value               | Required |
| ---------------- | ------------------- | -------- |
| `x-access-token` | Your API secret key | Yes      |
| `Content-Type`   | `application/json`  | Yes      |

### Body Parameters

| Parameter       | Type   | Required | Description                           |
| --------------- | ------ | -------- | ------------------------------------- |
| `voters_id`     | string | Yes      | The Permanent Voter's Card number     |
| `first_name`    | string | Yes      | First name as on the voter's card     |
| `last_name`     | string | Yes      | Last name as on the voter's card      |
| `date_of_birth` | string | Yes      | Date of birth in `YYYY-MM-DD` format  |
| `lga`           | string | Yes      | Local government area of registration |
| `state`         | string | Yes      | State of registration                 |

### Example

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST "https://adhere-api.smartcomply.com/api/onboarding/nigeria_kyc/voters_id/" \
    -H "x-access-token: YOUR_SECRET_KEY" \
    -H "Content-Type: application/json" \
    -d '{"voters_id": "91F6B1F5BE295355586", "first_name": "John", "last_name": "Doe", "date_of_birth": "1994-08-11", "lga": "Lagos", "state": "Lagos"}'
  ```

  ```python Python theme={null}
  import requests
  response = requests.post(
      "https://adhere-api.smartcomply.com/api/onboarding/nigeria_kyc/voters_id/",
      headers={"x-access-token": "YOUR_SECRET_KEY", "Content-Type": "application/json"},
      json={"voters_id": "91F6B1F5BE295355586", "first_name": "John", "last_name": "Doe",
            "date_of_birth": "1994-08-11", "lga": "Lagos", "state": "Lagos"},
  )
  ```
</CodeGroup>

## Response

### 200 OK

| Field                              | Type   | Description                         |
| ---------------------------------- | ------ | ----------------------------------- |
| `data.full_name`                   | string | Full name as registered             |
| `data.voter_identification_number` | string | PVC identification number           |
| `data.gender`                      | string | Gender                              |
| `data.occupation`                  | string | Registered occupation               |
| `data.time_of_registration`        | string | Date and time of voter registration |
| `data.state`                       | string | State of registration               |
| `data.local_government`            | string | LGA of registration                 |
| `data.registration_area_ward`      | string | Ward name                           |
| `data.polling_unit`                | string | Polling unit description            |
| `data.polling_unit_code`           | string | Polling unit code                   |

```json theme={null}
{
  "status": "success",
  "data": {
    "full_name": "JOHN DOE S",
    "voter_identification_number": "90F5B1C5B1234567890",
    "gender": "Male",
    "occupation": "STUDENT",
    "time_of_registration": "2011-01-18 13:59:46",
    "state": "ONDO",
    "local_government": "IDANRE",
    "registration_area_ward": "ISALU JIGBOKIN",
    "polling_unit": "OJAJIGBOKIN, O/S IN FRONT OF ABANA I & II",
    "polling_unit_code": "28/08/08/005"
  },
  "message": "Voters Identification details retrieved successfully"
}
```

### 400 Bad Request

```json theme={null}
{
  "status": "failed",
  "data": [],
  "message": "Sorry, your check cannot be processed at the moment. Please try again in a few minutes"
}
```

### 401 Unauthorized

```json theme={null}
{
  "status": "failed",
  "message": "Authentication credentials were not provided."
}
```


## OpenAPI

````yaml POST /api/onboarding/nigeria_kyc/voters_id/
openapi: 3.0.3
info:
  title: Adhere API
  description: >-
    Identity verification, credit checks, transaction monitoring, and loan fraud
    detection across Africa.
  version: 3.0.0
servers:
  - url: https://adhere-api.smartcomply.com
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Nigeria KYC
  - name: Kenya KYC
  - name: Ghana KYC
  - name: Rwanda KYC
  - name: Uganda KYC
  - name: Biometrics
  - name: Individual Credit
  - name: Business Credit
  - name: Transaction Monitoring
  - name: Transaction Screening
  - name: Transaction KYC
  - name: Loan Fraud
  - name: User Journey
paths:
  /api/onboarding/nigeria_kyc/voters_id/:
    post:
      tags:
        - Nigeria KYC
      summary: Voter's ID
      operationId: votersId
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - vin
              properties:
                vin:
                  type: string
                  description: Voter Identification Number
                  example: 95C67890123400001
      responses:
        '200':
          description: Voter's ID verified
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  responses:
    BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: failed
              data:
                type: array
                items: {}
              message:
                type: string
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: failed
              message:
                type: string
                example: Authentication credentials were not provided.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-access-token
      description: Your Adhere API secret key

````