Skip to content

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).

Events by day, reconciliation by nightIDEALXYour receiverYour workerIDEALX API1POST order.updated (signed)Verify, dedupe by id, enqueue22003GET /v1/accounts/{id}/orders?status=doneUpdate your records4Nightly: GET /v1/accounts/{id}/reports/statement5Nightly: GET /v1/accounts/{id}/activity?cursor=…Compare closing balances; fix gaps
Events by day, reconciliation by night
  1. IDEALX to Your receiver: POST order.updated (signed)
  2. Your receiver: Verify, dedupe by id, enqueue
  3. Your receiver to IDEALX: 200
  4. Your worker to IDEALX API: GET /v1/accounts/{id}/orders?status=done
  5. Your worker: Update your records
  6. Your worker to IDEALX API: Nightly: GET /v1/accounts/{id}/reports/statement
  7. Your worker to IDEALX API: Nightly: GET /v1/accounts/{id}/activity?cursor=…
  8. Your worker: Compare closing balances; fix gaps

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.

  1. Verify IDEALX-Signature against the raw body with your endpoint’s secret (Verify signatures).
  2. Store the delivery id with a unique constraint; if it is already there, answer 200 and stop.
  3. Put the event on a queue and answer 200 within ten seconds.
  4. 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.

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
Terminal window
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.

  1. Read the statement for the previous local day (portfolios outside your mandates are not included).
  2. Compare closing cash per currency and units per investment with your records.
  3. For a difference, page through GET /v1/accounts/{id}/activity for that day (cursor pagination) and apply what you missed.
  4. 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).

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.