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.
Returns every active virtual account for the resolved customer-or-owner and currency. The endpoint is read-only: when no virtual account exists, you get aDocumentation Index
Fetch the complete documentation index at: https://docs.afriex.com/llms.txt
Use this file to discover all available pages before exploring further.
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.
| 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.
customerId (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.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 lookup is scoped to that customer. When omitted, it resolves to the business owner.