Skip to main content

Deleting a Current Account Transaction

Description

Deactivates (Soft Delete) a current account transaction using one of the references: Id, ErpCode, currentAccountId, or currentAccountErpCode.

  • Endpoint: /cat/cat?erpCode={erpCode}&CurrentAccountErpCode={CurrentAccountErpCode}
  • Method: DELETE

Request Body

To specify the record to be deleted, at least one of the following fields must be provided. The system considers the first parameter it finds based on the specified priority order.

FieldFormatPriorityDescription
IdGuid1System ID of the record to be deleted.
ErpCodeString2ERP code of the record to be deleted.
currentAccountIdGuid3System ID of the current account.
currentAccountErpCodeString4ERP code of the current account.

Request Example

  • Header: Authorization: Bearer {token}, Content-Type: application/json
  • Body: JSON

Successful Request

Successful Response

{  
"deletedCount": 1,
"status": "success",
"message": "Current account transaction deleted."
}