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.

Download all as MarkdownOpenAPI

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.

  1. Give the endpoint a name and its address, for example https://pos.example.com/hooks/syncseats.
  2. Choose the event types it receives, or all of them.
  3. Decide whether its sale events include the transfer recipient.
  4. 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:

JSON
{
	"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
		}
	}
}
FieldTypeDescription
idstring (webhook event id)The same for every delivery of the event: use it to drop duplicates.
objectstringAlways event.
typestringOne 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.
modestringOne of live or test.
api_versionstringAlways v1.
created_atstring (timestamp)ISO 8601 in UTC, e.g. 2026-12-09T19:30:00.000Z.
dataobjectobject, and for some events a few fields beside it.
data.objectany valueWhat 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

TypeWhen it is sentWhat data.object isAlso in data
sale.createdTickets of one of your listings sold.Sale
sale.recipient_updatedThe marketplace named the transfer recipient of a sale, or changed it.Sale
sale.delivery_dueA sale is still to deliver and its deadline is close.Salehours_left
sale.proof_submittedA proof of transfer was uploaded for a sale; it waits for confirmation.Sale
sale.proof_resetOur team reset the proof of a sale; it has to be delivered again.Salereason
sale.deliveredThe delivery of a sale is confirmed.Sale
sale.cancelledA sale was cancelled, with or without a charge.Sale
sale.payout_readyThe marketplace paid for a sale; it can go into a payout.Sale
payout.paidA payout was sent to your bank account.Payout
listing.createdA listing was created and is on its way to its marketplaces.Listing
listing.liveA listing went live on a marketplace.Listing
listing.updatedA listing was changed.Listingchanges
listing.deletedA listing was taken off every marketplace and archived.Deleted listing
listing.marketplace_addedSyncSeats added a new marketplace to your open listings.A marketplace_added object
listing.action_requiredA marketplace waits for a choice on a listing: a fan section, a category or how the seats sit together.Listingmarketplace
report.weeklyYour numbers of the last week.A weekly_report object
pingSent from the developers page to check an endpoint.A ping object

Some types carry fields of their own in data:

TypeFieldWhat it holdsDescription
sale.delivery_duedata.hours_leftnumber or nullHours until the in-hand deadline when the reminder went out.
sale.proof_resetdata.reasonstring or null
listing.updateddata.changesarray of objectsWhat changed, as the dashboard words it. Empty when the change is not itemized.
listing.updateddata.changes[].fieldstring
listing.updateddata.changes[].fromstring or null
listing.updateddata.changes[].tostring or null
listing.deleteddata.objectobjectWhat DELETE /v1/listings/{id} answers once the listing is off every marketplace and archived.
listing.deleteddata.object.objectstringAlways listing.
listing.deleteddata.object.idstring (id)
listing.deleteddata.object.deletedbooleanAlways true.
listing.marketplace_addeddata.objectobject
listing.marketplace_addeddata.object.objectstringAlways marketplace_added.
listing.marketplace_addeddata.object.marketplaceobject
listing.marketplace_addeddata.object.marketplace.idstring (id) or null
listing.marketplace_addeddata.object.marketplace.namestring
listing.marketplace_addeddata.object.listing_idsarray of ids
listing.action_requireddata.marketplaceobjectThe 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_requireddata.marketplace.idstring (id) or null
listing.action_requireddata.marketplace.namestring
report.weeklydata.objectobject
report.weeklydata.object.objectstringAlways weekly_report.
report.weeklydata.object.weekstring or nullThe week the numbers are for, as the report words it.
report.weeklydata.object.salesinteger
report.weeklydata.object.tickets_soldinteger
report.weeklydata.object.revenuestring or nullGross revenue, formatted in your display currency.
report.weeklydata.object.payoutstring or nullNet payout, formatted in your display currency.
pingdata.objectobject
pingdata.object.objectstringAlways ping.
pingdata.object.messagestring

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:

data
{
	"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

HeaderWhat it carries
SyncSeats-SignatureThe time of sending and the signature: t=<unix seconds>,v1=<hex>.
SyncSeats-Event-IdThe id of the event.
SyncSeats-Event-TypeThe type of the event.
SyncSeats-Delivery-IdThe id of this delivery to your endpoint.
Content-Typeapplication/json
User-AgentSyncSeats-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.

  1. Take the body as the bytes that arrived, before a JSON parser touches them.
  2. Split the SyncSeats-Signature header at the comma into t, a time in Unix seconds, and v1, a string of hex digits.
  3. Refuse the event when t is more than 300 seconds (5 minutes) away from your clock. That keeps a recorded event from being sent to you again later.
  4. Compute the HMAC-SHA256 of t, a dot and the body. The key is your signing secret as it was shown to you, with its sswhsec_ at the start.
  5. Compare the result, written in hex, with v1 in constant time. If they differ, answer 400 and do nothing else.
Node.js
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)
Python
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:

AttemptWhen
1After the event
21 minute after attempt 1 failed
35 minutes after attempt 2 failed
430 minutes after attempt 3 failed
52 hours after attempt 4 failed
64 hours after attempt 5 failed
78 hours after attempt 6 failed
810 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 ping event to an endpoint and shows how the delivery went. ping reaches every endpoint, whatever event types it chose.
  • A test endpoint receives the events of the sandbox, with mode set to test: POST /v1/sandbox/sales sends it sale.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.