Skip to main content
POST

Overview

Open a bank account your customer can be paid into. Payments into it are credited to the customer and reported on the account.funded webhook. You don’t have to create the customer first. Name them with your own customer id, send their details, and the customer and the account are opened in one request.

Naming the customer

Send one of these. Sending both answers 400. We look the value up within your business: our id first, then a customer whose reference is that value.
  • Existing customer: no details are needed.
  • New customer (no customer has your id yet): send the details below, and the customer is created with your id as their reference. Repeating the request finds the same customer; it never creates a second one.
  • Unknown id and no details: 400 customer was not found. An id in our customer-id format that isn’t one of your customers is never taken as your own id.
Your ids are 1–64 characters of letters, digits and _ . : -, unique within your business.

Your customer id is the customer

Within your business, a customer is your customer_id, not their email, phone or BVN. One person may be several of your customers (for example one per loan), and they may share an email, phone and BVN. A customer_id we don’t know yet always creates a new customer under it, even when another of your customers has the same email.
  • Sending our customer id keeps working as before.
  • One customer_id is one person: if the customer’s BVN was verified and the request sends a different id_number, the answer is 409 customer_id_conflict and nothing is opened. Use a new customer_id for a different person.
  • For limits and monitoring we still count your customers who share a BVN as one person. That link is never shown in the API.

New customer details

A missing detail answers 422 listing each missing field.

Currency

  • NGN: in live, id_number (the customer’s BVN) is required unless the customer already has a BVN on file. It is verified before the account is opened. See The bank.
  • USD: set a default USD settlement wallet in your dashboard settings; any account fee is charged to it and returned as amount_debited. The customer needs an address and identity documents on file, so create USD customers with Create Customer first.

The bank (NGN)

NGN customer accounts open at Nombank MFB (bank_code 090645) or Rex Microfinance Bank (bank_code 090449), each a 10-digit NUBAN.
  • Leave bank out (recommended). The account opens at Nombank. Nombank opens it against the customer’s BVN or NIN, and holds at most two accounts per BVN or NIN, counted across every business we serve. When a customer is already at that limit, the account opens at the next bank we offer your business, in the same request: Rex Microfinance Bank, then Paga (bank_code 100002). The response looks the same either way: read bank_name and bank_code.
  • Send "bank": "rex" to open the account at Rex Microfinance Bank only. If Rex can’t open the account, the answer is 503 bank_unavailable and nothing is opened.
  • Send "bank": "nombank" to allow Nombank only. At the limit the answer is then 422 nomba_identity_limit and nothing is opened.
  • Nothing else moves an account to another bank. If Nombank can’t be reached, or we can’t confirm whether it opened the account, the answer is 503 issuing_unavailable with data.retryable true. No account is given to you then, though one the bank opened may still be confirmed later: retry with the same reference, and contact support if it persists.
  • At Rex, a retry is safe: repeating the request after a timeout returns the account Rex already opened, never a second one.
  • Accounts your customers already hold at PalmPay or Paga keep receiving payments. Each is being given a Nombank replacement (see Replaced accounts).
  • Without reference, a customer has one account per bank, and a second request answers 400 bank account is already added. A customer may hold one account at Nombank and one at Rex.
  • Dynamic accounts are not offered at Rex: "bank": "rex" there answers 400 invalid_bank.

One account per loan or order

Add reference to open an account for one loan, order or contract. A customer can hold several accounts, one per reference, and every payment into an account carries its reference on account.funded.
  • reference is the idempotency key: repeating the request with the same reference, customer and currency returns the same account. Nothing new is opened, and nothing is checked against the limit below.
  • A new reference opens a new account for the same customer.
  • A person can hold at most 20 open accounts with your business by default, counted across every customer_id that shares their BVN. One more answers 409 account_limit_reached with data.limit and data.active. Contact support to change your limit.
  • Look an account up with Get Virtual Account by Reference.
  • Without reference, a customer has one account per bank, and a second request for the same bank answers 400 bank account is already added.
  • For repayments, a dynamic account per order (with amount and reference) is often the better fit: it expires, so it never adds to the customer’s open accounts, and account.funded carries the order reference and expected_amount.

Errors

See Creating Accounts for the full guide.

Authorizations

X-API-Key
string
header
required

API key for authentication.

Body

application/json

Name the customer with customer_id or customer_reference (exactly one is required). The customer_* fields are read only when the customer does not exist yet.

currency
string
required

Account currency: NGN or USD.

customer_id
string

Required unless you send customer_reference. Our customer id, or your own id for the customer. We look it up within your business: our id first, then a customer whose reference is this value. If neither matches and the request carries the customer's details (customer_* fields), the customer is created with this value as their reference (1 to 64 characters: letters, digits, and _ . : -). Without details, an unknown id answers 400 customer was not found.

Example:

"CUST-10293"

customer_reference
string

Required unless you send customer_id. Your own id for the customer, by its explicit name. Works the same way as your id in customer_id, including creating a new customer from the customer_* fields. Send this or customer_id, not both.

Example:

"CUST-10293"

id_number
string

The customer's BVN, for NGN accounts. In live it is required unless the customer already has a BVN on file, and it is verified before the account is opened. When sent for a new customer, customer_date_of_birth is not needed: it is taken from the BVN record.

Example:

"22212345678"

reference
string

Optional. Your own reference for this account (a loan, an order). 1 to 64 characters: letters, digits, and _ . : -. Unique among your business's accounts. A customer can hold one account per reference; repeating the request with the same reference, customer and currency returns the same account. Reusing it for another customer or currency answers 400 duplicate_reference.

Example:

"LOAN-2026-0042"

codes
string[]

NGN: the older way to choose the bank: 090645 (Nombank) or 090449 (Rex). Prefer bank, or leave both out.

Example:
bank
enum<string>

NGN. Leave out (recommended): the account opens at Nombank MFB, or at the next bank we offer your business (Rex Microfinance Bank, then Paga) when Nombank already holds two accounts for the customer's BVN or NIN. nombank allows Nombank only (nomba_identity_limit at the limit). rex opens at Rex Microfinance Bank (090449) only.

Available options:
nombank,
rex,
paga
Example:

"nombank"

customer_name
string

New customer: full name, split at the first space into first and last name. Required unless you send customer_first_name and customer_last_name.

Example:

"Ada Obi"

customer_first_name
string

New customer: first name. Send with customer_last_name, or send customer_name instead.

Example:

"Ada"

customer_last_name
string

New customer: last name. Send with customer_first_name, or send customer_name instead.

Example:

"Obi"

customer_email
string<email>

New customer: required. A valid email address, unique among your customers.

customer_phone
string

New customer: required.

Example:

"08030000000"

customer_country_code
string

New customer: two-letter ISO country code. Defaults to NG for NGN; required otherwise.

Example:

"NG"

customer_date_of_birth
string<date>

New customer: YYYY-MM-DD. Required, except for NGN when you send id_number (BVN): the date of birth is then taken from the BVN record.

Example:

"1990-04-12"

customer_gender
enum<string>

New customer: optional. male or female.

Available options:
male,
female

Response

The account was opened, or (same reference, customer and currency) the account already opened for it

status
boolean
data
object
error
any[]
message
string