CSL Pay Developers

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

FieldTypeDescription
externalReference required string
accountName required string
currency required string

Response 200

FieldTypeDescription
success boolean
externalReference string
data object
accountNumber string
accountName string
accountCurrency string
accountStatus string
error object
code string
message string