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

# Virtual NIN (VNIN)

> Verify a customer's identity using their 16-character Virtual National Identification Number.

> [!WARNING]
>
> This service is not available at the moment. We're working to restore it — please check back soon.

The VNIN endpoint validates a Virtual National Identification Number — a tokenised version of a customer's NIN generated by NIMC — and returns their core identity profile.

## Endpoint

```
POST /api/onboarding/nigeria_kyc/vnin/
```

## Request

### Headers

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

### Body Parameters

| Parameter | Type | Required | Description |
| - | - | - | - |
| `vnin` | string | Yes | The customer's 16-character Virtual NIN (e.g., `AB012345678910YZ`) |

### Example

```bash cURL theme={null}
curl -X POST "https://adhere-api.smartcomply.com/api/onboarding/nigeria_kyc/vnin/" \
  -H "x-access-token: YOUR_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{"vnin": "AB012345678910YZ"}'
```

```python Python theme={null}
import requests
response = requests.post(
    "https://adhere-api.smartcomply.com/api/onboarding/nigeria_kyc/vnin/",
    headers={"x-access-token": "YOUR_SECRET_KEY", "Content-Type": "application/json"},
    json={"vnin": "AB012345678910YZ"},
)
```

## Response

### 200 OK

| Field | Type | Description |
| - | - | - |
| `data.vnin` | string | The VNIN that was queried |
| `data.firstname` | string | First name |
| `data.middlename` | string | Middle name |
| `data.lastname` | string | Last name |
| `data.gender` | string | `"M"` or `"F"` |
| `data.mobile` | string | Registered mobile number |
| `data.photo` | string | Base64-encoded customer photo |
| `data.customer` | string | Unique customer reference UUID |

```json theme={null}
{
  "status": "success",
  "data": {
    "vnin": "AB012345678910YZ",
    "firstname": "John",
    "middlename": "Doe",
    "lastname": "Alamutu",
    "gender": "M",
    "mobile": "08012345678",
    "photo": "<base64-encoded-jpeg>",
    "customer": "6bb82c41-e15e-4308-b99d-e9640818eca9"
  },
  "message": "Virtual National Identification Number details retrieved successfully"
}
```

### 400 Bad Request

```json theme={null}
{
  "status": "failed",
  "data": [],
  "message": "VNIN is required"
}
```

### 401 Unauthorized

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


## OpenAPI

````yaml POST /api/onboarding/nigeria_kyc/vnin/
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: Document Verification
  - 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/vnin/:
    post:
      tags:
        - Nigeria KYC
      summary: Virtual NIN (VNIN)
      operationId: vnin
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - vnin
              properties:
                vnin:
                  type: string
                  description: 16-character Virtual NIN
                  example: WB9D9SE8HA41Z2M0
      responses:
        '200':
          description: VNIN 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

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.