Generate virtual account
6. Fund it: Payments
Generate virtual account
Generates a virtual account for a merchant customer (merchant_user role only). Requires the customer-id header.
Virtual accounts are Nigerian-only; a customer whose country is not Nigeria cannot generate one (dedicated or temporary) and receives a 403.
For Nigerian customers, the kind of account depends on whether the customer has a BVN on file (set at customer creation):
- Customer has a BVN → a dedicated, permanent account is issued via Paystack. The response sets
dedicated: trueand has noexpiresIn. - Customer has no BVN → a temporary 24-hour account is issued via Safe Haven. The response sets
dedicated: falseand includesexpiresIn.
POST
Generate virtual account
Authorizations
Your secret key as a Bearer token. The key prefix selects the environment: sk_test_... (test) or sk_live_... (live).
Headers
The merchant customer this request acts on behalf of.
Response
Virtual account generated. Dedicated (BVN on file) or temporary (no BVN).