List Virtual Accounts
Returns every active virtual account for the resolved
customer-or-owner and currency. Read-only: when no virtual account
exists, the response is 200 with data: [].
Pass customerId to scope the list to a specific end-user; omit it
to list the virtual accounts belonging to the business owner.
Breaking change from earlier versions: the previous endpoint
returned a single virtual account and would create one on the fly
when absent. It now returns a list and never creates. The create
path lives at POST /api/v1/payment-method/virtual-account; the
POOL_ACCOUNT variant has moved to
GET /api/v1/payment-method/pool-account.
200 response with data: [] rather than a 404.
Pass customerId to scope the list to a specific end-user. Omit it to list virtual accounts that belong to the business owner.
Important: Virtual accounts are only active in production and do not work on staging/dev.
Breaking change from earlier versions
Previously this endpoint returned a single virtual account and would create one on the fly when none existed. It now returns a list and never creates. The behaviour has been split into three explicit endpoints:| Endpoint | What it does |
|---|---|
GET /api/v1/payment-method/virtual-account | Lists existing virtual accounts (this page). Read-only. |
POST /api/v1/payment-method/virtual-account | Creates a new virtual account. See Create Virtual Account. |
GET /api/v1/payment-method/pool-account | Returns the business pool account for a country. Use the reference on the response to reconcile incoming deposits. See Get Pool Account. |
GET first; when data is empty, follow up with POST to create one.
Virtual accounts are for end customers
Virtual accounts are designed for your customers as end users, meaning the people your business is acting on behalf of. Each virtual account is linked to acustomerId (or to the business owner if no customerId is provided). Payments received into a virtual account are attributed to the associated customer in your Afriex system.
Make sure you have created a Customer record before listing or creating virtual accounts for that person. See Create Customer.Authorizations
Static business API key issued from the dashboard. A business can provision multiple API keys, each scoped to a configurable set of permissions (e.g. read transactions, create deposits, etc). Permissions are chosen per key at creation time in the dashboard and may be revoked by deleting the key. Requests made with a key that does not include the permission required by the target endpoint will be rejected with a 403 Forbidden response; an unrecognised, malformed or revoked key returns 401 Unauthorized. Manage your keys and their permissions under Developer → API keys in the dashboard.
Headers
API version in ISO 8601 format (e.g. 2025-12-28). Defaults to latest stable.
Query Parameters
The 3-letter ISO 4217 currency code for the virtual account
USD, NGN, GBP, EUR Optional customer ID. When supplied, the lookup is scoped to that customer. When omitted, it resolves to the business owner.
Optional ISO 3166-1 alpha-2 country code.
Optional positive amount.
Optional merchant-supplied reference.
