Delete balance sync
DeleteBalanceSync¶
Description: Requests deletion of a balance finance transaction and keeps the TCP request open until the matching delete trade:event is broadcast by the trading runtime.
SEO¶
DeleteBalanceSync is the synchronous TCP balance transaction delete method for ScaleTrade manager API integrations. Use this endpoint when a CRM, cashier, payment gateway, or backoffice connector must delete a balance 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-balance-req-1001",
"status": 200,
"data": {
"order": 1242279,
"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.