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.
| Field | Format | Priority | Description |
|---|---|---|---|
Id | Guid | 1 | System ID of the record to be deleted. |
ErpCode | String | 2 | ERP code of the record to be deleted. |
currentAccountId | Guid | 3 | System ID of the current account. |
currentAccountErpCode | String | 4 | ERP 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."
}