Skip to content

Delete credit

DeleteCredit

Description: Requests deletion of a credit finance transaction.

Deletion is processed as reversal of the transaction's credit effect. It is rejected when the reversal would make account credit or projected equity negative, or would violate margin safety for open exposure. For auditable integrations, creating an explicit opposite credit transaction is preferred over deleting completed history.

Access Control

Requires del_accounts_balance for manager/dealer sessions. The target finance transaction account must also match the manager groups and brand scope loaded from the cached manager record. Token payload is used only for manager id and session type.

Request Parameters

Name Type Required Description
order int Yes Finance transaction order ID

Request Example

{
  "order": 1242281
}

Response Parameters

In the raw TCP response envelope, the fields below are returned inside data.

Name Type Description
accepted bool true when the command was accepted for processing
order int Finance transaction order ID
state int TS_FINANCE_DELETE_REQUEST (12)

Response Example

{
  "accepted": true,
  "order": 1242281,
  "state": 12
}

Errors

Code Description
400 Invalid request payload
401 Delete operation was rejected