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.

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.

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.