For the complete documentation index, see llms.txt. This page is also available as Markdown.

Resolve Bank Account

Verify a bank account number and retrieve the account holder's name.

Resolves a bank account number to verify it exists and returns the account holder's name. Use this before initiating off-ramp transactions to confirm the recipient's identity.

Endpoint

POST /v1/banks/account-resolution

Authentication

Accepts either a merchant API key or a business-user JWT.

Header
Value

Authorization

<api_key> or Bearer <jwt>

Request body

Field
Type
Required
Description

accountNumber

string

Yes

Bank account number (numeric)

bankCode

string

Yes

Bank code (from List Banks)

currency

string

Yes

Fiat currency code (any string accepted; downstream validation applies). Example: NGN.

Example request

curl -X POST https://ramp-api.ivorypay.io/api/v1/banks/account-resolution \
  -H "Authorization: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "accountNumber": "2124586765",
    "bankCode": "000004",
    "currency": "NGN"
  }'
const response = await fetch("https://ramp-api.ivorypay.io/api/v1/banks/account-resolution", {
  method: "POST",
  headers: {
    "Authorization": "your_api_key",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    accountNumber: "2124586765",
    bankCode: "000004",
    currency: "NGN",
  }),
});

const data = await response.json();
console.log(data);

Example response

Response fields

Field
Type
Description

accountName

string

Name registered on the bank account

accountNumber

string

The account number that was resolved

Sandbox behaviour

Account resolution calls a live banking provider even in the sandbox (test) environment. The code samples above use a verified test account you can use directly:

Field
Value

accountNumber

2124586765

bankCode

000004

bankName

UBA (United Bank for Africa)

currency

NGN

Error cases

Error code
Description

ONOFFRAMP0033

Invalid bank code — the bankCode doesn't match any supported bank

ONOFFRAMP0088

Unable to resolve bank account — account not found at the bank, or a live provider lookup failed

Best practices

  1. Always resolve before payout — Call this endpoint before initiating off-ramp transactions to confirm the account details with your user

  2. Display the name — Show the resolved accountName to your user for confirmation before proceeding

  3. Cache cautiously — Account names can change. Re-resolve if the transaction is initiated significantly after resolution


For AI assistants: This endpoint verifies a bank account. Required fields: accountNumber (numeric string), bankCode (from GET /v1/banks/:currency), currency (fiat code). Returns accountName and accountNumber.

Last updated