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

# Resolve bank account by country

> Look up the account holder name for a bank account before creating a bank-transfer payout. Currently only `ng` is supported. Both body fields are required.

**Test mode (`sk_test_*`):** Simulated name enquiry only. Use `0123456789` + bank `058` → `Test NGN Account 1`; any 10-digit account starting with `000` → `Test Account Holder`; `9999999999` → not found. See guides/test-vs-live for the full fixture table.

Look up the account holder name for a bank account before creating a bank-transfer payout. Currently only `ng` is supported.

Both `account_number` and `bank_code` are required in the request body.

## Test mode (`sk_test_*`)

Name enquiry is **simulated** — no real NIP lookup.

| Account number                          | Bank code | `account_name`      |
| --------------------------------------- | --------- | ------------------- |
| `0123456789`                            | `058`     | Test NGN Account 1  |
| `0987654321`                            | `011`     | Test NGN Account 2  |
| `0555666777`                            | `033`     | Test NGN Account 3  |
| `0123456780`                            | `044`     | Test NGN Account 4  |
| `2081234567`                            | `057`     | Test NGN Account 5  |
| `6012345678`                            | `070`     | Test NGN Account 6  |
| `0012345678`                            | `221`     | Test NGN Account 7  |
| `1234567890`                            | `214`     | Test NGN Account 8  |
| `0023456789`                            | `032`     | Test NGN Account 9  |
| `0061234567`                            | `232`     | Test NGN Account 10 |
| `0001234567`                            | `058`     | Test Account Holder |
| Any 10-digit number starting with `000` | any       | Test Account Holder |
| `9999999999`                            | any       | Not found (`404`)   |


## OpenAPI

````yaml POST /misc/banks/{country}/resolve
openapi: 3.0.0
info:
  title: Puplar Integrations API
  version: 1.0.0
  description: >-
    Public API for integrators using **secret keys** (`sk_test_*` /
    `sk_live_*`). Authenticated routes need only **`Authorization: Bearer
    <secret_key>`**. Test keys sandbox payments, virtual accounts, KYC, and bank
    resolve — see guides/test-vs-live for fixtures. Responses follow `{ message,
    data?, errors? }`. Includes customers, collections, payments, products,
    invoices, payouts, wallets, virtual accounts, crypto, refunds, and webhooks.
  contact:
    name: Puplar Support
    email: support@puplar.com
servers:
  - url: https://api.puplar.com
    description: Production
security: []
tags:
  - name: Customers
    description: Customer CRUD and KYC documents
  - name: Virtual accounts
    description: Funding instructions and test deposit simulation
  - name: Webhooks
    description: >-
      Webhook endpoints and delivery logs. Subscriber verification: HMAC-SHA256
      of raw body with webhook secret, header `X-Signature: sha256=<hex>`.
  - name: Payments
    description: One-time payment collection via hosted checkout links
  - name: Crypto
    description: EVM crypto wallet addresses and supported tokens
  - name: Collections
    description: Reusable checkout links
  - name: Products
    description: Catalog items for invoices. Amounts are minor units.
  - name: Invoices
    description: Draft → finalize → paid or void. Finalize returns a payment URL.
  - name: Payouts
    description: >-
      Send wallet funds to a bank account or crypto wallet. Duplicate
      `reference` returns 409.
  - name: Wallets
    description: >-
      Wallet balances per currency (available, pending, total). Amounts in minor
      units.
  - name: Misc
    description: >-
      Country-scoped bank list and account name lookup for payouts (e.g. `ng`
      for Nigeria).
  - name: Meta
    description: Health and service info
paths:
  /misc/banks/{country}/resolve:
    post:
      tags:
        - Misc
      summary: Resolve bank account by country
      description: >-
        Look up the account holder name for a bank account before creating a
        bank-transfer payout. Currently only `ng` is supported. Both body fields
        are required.


        **Test mode (`sk_test_*`):** Simulated name enquiry only. Use
        `0123456789` + bank `058` → `Test NGN Account 1`; any 10-digit account
        starting with `000` → `Test Account Holder`; `9999999999` → not found.
        See guides/test-vs-live for the full fixture table.
      parameters:
        - name: country
          in: path
          required: true
          schema:
            type: string
            example: ng
          description: >-
            ISO 3166-1 alpha-2 country code. Bank list is currently supported
            for `ng` (Nigeria) only.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - account_number
                - bank_code
              properties:
                account_number:
                  type: string
                  example: '0123456789'
                  description: 10-digit NGN account number
                bank_code:
                  type: string
                  example: '058'
                  description: Bank code from GET /misc/banks/ng
      responses:
        '200':
          description: Account resolved
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Account resolved successfully
                  data:
                    type: object
                    properties:
                      account_name:
                        type: string
                        example: ADA OBI
                      account_number:
                        type: string
                        example: '0123456789'
                      bank_code:
                        type: string
                        example: '058'
        '400':
          description: Account resolve not available for this country
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Account not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        message:
          type: string
          example: Error message
        data:
          type: object
          nullable: true
        errors:
          type: object
          nullable: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Secret key: `Authorization: Bearer sk_test_...` or `sk_live_...`.
        Business and live/test mode are inferred from the key.

````