Approve SIL Transaction
Approve a held transaction and apply the balance impact to SIL.
Cmd: SITApproveTransactionCommand
What the handler does​
- Re-loads the transaction and validates it is still
Pending / PendingApproval. - Re-validates the account is not now
Frozen,Closed, orDormant. - Recomputes leg impact from persisted
SITTransactionEntryrows. - Re-checks sufficient funds for debit scenarios.
- Applies balances and backfills
RunningBalanceon the entries. - Sets
Status = Posted,ApprovalStatus = Approved. - Inserts the
SITSyncQueuerow so replay to core can begin.
Request​
Provide one of:
{
"cmd": "SITApproveTransactionCommand",
"data": {
"sitTransactionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}
or:
{
"cmd": "SITApproveTransactionCommand",
"data": {
"transactionReference": "WDR-20260427-0001"
}
}
Response​
{
"isSuccessful": true,
"message": "SIT transaction approved.",
"data": {
"sitTransactionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"transactionReference": "WDR-20260427-0001",
"status": "Posted",
"approvalStatus": "Approved",
"newAvailableBalance": 149300.00,
"newLedgerBalance": 149300.00
}
}
Error cases​
| Status | Cause |
|---|---|
400 | Neither sitTransactionId nor transactionReference supplied |
404 | Transaction not found |
409 | Transaction is not awaiting approval |
409 | Account is now Frozen, Closed, or Dormant |
409 | Insufficient SIT available balance at approval time |