Accounts
Creating virtual accounts
Introduction
- Welcome to Nomba
- Get API Keys
- Testing
Getting Started
- Dashboard setup
- Authentication
- Definitions
Plugins and SDKs
Products
- Accounts
- Accept Payments
- Transfers
- Terminals
- Webhooks
- Transactions
- Airtime & Data Vending
- Cable & Bill Payments
Guides
API Patterns
Accounts
Creating virtual accounts
Learn about creating virtual accounts
curl --request POST \
--url https://api.nomba.com/v1/accounts/virtual \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'accountId: <parent accountId>' \
--data '{
"accountRef": "1oWbJQQHLyQqqf1SwxjSpudeA21",
"accountName": "Daniel Scorsese",
"currency": "NGN",
"expiryDate": "2024-06-17 04:55:00"
}'
{
"code": "00",
"description": "Success",
"data": {
"createdAt": "2024-10-11T14:15:39.376Z",
"accountRef": "Archie Friesen",
"accountHolderId": "8d19d421-85b1-4b61-be90-168dc261gf45",
"accountName": "John Doe",
"currency": "NGN",
"bankAccountNumber": "9171424569",
"bankAccountName": "Ayomide Akinrotoye",
"bankName": "Amucha MFB",
"bvn": "22122204392",
"expiryDate": "2024-10-12T12:30:49",
"expired": false
}
}
Create a virtual account
Accept payments with virtual accounts
POST /v1/accounts/virtual
Request body
Account reference
Account holder’s name
Currency code
Expiry Date (This field allows you to customize the expiry period for this account. The default time however is 5 minutes)
Response body
Response code
Response description
Creation timestamp.
Account holder ID.
Account reference.
Bank Verification Number (BVN).
The name associated with the account (may return the parent account name if not a corporate account)
The account number
The account name that will reflect when doing name lookup
Currency code.
Expiry date of the account created.
curl --request POST \
--url https://api.nomba.com/v1/accounts/virtual \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'accountId: <parent accountId>' \
--data '{
"accountRef": "1oWbJQQHLyQqqf1SwxjSpudeA21",
"accountName": "Daniel Scorsese",
"currency": "NGN",
"expiryDate": "2024-06-17 04:55:00"
}'
{
"code": "00",
"description": "Success",
"data": {
"createdAt": "2024-10-11T14:15:39.376Z",
"accountRef": "Archie Friesen",
"accountHolderId": "8d19d421-85b1-4b61-be90-168dc261gf45",
"accountName": "John Doe",
"currency": "NGN",
"bankAccountNumber": "9171424569",
"bankAccountName": "Ayomide Akinrotoye",
"bankName": "Amucha MFB",
"bvn": "22122204392",
"expiryDate": "2024-10-12T12:30:49",
"expired": false
}
}
curl --request POST \
--url https://api.nomba.com/v1/accounts/virtual \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'accountId: <parent accountId>' \
--data '{
"accountRef": "1oWbJQQHLyQqqf1SwxjSpudeA21",
"accountName": "Daniel Scorsese",
"currency": "NGN",
"expiryDate": "2024-06-17 04:55:00"
}'
{
"code": "00",
"description": "Success",
"data": {
"createdAt": "2024-10-11T14:15:39.376Z",
"accountRef": "Archie Friesen",
"accountHolderId": "8d19d421-85b1-4b61-be90-168dc261gf45",
"accountName": "John Doe",
"currency": "NGN",
"bankAccountNumber": "9171424569",
"bankAccountName": "Ayomide Akinrotoye",
"bankName": "Amucha MFB",
"bvn": "22122204392",
"expiryDate": "2024-10-12T12:30:49",
"expired": false
}
}