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

# Passport Verification

> Verify a customer's identity using their Nigerian international passport number.

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

The Passport Verification endpoint validates a Nigerian passport number against the government database and returns the holder's personal details, passport validity dates, and a photo.

## Endpoint

```
POST /api/onboarding/nigeria_kyc/passport/
```

## Request

### Headers

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

### Body Parameters

| Parameter | Type | Required | Description |
| - | - | - | - |
| `passport_number` | string | Yes | The customer's passport number |
| `surname` | string | Yes | Surname as on the passport |
| `date_of_birth` | string | Yes | Date of birth in `YYYY-MM-DD` format |

### Example

```bash cURL theme={null}
curl -X POST "https://adhere-api.smartcomply.com/api/onboarding/nigeria_kyc/passport/" \
  -H "x-access-token: YOUR_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{"passport_number": "Z18679232", "surname": "John", "date_of_birth": "1994-08-11"}'
```

```python Python theme={null}
import requests
response = requests.post(
    "https://adhere-api.smartcomply.com/api/onboarding/nigeria_kyc/passport/",
    headers={"x-access-token": "YOUR_SECRET_KEY", "Content-Type": "application/json"},
    json={"passport_number": "Z18679232", "surname": "John", "date_of_birth": "1994-08-11"},
)
```

## Response

### 200 OK

| Field | Type | Description |
| - | - | - |
| `data.passportNumber` | string | Passport number |
| `data.lastName` | string | Last name |
| `data.firstName` | string | First name |
| `data.middleName` | string | Middle name |
| `data.dateOfBirth` | string | Date of birth |
| `data.gender` | string | Gender |
| `data.dateOfIssue` | string | Passport issue date |
| `data.expiryDate` | string | Passport expiry date |
| `data.issuePlace` | string | State/location where passport was issued |
| `data.documentType` | string | Passport type (e.g., `"Standard Passport"`) |
| `data.phoneNumber` | string | Registered phone number |
| `data.image` | string | Base64-encoded passport photo |
| `data.referenceID` | string | Internal reference ID |

```json theme={null}
{
  "status": "success",
  "data": {
    "passportNumber": "Z18679232",
    "dateOfIssue": "20/09/2023",
    "expiryDate": "19/09/2028",
    "documentType": "Standard Passport",
    "issuePlace": "OGUN STATE",
    "lastName": "JOHN",
    "firstName": "EMMANUEL",
    "middleName": "IFEANYI",
    "dateOfBirth": "10/04/2000",
    "gender": "Male",
    "image": "<base64-encoded-jpeg>",
    "referenceID": "23445",
    "phoneNumber": "09011002200"
  },
  "message": "International Passport 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/passport/
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/passport/:
    post:
      tags:
        - Nigeria KYC
      summary: Passport Verification
      operationId: nigeriaPassport
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - passport_number
                - surname
                - date_of_birth
              properties:
                passport_number:
                  type: string
                  description: The customer's passport number
                  example: Z18679232
                surname:
                  type: string
                  description: Surname as on the passport
                  example: John
                date_of_birth:
                  type: string
                  description: Date of birth in YYYY-MM-DD format
                  example: '1994-08-11'
      responses:
        '200':
          description: Passport 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.