Sending ticket orders, refunds and check-ins to your own systems (webhooks)
A webhook sends a signed message to a URL you own each time something happens. Events can send:
- **Ticket order paid** (order.created)
- **Ticket order refunded** (order.refunded), with how much admission and service fee went back
- **Free registration or RSVP** (registration.created)
- **Ticket transferred** (ticket.transferred)
- **Attendee checked in** (checkin.scanned)
**Setting it up**
1. Go to Settings -> Partner Dev -> **Webhooks** (owners and admins) and add a webhook with your https URL, or edit an existing one.
2. Under **Events**, tick the events you want. A new webhook does not subscribe to these unless you tick them, because they name your ticket buyers.
3. Copy the signing secret into your receiving system.
**Checking a delivery is genuine**
Each delivery carries `X-Turtini-Signature-256: t=<unix seconds>,v1=<hex>`, where v1 is the HMAC-SHA256 of "<t>.<raw body>" with your signing secret. Compute the same value and compare. Reject a delivery whose t is more than five minutes old.
**Retries**
If your endpoint does not answer with a 2xx within 8 seconds, we try again after 1 minute, 5 minutes, 30 minutes, 2 hours and 6 hours. Every attempt carries the same `X-Turtini-Event-Id`, so skip one you have already handled. URLs must be https and public; private and internal addresses are refused.
**The delivery log**
Under each webhook, **Events deliveries** lists recent deliveries, their attempts and your endpoint's last answer. **Redeliver** sends one again now, and **Send test delivery** sends a signed test.
**What is never sent**
Ticket QR codes and ticket links are admission credentials and never appear in a payload. Tickets are named `<orderId>-<n>`.