CSL Pay Developers

Update a Virtual Account

PATCH /collection-middleware/update/virtual-account/{externalReference}

This endpoint updates the details of a virtual account associated with a specified external reference. A partner would call this endpoint when they need to modify the account name of a virtual account. The update is performed using a PATCH request, allowing the partner to send only the fields that need to be changed.

Path parameters

NameTypeDescription
externalReferencerequired string

Request body

FieldTypeDescription
accountName required string The name of the virtual account to be updated.

Response 200

FieldTypeDescription
success boolean Indicates whether the update operation was successful
externalReference string The external reference of the virtual account being updated
data object The updated virtual account data
accountNumber string The updated account number of the virtual account
accountName string The updated account name of the virtual account
accountCurrency string The updated account currency of the virtual account
accountStatus string The updated account status of the virtual account
error object The error details if the update operation failed
code string The error code if the update operation failed
message string The error message if the update operation failed