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
-
externalReferencerequiredA unique reference provided by the merchant for the virtual account.
-
accountNamerequiredThe name of the account holder associated with the virtual account.
-
currencyrequiredThe three-letter ISO 4217 code representing the currency of the virtual account.
Response 200
-
successIndicates whether the request was successful
-
externalReferenceA unique reference provided by the client for the virtual account
-
dataContains the virtual account details
-
accountNumberThe account number associated with the virtual account
-
accountNameThe name associated with the virtual account
-
accountCurrencyThe currency of the virtual account
-
bankCodeThe bank code associated with the virtual account
-
bankNameThe name of the bank associated with the virtual account
-
accountStatusThe status of the virtual account
-
-
errorContains error details if the request was unsuccessful
-
codeThe error code if the request was unsuccessful
-
messageA description of the error if the request was unsuccessful
-