Receive webhooks and reconcile
Goal: your systems hear about deposits, orders and money movements on clients’ accounts within seconds, and
agree with IDEALX’s ledger every morning. Scope: read. Set up: a firm webhook endpoint in Console
(Team → API and webhooks, firm admins).
- IDEALX to Your receiver: POST order.updated (signed)
- Your receiver: Verify, dedupe by id, enqueue
- Your receiver to IDEALX: 200
- Your worker to IDEALX API: GET /v1/accounts/{id}/orders?status=done
- Your worker: Update your records
- Your worker to IDEALX API: Nightly: GET /v1/accounts/{id}/reports/statement
- Your worker to IDEALX API: Nightly: GET /v1/accounts/{id}/activity?cursor=…
- Your worker: Compare closing balances; fix gaps
1. Subscribe
Section titled “1. Subscribe”A firm endpoint receives events on every account your firm works on (an engagement with the firm). Choose the
events your systems use; most firms take deposit.credited, order.updated, order.expired, approval.waiting,
withdrawal.settled and withdrawal.failed. The full list with payloads is in Events and payloads.
2. Receive safely
Section titled “2. Receive safely”- Verify
IDEALX-Signatureagainst the raw body with your endpoint’s secret (Verify signatures). - Store the delivery
idwith a unique constraint; if it is already there, answer200and stop. - Put the event on a queue and answer
200within ten seconds. - In the worker, read the current state from the API using the ids in
data(events can arrive late, twice or out of order).
| Event | Worker reads |
|---|---|
deposit.credited |
GET /v1/accounts/{id}/activity with kind=deposit |
order.updated, order.expired |
GET /v1/accounts/{id}/orders |
approval.waiting, withdrawal.* |
GET /v1/accounts/{id}/instructions |
crypto.* |
GET /v1/accounts/{id}/crypto/incoming or activity |
account.opened |
GET /v1/accounts/{id}/detail |
A 404 in the worker means your firm no longer sees that account or portfolio (the engagement ended, or the
mandate changed): mark it in your records instead of retrying.
3. Reconcile every night
Section titled “3. Reconcile every night”Webhooks are signals, not a ledger. Each night, for each account:
GET/v1/accounts/{id}/reports/statementA statement for a period: opening, every movement, closing; ?format=csv for a spreadsheet
curl "$IDEALX_API/v1/accounts/acc_01937f00f1e2d3c4b5a6978877665544/reports/statement?from=2026-11-24&to=2026-11-24" \ -H "Authorization: Bearer $IDEALX_API_KEY"Each portfolio line has opening, closing, its movements and reconciled (opening plus movements equals
closing in IDEALX’s ledger). Compare closing with your own record per portfolio and instrument; any difference
points to the movements to look at.
- Read the statement for the previous local day (portfolios outside your mandates are not included).
- Compare closing cash per currency and units per investment with your records.
- For a difference, page through GET
/v1/accounts/{id}/activityfor that day (cursor pagination) and apply what you missed. - Record the run: account, day, matched or not.
For bookkeeping-grade reconciliation, use the accounting model instead:
GET /v1/accounts/{id}/accounting/transactions returns reconciled and a
reconciliation entry per portfolio and instrument (opening, movements, closing, ok).
4. Watch delivery health
Section titled “4. Watch delivery health”Each endpoint’s delivery log in Console shows the last 50 deliveries with the status your endpoint answered and the error. A delivery is retried ten times over about eight and a half hours, then marked failed; IDEALX’s operations team also sees endpoints that keep failing. If your receiver was down for longer, the nightly reconciliation fills the gap.