# 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


1. **Store every event** you receive, keyed by payment `id` and `status`, after verifying its signature.
2. **Each hour, list** `GET /v1/platforms/{orgId}/transactions` (List transactions across customers) for the window. It covers every linked customer and names each one.
3. **Compare.** Anything in the list without a matching final event is fetched with `GET /v1/orgs/{orgId}/payments/{paymentId}` (Get a payment) using that customer's key, and updated.
4. **Replay** a missed delivery with `POST /v1/orgs/{orgId}/webhooks/{webhookId}/deliveries/{deliveryId}/replay` (Replay a delivery) if you want your pipeline to process it normally.


Try it: `GET /v1/platforms/{orgId}/transactions`