CSL Pay Developers

Update Virtual Account

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

This endpoint updates the details of a virtual account associated with a specific external reference. A partner would call this endpoint when they need to modify the account name of an existing virtual account. The endpoint accepts a PATCH request with the new account name and returns the updated account details along with a success indicator.

Path parameters

  • externalReferencerequired string

Request body

  • accountNamerequired string
    The name of the virtual account to be updated.

Response 200

  • success boolean
    Indicates whether the update operation was successful
  • externalReference string
    The external reference of the virtual account being updated
  • data object6 fields
    The updated virtual account data
    • accountNumber string
      The updated account number of the virtual account
    • accountName string
      The updated name associated with the virtual account
    • accountCurrency string
      The updated currency of the virtual account
    • bankName string
      The name of the bank associated with the virtual account.
    • bankCode string
      The code of the bank associated with the virtual account.
    • accountStatus string
      The updated status of the virtual account
  • error object2 fields
    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