Webhooks
SyncSeats sends signed events to your server when something happens on your account: a sale, a delivery, a payout, a change to a listing.
How it works
A webhook endpoint is an address on your server. When something happens on your account, SyncSeats sends a POST with an event as JSON to it. You answer with a status in the 200s, and the event counts as delivered.
The events are the occasions SyncSeats also tells you about by email, Discord or push: a sale, a delivery, a payout, a change to a listing. With a webhook your software hears of them without asking.
A change to the inventory sends no event: your software makes those changes itself, or reads them with GET /v1/inventory.
Adding an endpoint
Endpoints are managed in the dashboard under Settings, Developers, not through the API. An account can have up to 5 endpoints for each mode.
- Give the endpoint a name and its address, for example
https://pos.example.com/hooks/syncseats. - Choose the event types it receives, or all of them.
- Decide whether its sale events include the transfer recipient.
- Copy the signing secret. It starts with
sswhsec_and is shown once.
Adding a live endpoint, or including the recipient, asks for the code of your authenticator app and sends you a security email.
Rules for the address
- It starts with
https://and uses the usual port for it, 443. - Its host is a full domain name: no IP address, and no single word such as
localhost. - It carries no user name or password and no fragment.
- It is at most 500 characters long.
- The host resolves to a public address. Domain endings that are reserved for private networks and tests are refused.
- It answers itself. A redirect counts as a failed delivery.
The event
Every delivery is one event. This is sale.created for the example sale:
{
"id": "evt_673201c4e5a7b9d0f1a2b310",
"object": "event",
"type": "sale.created",
"mode": "test",
"api_version": "v1",
"created_at": "2026-11-11T11:48:12.000Z",
"data": {
"object": {
"object": "sale",
"id": "1761470400000123",
"listing_id": "671f3a9c2b7d4e0f1ae48211",
"listing_reference": "48211",
"status": "awaiting_delivery",
"marketplace": {
"id": "66a0c41e7b2d9f3a10c5e801",
"name": "Viagogo"
},
"event": {
"id": "6718d2f4a9c3b17e5d204a61",
"name": "World Tour 2026, Night 2",
"venue": "Wembley Stadium",
"starts_at": "2026-12-12T19:30:00.000Z",
"starts_at_local": "2026-12-12T19:30:00",
"timezone": "Europe/London"
},
"section": "112",
"row": "F",
"seats": ["14", "15"],
"quantity": 2,
"ticket_type": "eticket",
"price": { "amount": "824.00", "currency": "USD" },
"fees": {
"marketplace": {
"amount": { "amount": "41.20", "currency": "USD" },
"percent": 5
},
"syncseats": {
"amount": { "amount": "39.14", "currency": "USD" },
"percent": 5
}
},
"payout": {
"amount": { "amount": "743.66", "currency": "USD" },
"amount_eur": null,
"status": "awaiting_marketplace",
"payout_id": null,
"ready_at": null,
"paid_at": null
},
"deliver_by": "2026-12-09T19:30:00.000Z",
"in_hand_by": "2026-12-10T19:30:00.000Z",
"sold_at": "2026-11-11T11:48:12.000Z",
"delivered_at": null,
"cancelled_at": null,
"cancellation": null,
"charges": [],
"delivery": null
}
}
}| Field | Type | Description |
|---|---|---|
id | string (webhook event id) | The same for every delivery of the event: use it to drop duplicates. |
object | string | Always event. |
type | string | One of sale.created, sale.recipient_updated, sale.delivery_due, sale.proof_submitted, sale.proof_reset, sale.delivered, sale.cancelled, sale.payout_ready, payout.paid, listing.created, listing.live, listing.updated, listing.deleted, listing.marketplace_added, listing.action_required, report.weekly or ping. |
mode | string | One of live or test. |
api_version | string | Always v1. |
created_at | string (timestamp) | ISO 8601 in UTC, e.g. 2026-12-09T19:30:00.000Z. |
data | object | object, and for some events a few fields beside it. |
data. | any value | What the event is about, in the shape the API returns it. |
data.object is what the event is about, in the shape the API returns it: a sale in an event reads like the answer of GET /v1/sales/{id}. It shows the object as it was when the event happened.
Event types
| Type | When it is sent | What data.object is | Also in data |
|---|---|---|---|
sale.created | Tickets of one of your listings sold. | Sale | |
sale.recipient_updated | The marketplace named the transfer recipient of a sale, or changed it. | Sale | |
sale.delivery_due | A sale is still to deliver and its deadline is close. | Sale | hours_left |
sale.proof_submitted | A proof of transfer was uploaded for a sale; it waits for confirmation. | Sale | |
sale.proof_reset | Our team reset the proof of a sale; it has to be delivered again. | Sale | reason |
sale.delivered | The delivery of a sale is confirmed. | Sale | |
sale.cancelled | A sale was cancelled, with or without a charge. | Sale | |
sale.payout_ready | The marketplace paid for a sale; it can go into a payout. | Sale | |
payout.paid | A payout was sent to your bank account. | Payout | |
listing.created | A listing was created and is on its way to its marketplaces. | Listing | |
listing.live | A listing went live on a marketplace. | Listing | |
listing.updated | A listing was changed. | Listing | changes |
listing.deleted | A listing was taken off every marketplace and archived. | Deleted listing | |
listing.marketplace_added | SyncSeats added a new marketplace to your open listings. | A marketplace_added object | |
listing.action_required | A marketplace waits for a choice on a listing: a fan section, a category or how the seats sit together. | Listing | marketplace |
report.weekly | Your numbers of the last week. | A weekly_report object | |
ping | Sent from the developers page to check an endpoint. | A ping object |
Some types carry fields of their own in data:
| Type | Field | What it holds | Description |
|---|---|---|---|
sale.delivery_due | data.hours_left | number or null | Hours until the in-hand deadline when the reminder went out. |
sale.proof_reset | data.reason | string or null | |
listing.updated | data.changes | array of objects | What changed, as the dashboard words it. Empty when the change is not itemized. |
listing.updated | data.changes[].field | string | |
listing.updated | data.changes[].from | string or null | |
listing.updated | data.changes[].to | string or null | |
listing.deleted | data.object | object | What DELETE /v1/listings/{id} answers once the listing is off every marketplace and archived. |
listing.deleted | data.object.object | string | Always listing. |
listing.deleted | data.object.id | string (id) | |
listing.deleted | data.object.deleted | boolean | Always true. |
listing.marketplace_added | data.object | object | |
listing.marketplace_added | data.object.object | string | Always marketplace_added. |
listing.marketplace_added | data.object.marketplace | object | |
listing.marketplace_added | data.object.marketplace.id | string (id) or null | |
listing.marketplace_added | data.object.marketplace.name | string | |
listing.marketplace_added | data.object.listing_ids | array of ids | |
listing.action_required | data.marketplace | object | The marketplace that waits; its entry under object.marketplaces has the choice under action. id is null when your account no longer has the marketplace. |
listing.action_required | data.marketplace.id | string (id) or null | |
listing.action_required | data.marketplace.name | string | |
report.weekly | data.object | object | |
report.weekly | data.object.object | string | Always weekly_report. |
report.weekly | data.object.week | string or null | The week the numbers are for, as the report words it. |
report.weekly | data.object.sales | integer | |
report.weekly | data.object.tickets_sold | integer | |
report.weekly | data.object.revenue | string or null | Gross revenue, formatted in your display currency. |
report.weekly | data.object.payout | string or null | Net payout, formatted in your display currency. |
ping | data.object | object | |
ping | data.object.object | string | Always ping. |
ping | data.object.message | string |
When a marketplace waits for a choice
listing.action_required goes out when a marketplace of a listing starts to wait for a choice: a fan section, a category or how the seats sit together. It comes once each time a marketplace starts to wait, whatever your email settings say. When a marketplace waits for more than one choice at the same time, one event may stand for all of them: after you answer one, the listing in the answer shows the next.
data.object is the listing. Its entry for that marketplace under marketplaces has the choice under action, with the options to pick from. data.marketplace names the marketplace that waits, so you need not search the list for it:
{
"marketplace": {
"id": "66a0c41e7b2d9f3a10c5e803",
"name": "SeatGeek"
}
}Its id is null when your account no longer has the marketplace. Answer with POST /v1/listings/{id}/marketplaces/{marketplace_id}/choice, or in the dashboard; When a marketplace needs a choice explains the choices.
New event types
SyncSeats adds event types as the API grows, as it did with listing.action_required. An endpoint that receives all events gets a new type without a change on your side, and one with a choice of types gets only the types it chose.
So handle the types you know and skip the others, and answer every event with a status in the 200s, a type you skip as well. An event you do not answer counts as failed and is sent again.
What a delivery carries
| Header | What it carries |
|---|---|
SyncSeats-Signature | The time of sending and the signature: t=<unix seconds>,v1=<hex>. |
SyncSeats-Event-Id | The id of the event. |
SyncSeats-Event-Type | The type of the event. |
SyncSeats-Delivery-Id | The id of this delivery to your endpoint. |
Content-Type | application/json |
User-Agent | SyncSeats-Webhooks/1.0 |
Verifying the signature
Anyone who knows the address of your endpoint can send a request to it. The signature shows that an event comes from SyncSeats and was not changed on the way. Check it before you trust the body.
- Take the body as the bytes that arrived, before a JSON parser touches them.
- Split the
SyncSeats-Signatureheader at the comma intot, a time in Unix seconds, andv1, a string of hex digits. - Refuse the event when
tis more than 300 seconds (5 minutes) away from your clock. That keeps a recorded event from being sent to you again later. - Compute the HMAC-SHA256 of
t, a dot and the body. The key is your signing secret as it was shown to you, with itssswhsec_at the start. - Compare the result, written in hex, with
v1in constant time. If they differ, answer400and do nothing else.
import { createHmac, timingSafeEqual } from 'node:crypto'
import { createServer } from 'node:http'
// The signing secret of the endpoint. It starts with sswhsec_.
const SECRET = process.env.SYNCSEATS_WEBHOOK_SECRET
const TOLERANCE_SECONDS = 300
function isFromSyncSeats(body, header) {
// The header reads: t=<unix seconds>,v1=<hex>
const parts = Object.fromEntries(header.split(',').map(part => part.trim().split('=')))
const sentAt = Number(parts.t)
if (!parts.t || !parts.v1 || !Number.isFinite(sentAt)) return false
if (Math.abs(Date.now() / 1000 - sentAt) > TOLERANCE_SECONDS) return false
const expected = createHmac('sha256', SECRET).update(parts.t + '.').update(body).digest()
const given = Buffer.from(parts.v1, 'hex')
return given.length === expected.length && timingSafeEqual(given, expected)
}
const handled = new Set() // keep these in your database
function handle(event) {
if (handled.has(event.id)) return // delivered before
handled.add(event.id)
if (event.type === 'sale.created') console.log('Sold:', event.data.object.id)
}
createServer((request, response) => {
const chunks = []
request.on('data', chunk => chunks.push(chunk))
request.on('end', () => {
const body = Buffer.concat(chunks) // the raw bytes, before any parsing
if (!isFromSyncSeats(body, request.headers['syncseats-signature'] ?? '')) {
response.writeHead(400).end()
return
}
response.writeHead(204).end() // answer first
handle(JSON.parse(body.toString('utf8'))) // then do the work
})
}).listen(8080)import hashlib
import hmac
import json
import os
import time
from http.server import BaseHTTPRequestHandler, HTTPServer
# The signing secret of the endpoint. It starts with sswhsec_.
SECRET = os.environ["SYNCSEATS_WEBHOOK_SECRET"].encode()
TOLERANCE_SECONDS = 300
def is_from_syncseats(body: bytes, header: str) -> bool:
# The header reads: t=<unix seconds>,v1=<hex>
parts = dict(part.strip().split("=", 1) for part in header.split(",") if "=" in part)
sent_at, given = parts.get("t", ""), parts.get("v1", "")
if not sent_at.isdigit() or abs(time.time() - int(sent_at)) > TOLERANCE_SECONDS:
return False
expected = hmac.new(SECRET, sent_at.encode() + b"." + body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected.encode(), given.lower().encode())
handled = set() # keep these in your database
def handle(event: dict) -> None:
if event["id"] in handled: # delivered before
return
handled.add(event["id"])
if event["type"] == "sale.created":
print("Sold:", event["data"]["object"]["id"])
class Webhook(BaseHTTPRequestHandler):
def do_POST(self):
body = self.rfile.read(int(self.headers.get("Content-Length", 0))) # the raw bytes
if not is_from_syncseats(body, self.headers.get("SyncSeats-Signature", "")):
self.send_response(400)
self.end_headers()
return
self.send_response(204) # answer first
self.end_headers()
handle(json.loads(body)) # then do the work
HTTPServer(("", 8080), Webhook).serve_forever()Answering
Answer with any status in the 200s within 10 seconds. The body of your answer is not read.
Answer first and work afterwards: store the event, or put it in a queue, and return. An endpoint that works for longer than the time allows counts as failed, even when the work went through.
Retries
A delivery fails when your endpoint answers with another status or a redirect, takes too long or cannot be reached. Then SyncSeats tries again:
| Attempt | When |
|---|---|
| 1 | After the event |
| 2 | 1 minute after attempt 1 failed |
| 3 | 5 minutes after attempt 2 failed |
| 4 | 30 minutes after attempt 3 failed |
| 5 | 2 hours after attempt 4 failed |
| 6 | 4 hours after attempt 5 failed |
| 7 | 8 hours after attempt 6 failed |
| 8 | 10 hours after attempt 7 failed |
That is 8 attempts over about 25 hours. After the last one the delivery is marked as failed and is not tried again. The dashboard shows the recent deliveries of each endpoint and how they went.
There you can also send a delivery that is over once more, for example after your server was down longer than the retries last. It comes as a new delivery of the same event, with the same event id and a new signature, so a receiver that drops events it already has by id takes it once. It is tried once: when it fails, the dashboard says so, and you can send it again.
Twice, and out of order
An event can reach you more than once, for example when your answer got lost on the way. Every delivery of an event carries the same id: keep the ids you have handled, and skip an event you know.
Events can also arrive in another order than they happened, since a retry of an earlier event can come after a later one. So do not build what you know from the order of events. Take it from data.object, or read the object from the API when an event arrives.
When an endpoint stops
After 30 failed attempts in a row, SyncSeats stops sending to an endpoint. Turn it back on in the dashboard once your server answers again. The deliveries that were still on their way wait for that and go out then; events that happen while it is stopped are not sent to it.
Endpoints are also stopped when the keys of the account are ended: after a password reset or change, a new authenticator or a suspension. Then the deliveries on their way are dropped, and turning a live endpoint back on takes your authenticator code.
Pausing an endpoint drops the deliveries on their way to it as well, and while it is paused it gets no events.
Events and their deliveries are kept for 30 days.
The transfer recipient
A sale in an event comes without its transfer recipient. For an endpoint with Include the transfer recipient switched on, sale events carry recipient, as the API does for a key with recipients:read. Switch it on only for an endpoint that needs it, and keep the data no longer than the transfer needs it.
Trying it out
- Send test on the developers page sends a
pingevent to an endpoint and shows how the delivery went.pingreaches every endpoint, whatever event types it chose. - A test endpoint receives the events of the sandbox, with
modeset totest:POST /v1/sandbox/salessends itsale.created. Test mode and the sandbox lists what each step sends. - Roll secret gives an endpoint a new signing secret. The old one stops working with that, so have your server ready for the new one.