Virtual accounts
Give a customer a unique bank account to pay into.
Contents
How virtual accounts work
A virtual account is a real, bank-addressable NUBAN that exists for one purpose: to receive one specific payment from one specific customer. Because the account number is unique to that payment, a transfer into it is unambiguous — there is no reference field for the customer to mistype and no reconciliation to do.
- You mint an account for an exact amount.
- Your customer transfers that amount from any Nigerian bank.
- Radok matches the inflow, credits your balance net of fees, marks the linked collection
succeeded, and closes the account. - You receive a
collection.successwebhook.
One account per payment, not per customer
Collecting for an estate or school?
yardId and a split and the payment is divided across purses, each paid to its own bank account on the next business day instead of your balance. See Yards and split settlement.Create a virtual account
/v1/virtual-accounts- Auth
- Secret key
- Scope
- virtual_accounts:write
API key only. Minting is a billable PSP write, so it is not exposed to a dashboard session.
Body
| Field | Type | Description |
|---|---|---|
| customerEmailrequired | string | The payer's email. Used to identify the collection and in receipts. |
| customerName | string | Up to 120 characters. Shown to the payer in the account name where the bank allows it. |
| amount | object | { "value": integer, "currency": "NGN" } in kobo. Required for an ordinary account, and the account expects this exact amount. Omit it on a yard split: the resident total is the split plus the fees. |
| merchantFee | object | { "value": integer, "currency": "NGN" } in kobo. The estate’s own fee, added on top of the purse amounts. Required with yardId. Radok’s fee is quoted from the plan and added as well. Zero is allowed only when the transfer fees are zero. |
| expiresInMinutes | integer | 1–1440. When set, Radok expires the collection after this many minutes, emits collection.failed with reason: "expired", and stops accepting payment. Omit it and no expiry job is scheduled — pass a value whenever you need the collection to time out. |
| yardId | string | A yard id (yard_…). Makes this a split account. Send it with split or not at all. The yard must be active. |
| split | array | 1–20 lines of { "purseId": string, "amount": money }. Each amount is at least ₦100 (10000 kobo) in NGN, no purse appears twice, and every purse is active on that yard. These amounts are the dues: each purse is paid exactly that, and fees are not taken out of them. Send it with yardId and merchantFee. The split is locked once the account exists — it can never be edited. |
curl -X POST https://api.radokpay.com/v1/virtual-accounts \
-H "Authorization: Bearer $RADOK_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"customerEmail": "ada@example.com",
"customerName": "Ada Lovelace",
"amount": { "value": 500000, "currency": "NGN" },
"expiresInMinutes": 60
}'{
"data": {
"reference": "va_9f4c1b8e2d7a6c05",
"bankName": "Providus Bank",
"accountNumber": "9901234567",
"accountName": "RADOK/ADA LOVELACE",
"expiresAt": "2026-08-23T12:30:00.000Z",
"status": "active",
"collection": {
"reference": "col_3a7d5e1f9b2c4d68",
"amount": { "value": 500000, "currency": "NGN" },
"status": "awaiting_payment"
}
}
}Response
| Field | Type | Description |
|---|---|---|
| reference | string | Virtual account reference, prefixed va_. |
| bankName | string | Show this to the payer alongside the number. |
| accountNumber | string | The 10-digit NUBAN to transfer into. |
| accountName | string | The name the payer's banking app will display. |
| expiresAt | string | null | ISO 8601. After this the account stops accepting payment. |
| status | string | active, expired, or closed. |
| collection | object | The collection this account was minted for. Track payment status against collection.reference, not the account reference. |
A split account returns yardId, fees, and split.collection.amount is what the resident transfers: the dues, plus Radok’s fee, plus merchantFee. collection.dues is the purse total. fees.settlement is the transfer cost of settling the purses, taken out of the estate fee, and fees.walletCredit is what reaches the main wallet when the resident pays the full total. On each line net equals gross: that is what the purse bank receives. A yard split is quoted from the plan in test as well as live. An ordinary account stays fee-free in test.
curl -X POST https://api.radokpay.com/v1/virtual-accounts \
-H "Authorization: Bearer $RADOK_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"customerEmail": "aisha@example.com",
"customerName": "Aisha Bello",
"expiresInMinutes": 60,
"yardId": "yard_4c9e2a7b1f3d8056",
"merchantFee": { "value": 100000, "currency": "NGN" },
"split": [
{ "purseId": "purse_7a1d3e9c5b2f4068", "amount": { "value": 4000000, "currency": "NGN" } },
{ "purseId": "purse_2e8b6f1a9c4d7053", "amount": { "value": 6000000, "currency": "NGN" } }
]
}'{
"data": {
"reference": "va_5d2a8c1e7f3b9046",
"bankName": "Providus Bank",
"accountNumber": "9907654321",
"accountName": "RADOK/AISHA BELLO",
"expiresAt": "2026-10-22T09:58:00.000Z",
"status": "active",
"collection": {
"reference": "col_8b3e1f7a2c9d4065",
"amount": { "value": 10120000, "currency": "NGN" },
"dues": { "value": 10000000, "currency": "NGN" },
"status": "awaiting_payment"
},
"fees": {
"platform": { "value": 20000, "currency": "NGN" },
"merchant": { "value": 100000, "currency": "NGN" },
"settlement": { "value": 8063, "currency": "NGN" },
"walletCredit": { "value": 91937, "currency": "NGN" }
},
"yardId": "yard_4c9e2a7b1f3d8056",
"split": [
{
"purseId": "purse_7a1d3e9c5b2f4068",
"purseName": "Security",
"gross": { "value": 4000000, "currency": "NGN" },
"fee": { "value": 0, "currency": "NGN" },
"settlementFee": { "value": 2500, "currency": "NGN" },
"settlementVat": { "value": 188, "currency": "NGN" },
"net": { "value": 4000000, "currency": "NGN" },
"status": "awaiting_payment"
},
{
"purseId": "purse_2e8b6f1a9c4d7053",
"purseName": "Levy",
"gross": { "value": 6000000, "currency": "NGN" },
"fee": { "value": 0, "currency": "NGN" },
"settlementFee": { "value": 5000, "currency": "NGN" },
"settlementVat": { "value": 375, "currency": "NGN" },
"net": { "value": 6000000, "currency": "NGN" },
"status": "awaiting_payment"
}
]
}
}Show the exact amount
Live minting needs KYB
403 KYB_LIVE_REQUIRED until business verification is approved, and amounts above your collection limit return 400 COLLECTION_LIMIT_EXCEEDED. Test mode has neither gate.List virtual accounts
/v1/virtual-accounts- Auth
- Secret key or dashboard session
- Scope
- virtual_accounts:read
Query
| Field | Type | Description |
|---|---|---|
| limit | integer | 1–100. Defaults to 20. |
| cursor | string | From the previous response’s meta.nextCursor. |
| environment | string | test or live. Required only for dashboard sessions — an API key already carries its environment. |
curl "https://api.radokpay.com/v1/virtual-accounts?limit=2" \
-H "Authorization: Bearer $RADOK_SECRET_KEY"{
"data": [
{
"reference": "va_9f4c1b8e2d7a6c05",
"purpose": "collection",
"bankName": "Providus Bank",
"accountNumber": "9901234567",
"accountName": "RADOK/ADA LOVELACE",
"customerEmail": "ada@example.com",
"amountExpected": { "value": 500000, "currency": "NGN" },
"status": "active",
"expiresAt": "2026-08-23T12:30:00.000Z",
"createdAt": "2026-08-23T11:30:00.000Z"
}
],
"meta": { "nextCursor": "652f1a9c4d7b3e0812345678", "hasMore": true }
}Retrieve a virtual account
/v1/virtual-accounts/{reference}- Auth
- Secret key or dashboard session
- Scope
- virtual_accounts:read
curl https://api.radokpay.com/v1/virtual-accounts/va_9f4c1b8e2d7a6c05 \
-H "Authorization: Bearer $RADOK_SECRET_KEY"Returns the same object as a list row. A reference belonging to another merchant returns 404.
A split account carries a yardId (the yard’s yard_… id) in both the list and this response. Other accounts have no yardId field. The split itself is on the collection — see Collections.
Account purposes
Every virtual account carries a purpose. Only the first is created through this endpoint; the others exist so you can tell them apart in a list.
Purpose
| Field | Type | Description |
|---|---|---|
| collection | one-off | Bound to one amount and one collection. Closed as soon as it is paid. |
| funding | permanent | Your own wallet deposit account. Stays open and reusable; deposits credit your balance and emit wallet.funding.success. |
| payment_link | reusable | Minted automatically for a payment link. Stays open for reusable links until disabled; cancelled after the first success on a one_time link. |
Things that catch people out
- Do not poll for payment. Use the
collection.successwebhook. Polling a list endpoint every few seconds will hit the 300/minute read limit long before it tells you anything a webhook would not have. - The customer may never come back. Fulfil on the webhook, not on a redirect back to your app.
- Expiry is not a cancellation. An expired collection emits
collection.failedwithreason: "expired". Handle it, or orders sit pending forever. - Test accounts never receive real money. Trigger settlement yourself — see Testing.