List existing 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.
Request
- Base URLhttps://sandbox.api.afriex.com
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
The 3-letter ISO 4217 currency code for the virtual account. The listed values are the supported currencies; other valid currency codes pass validation and simply return an empty list.
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.
Response
Virtual accounts retrieved successfully (possibly empty list).
Changes
No recorded changes to this operation across all 1 revision of this API.