Skip to content

Webhooks

We POST an event to your endpoint when something changes. An event carries ids, not the resource: fetch that with the API.

  1. In the merchant dashboard, open API & Webhooks, switch to the Webhooks tab and add a public https:// URL on port 443.
  2. Store the signing secret (whsec_…) next to your token. It is shown once.
  3. Choose Send test event in the endpoint’s menu to check the wiring.

Every endpoint receives every event.

Your handler does four things, in this order:

  1. Verify the signature against the raw body.
  2. Answer 2xx, also for an id you already processed.
  3. Afterwards, skip the event if you already processed its id.
  4. Otherwise fetch what data names with the call its event lists.