SET Merchant API · Events & webhooks
Add a webhook endpoint
POST/v1/webhook_endpoints
A further endpoint with its own URL, event filter and signing secret (in this answer, shown with the endpoint). It receives events recorded from now on. Each delivery carries SET-Webhook-Endpoint with the endpoint's id, and GET /v1/events/{id} lists each endpoint's delivery.
Headers
Idempotency-Keystring- Optional. The same key and body run once; a replay answers with
Idempotent-Replayed: true. Kept 24 hours.
Body
urlhttps URLrequired- A public https URL on your own server.
eventsstring[]- Event types or families (
payout.*);[]or absent for every event.
Errors
400 body_invalid400 url_invalid400 events_invalid409 endpoint_limit401 api_key_required401 api_key_invalid401 api_key_wrong_mode403 scope_missing429 rate_limited