> ## 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.

# NIN avec photo

> Vérifiez le NIN d'un client combiné à une image faciale pour une confirmation d'identité renforcée.

<Warning>
  Ce service n'est pas disponible actuellement. Nous travaillons à le restaurer — veuillez consulter à nouveau bientôt.
</Warning>

L'endpoint NIN avec photo vérifie le Numéro National d'Identification d'un client et effectue une comparaison faciale par rapport à une URL de photo fournie. Il renvoie les données complètes du profil NIN ainsi que les résultats de concordance faciale.

## Endpoint

```
POST /api/onboarding/nigeria_kyc/nin_with_face/
```

## Requête

### En-têtes

| En-tête          | Valeur                | Requis |
| ---------------- | --------------------- | ------ |
| `x-access-token` | Votre clé secrète API | Oui    |
| `Content-Type`   | `application/json`    | Oui    |

### Paramètres de corps

| Paramètre               | Type   | Requis | Description                                                 |
| ----------------------- | ------ | ------ | ----------------------------------------------------------- |
| `identification_number` | string | Oui    | Le Numéro National d'Identification à 11 chiffres du client |
| `image_url`             | string | Oui    | URL de la photo du client pour la comparaison faciale       |

### Exemple

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST "https://adhere-api.smartcomply.com/api/onboarding/nigeria_kyc/nin_with_face/" \
    -H "x-access-token: YOUR_SECRET_KEY" \
    -H "Content-Type: application/json" \
    -d '{"identification_number": "70123456789", "image_url": "https://example.com/photo.jpg"}'
  ```

  ```python Python theme={null}
  import requests
  response = requests.post(
      "https://adhere-api.smartcomply.com/api/onboarding/nigeria_kyc/nin_with_face/",
      headers={"x-access-token": "YOUR_SECRET_KEY", "Content-Type": "application/json"},
      json={"identification_number": "70123456789", "image_url": "https://example.com/photo.jpg"},
  )
  ```
</CodeGroup>

## Réponse

### 200 OK

| Champ                         | Type   | Description                                                                 |
| ----------------------------- | ------ | --------------------------------------------------------------------------- |
| `data.nin_data`               | object | Profil NIN complet (mêmes champs que l'[endpoint NIN](/v3/kyc/nigeria/nin)) |
| `data.face_data.message`      | string | Message du résultat de concordance faciale                                  |
| `data.face_data.confidence`   | number | Pourcentage de confiance de correspondance (0–100)                          |
| `data.verification.status`    | string | `"VERIFIED"` si l'identité est confirmée                                    |
| `data.verification.reference` | string | ID de référence de vérification unique                                      |

```json theme={null}
{
  "status": "success",
  "data": {
    "nin_data": {
      "lastName": "UCHE",
      "firstName": "KARIM",
      "middleName": "IKENNA",
      "gender": "male",
      "dateOfBirth": "2002-11-09",
      "nin": "90187493033",
      "telephoneNo": "09088118811",
      "residenceAddress": "5, ODEYEMI STREET, ANIMASHAUN",
      "residenceLga": "Ifo",
      "residenceState": "Ogun",
      "image": "<base64-encoded-jpeg>"
    },
    "face_data": {
      "message": "Face Match",
      "confidence": 99.99
    },
    "verification": {
      "status": "VERIFIED",
      "reference": "8314a5fc-bdb5-40c8-98bd-72aef9f1a868"
    }
  },
  "message": "National Identification Number 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/nin_with_face/
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/nin_with_face/:
    post:
      tags:
        - Nigeria KYC
      summary: NIN with Face
      operationId: ninWithFace
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - identification_number
                - image_url
              properties:
                identification_number:
                  type: string
                  description: 11-digit National Identification Number
                  example: '70123456789'
                image_url:
                  type: string
                  description: URL of the customer's photo for facial comparison
                  example: https://example.com/photo.jpg
      responses:
        '200':
          description: NIN with face 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

````