Skip to content

Delete credit sync

DeleteCreditSync

Description: Requests deletion of a credit finance transaction and keeps the TCP request open until the matching delete trade:event is broadcast by the trading runtime.

The runtime validates the projected credit and margin state before applying the reversal. If the reversal is unsafe, no delete event is produced and the synchronous request may complete with an immediate error or SYNC_TIMEOUT, depending on where validation rejects it.

SEO

DeleteCreditSync is the synchronous TCP credit transaction delete method for ScaleTrade manager API integrations. Use this endpoint when a CRM, bonus system, cashier, or backoffice connector must delete a credit finance transaction and receive the final deleted trade payload by order.

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

Success Response

On success the response contains only the data object from the matching trade:event.

{
  "extID": "delete-credit-req-1001",
  "status": 200,
  "data": {
    "order": 1242281,
    "state": 4
  }
}

Event Matching

TCP waits for trade:event with type = EV_RECORD_DELETE and matching data.order.

Timeout

The default timeout is 5000 ms. If no matching trade event arrives before timeout, TCP returns status = 504 with SYNC_TIMEOUT.