Create a Virtual Account
POST
/collection-middleware/create/virtual-account
A partner would call this endpoint when they need to create a new virtual account for a specific, providing the external reference, account name, and currency. The endpoint returns the created virtual account details, including the account number, status, and any errors encountered during the process.
Request body
| Field | Type | Description |
|---|---|---|
| externalReference required | string | — |
| accountName required | string | — |
| currency required | string | — |
Response 200
| Field | Type | Description |
|---|---|---|
| success | boolean | — |
| externalReference | string | — |
| data | object | — |
| accountNumber | string | — |
| accountName | string | — |
| accountCurrency | string | — |
| accountStatus | string | — |
| error | object | — |
| code | string | — |
| message | string | — |