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

# NUBAN Advanced

> Resolve a bank account's name and check it against the name you provide.

The NUBAN Advanced endpoint provides a more comprehensive view of a bank account compared to the standard NUBAN check. In addition to resolving the account name, it compares the account against a `customer_name` you provide and returns a name-match confidence score — useful for confirming that a bank account genuinely belongs to the person or business claiming it.

## Endpoint

```
POST /api/onboarding/nigeria_kyc/nuban_advanced/
```

## Request

### Headers

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

### Body Parameters

| Parameter | Type | Required | Description |
| - | - | - | - |
| `account_number` | string | Yes | The 10-digit NUBAN account number |
| `bank_code` | string | Yes | The bank code (see [NUBAN bank codes](https://docs.adherecompliance.com/v3/kyc/nigeria/nuban.md#bank-codes-reference)) |
| `customer_name` | string | Yes | The name to check against the registered account holder's name. Leaving it out returns a 400 error. |

### Example

```bash cURL theme={null}
curl -X POST "https://adhere-api.smartcomply.com/api/onboarding/nigeria_kyc/nuban_advanced/" \
  -H "x-access-token: YOUR_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{"account_number": "0768540312", "bank_code": "035", "customer_name": "STEPHEN BADMUS"}'
```

```python Python theme={null}
import requests
response = requests.post(
    "https://adhere-api.smartcomply.com/api/onboarding/nigeria_kyc/nuban_advanced/",
    headers={"x-access-token": "YOUR_SECRET_KEY", "Content-Type": "application/json"},
    json={"account_number": "0768540312", "bank_code": "035", "customer_name": "STEPHEN BADMUS"},
)
```

## Response

### 200 OK

| Field | Type | Description |
| - | - | - |
| `data.valid` | boolean | The account was found and resolved |
| `data.account_data.account_number` | string | Account number that was queried |
| `data.account_data.account_name` | string | Registered account holder name |
| `data.account_data.bank_id` | integer | Internal bank identifier |
| `data.comparism_data.status` | boolean | Whether `customer_name` matches the registered account holder |
| `data.comparism_data.confidence` | number | Name-match confidence score (0–1) |

```json theme={null}
{
  "status": "success",
  "data": {
    "valid": true,
    "account_data": {
      "account_number": "0768540312",
      "account_name": "STEPHEN BADMUS",
      "bank_id": 11
    },
    "comparism_data": {
      "status": true,
      "confidence": 1.0
    }
  },
  "message": "Nuban details retrieved successfully"
}
```

> [!NOTE]
>
> The name match ignores letter case and extra spaces, so `Stephen Badmus` matches `STEPHEN  BADMUS`. Decide on `comparism_data.status`; keep `confidence` for your own records.

### Reading the name match

| Field | Meaning |
| - | - |
| `comparism_data.status` | The verdict. `true`: the name you sent belongs to the account holder. `false`: it doesn't. |
| `comparism_data.confidence` | How similar the two names are, from 0 to 1. Multiply by 100 for a percentage: `1.0` is 100% (identical), `0.37` is 37% (mostly different). |

Base your decision on `status`, not on your own confidence cut-off: the provider sets the verdict. For example, a check returned `false` at 65% and `true` at 97%. In the dashboard this shows as **Name match: Match (100%)** or **Name match: Not a match (37%)**.

When the name doesn't match, the call still succeeds and returns the account details, with `status: false`:

```json theme={null}
{
  "status": "success",
  "data": {
    "valid": true,
    "account_data": {
      "account_number": "0768540312",
      "account_name": "STEPHEN BADMUS",
      "bank_id": 11
    },
    "comparism_data": {
      "status": false,
      "confidence": 0.37
    }
  },
  "message": "Nuban details retrieved successfully"
}
```

> [!TIP]
>
> Use the exact bank code. A code for a different bank returns "Record not found". For example, Sterling Bank is `232` and Sterling Mobile is `23201`.

### 400 Bad Request

```json theme={null}
{
  "status": "failed",
  "data": [],
  "message": "Account Number and Bank Code are required"
}
```

### 401 Unauthorized

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


## OpenAPI

````yaml POST /api/onboarding/nigeria_kyc/nuban_advanced/
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/nuban_advanced/:
    post:
      tags:
        - Nigeria KYC
      summary: NUBAN Advanced
      operationId: nubanAdvanced
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - account_number
                - bank_code
                - customer_name
              properties:
                account_number:
                  type: string
                  example: '0123456789'
                bank_code:
                  type: string
                  example: '044'
                customer_name:
                  type: string
                  description: >-
                    The name to check against the registered account holder's
                    name
                  example: STEPHEN BADMUS
      responses:
        '200':
          description: Account resolved, with the name-match result
          content:
            application/json:
              example:
                status: success
                data:
                  valid: true
                  account_data:
                    account_number: '0768540312'
                    account_name: STEPHEN BADMUS
                    bank_id: 11
                  comparism_data:
                    status: true
                    confidence: 1
                message: Nuban details retrieved successfully
        '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.