Reconcile activity
Store a stable identifier chain from the moment the withdrawal is created:
| Record | Identifiers to retain |
|---|---|
| Your instruction | External reference and idempotency key |
| Withdrawal | withdrawalId, payment code, source accountId, and destinationId |
| Webhook | Event ID, type, timestamp, and resource identifiers |
| External outcome | Bank reference or blockchain transactionHash where applicable |
For each reconciliation period, list withdrawals, retrieve required details, and compare them with the source account statement. Use events as an audit input, not as the balance source of truth.
Investigate withdrawals that cannot be joined to an account movement or external outcome, and preserve unknown states rather than coercing them into a successful or failed result.