Create Virtual Account
Opens a new virtual bank account. Virtual accounts are real Nigerian bank accounts (with valid account numbers) that sit under your master account.
Two types:
- STATIC: Permanent account. Stays open until you close it. Good for assigning one account per customer.
- DYNAMIC: Temporary account with an expiry time (in hours). After expiry, it is automatically closed. Good for one-time payment links.
Funds received into virtual accounts show up in your dashboard and trigger webhook notifications.
Authorizations
Your API key, formatted as: ApiKey ubn_sb_your_key_here
- Sandbox keys start with
ubn_sb_ - Production keys start with
ubn_pk_ - Never use production keys during testing, they will charge real money
Headers
A UUID v4 you generate to trace this request through our systems. If you don't provide one, we generate it for you. Always include it in support requests, it helps us find your request in logs.
"7f3a9c21-4e8b-4a12-b6d1-3c8a7f2e1b09"
A UUID you generate. If you send the same request twice with the same key (within 24 hours), we return the original response, not a duplicate action. Generate a new UUID for every new operation.
"550e8400-e29b-41d4-a716-446655440000"
Body
Your Partner ID
STATIC: Permanent account (stays open until you close it)DYNAMIC: Temporary account that auto-closes afterexpiryHours
STATIC, DYNAMIC How many hours until this account closes. Required when accountType is DYNAMIC.
1 <= x <= 72024
Response
Virtual account created
Standard response wrapper for all successful API calls

