Creates a new virtual account for the resolved customer-or-owner and currency. Pass customerId to mint the virtual account for a specific end-user; omit it to mint one for the business owner.
Subject to a per-(business, customer, currency) cap configured via virtualAccountMaxCount.<CURRENCY> (with a default fallback). Requests that would exceed the cap return VIRTUAL_ACCOUNT_LIMIT_REACHED.
Label vs amount. label groups static virtual accounts by purpose (for example SALES, OPERATIONS). It is mutually exclusive with amount, which routes to a dynamic (ephemeral) virtual account. Supplying both is rejected at validation.
Creates a new virtual account for the resolved customer-or-owner and currency. PassDocumentation Index
Fetch the complete documentation index at: https://docs.afriex.com/llms.txt
Use this file to discover all available pages before exploring further.
customerId to mint the virtual account for a specific end-user, or omit it to mint one for the business owner.
Important: Virtual accounts are only active in production and do not work on staging/dev.
currency and customerId.
label to group static virtual accounts by purpose. Static accounts are permanently assigned to the customer and never expire. The same account number remains valid for repeated funding.
Allowed labels: SALES, OPERATIONS, PAYROLL, COLLECTIONS, VENDOR_PAYMENTS, TAX, REFUNDS, MARKETING, TREASURY, GENERAL.
Use static accounts when you want stable, long-lived account numbers a customer can top up over time, organised by purpose.
amount to mint a dynamic (ephemeral) virtual account tied to that specific amount. Dynamic accounts expire after a short window.
Use dynamic accounts when you need to collect a specific, known amount within a defined window, like a one-time payment for a particular order.
VIRTUAL_ACCOUNT_LIMIT_REACHED with 400. Call List Virtual Accounts first to check what already exists for the customer.Static business API key from the dashboard
The 3-letter ISO 4217 currency code for the virtual account.
USD, NGN, GBP, EUR Optional customer ID. When supplied, the virtual account is created for that customer. When omitted, it is created for the business owner.
Optional amount for a dynamic (ephemeral) virtual account. Mutually exclusive with label.
0 <= x <= 5000000Optional label that groups static virtual accounts by purpose. Mutually exclusive with amount.
SALES, OPERATIONS, PAYROLL, COLLECTIONS, VENDOR_PAYMENTS, TAX, REFUNDS, MARKETING, TREASURY, GENERAL Virtual account created successfully.