Webhooks
We POST an event to your endpoint when something changes. An event carries
ids, not the resource: fetch that with the API.
Set up an endpoint
Section titled “Set up an endpoint”- In the merchant dashboard, open API & Webhooks, switch to the Webhooks tab
and add a public
https://URL on port 443. - Store the signing secret (
whsec_…) next to your token. It is shown once. - Choose Send test event in the endpoint’s menu to check the wiring.
Every endpoint receives every event.
Handle an event
Section titled “Handle an event”Your handler does four things, in this order:
- Verify the signature against the raw body.
- Answer
2xx, also for anidyou already processed. - Afterwards, skip the event if you already processed its
id. - Otherwise fetch what
datanames with the call its event lists.