Reconcile across customers
Use webhooks to react, and the platform transaction list to check you missed nothing.
Where events go
Webhooks are delivered to endpoints registered on the organization the event is about:
| Event | Delivered to |
|---|---|
platform_customer.updated |
Your platform's endpoints |
payment.updated, withdrawal.updated, onboarding.updated |
The customer organization's endpoints |
So register one endpoint on your platform, and one on each customer using that customer's key (with webhooks:manage). Pointing them all at one URL with the customer in the path keeps routing simple.
A reconciliation loop
- Store every event you receive, keyed by payment
idandstatus, after verifying its signature. - Each hour, list GETList transactions across customers for the window. It covers every linked customer and names each one.
- Compare. Anything in the list without a matching final event is fetched with GETGet a payment using that customer's key, and updated.
- Replay a missed delivery with POSTReplay a delivery if you want your pipeline to process it normally.