Consume webhooks
Start with a durable HTTPS endpoint that verifies signatures, stores the received eventid, and processes each event idempotently.
Register webhook endpoints in the COPE dashboard.
Recommended flow
- Create an HTTPS endpoint on your service, for example
https://checkout.example.com/cope/webhooks. - Verify the webhook signature against the endpoint secret.
- Persist the event
idbefore applying business effects. - Process the event based on
typeand validatedataagainst the linked schema. - Return 2xx only after durable acceptance.