Working with listings

Create listings for seated or standing tickets, with a proof of purchase where a marketplace asks for one, change them, and take them off sale.

Download all as MarkdownOpenAPI

One listing, one ticket group

A listing is one ticket group of yours for one event: a section, a row and its seats, or a number of standing tickets. Four seats in Row F and two in Row G are one listing each.

A listing is offered on several marketplaces at the same time. marketplaces shows each of them with its status, its price and its commission. When tickets sell on one marketplace, SyncSeats takes them off the others.

What you need first

  • The id of the event, from GET /v1/events. An event the catalog does not have cannot be requested through the API; do that in the dashboard.
  • The ids of the marketplaces to list on, from GET /v1/marketplaces, if you do not want all of them.
  • The ids for the ticket type, the split, a restriction, a view and extras, from GET /v1/listing-options, if you use them.
  • For a marketplace that asks for a proof of purchase, the files of the proof, uploaded as Proof of purchase explains.

Creating listings

POST /v1/listings takes one event and up to 50 ticket groups. Each group becomes one listing.

Request
curl -X POST "https://www.syncseats.com/api/v1/listings" \
	-H "Authorization: Bearer ssapi_test_..." \
	-H "Content-Type: application/json" \
	-H "Idempotency-Key: pos-48211-create" \
	-d '{
		"event_id": "6718d2f4a9c3b17e5d204a61",
		"listings": [
			{
				"section": "112",
				"row": "F",
				"seats": ["14", "15"],
				"price_per_ticket": { "amount": "412.00", "currency": "USD" },
				"face_value": { "amount": "195.00", "currency": "USD" },
				"cost_per_ticket": { "amount": "280.00", "currency": "USD" },
				"reference": "48211"
			}
		],
		"proof_of_purchase_upload_ids": ["upl_Hc7wPq2Lr9Vt4Kz1Xm8Bn3Fd"]
	}'
  • seats names each seat as an entry of its own. How many there are is the quantity. Tickets without seat numbers send quantity instead, as Standing tickets explains.
  • price_per_ticket is in USD, EUR or GBP. An amount in EUR or GBP is converted to USD when the request is processed, and the answer shows USD. Money says at which rate.
  • face_value is the price printed on the ticket and cost_per_ticket what you paid for it, both in the currency of the price. Face value says which marketplaces get it. The cost is also what the listing’s entry in the inventory shows the tickets cost, and a purchase amount recorded there becomes the listing’s cost.
  • marketplace_ids is optional. Left out, the listings go to every marketplace of your account, with a live key without the ones you left out on your last listing in the dashboard (a test key takes every one). A marketplace that asks for a proof of purchase is among them only when the request sends one, and so is a marketplace sold as one with it.
  • proof_of_purchase_upload_ids is optional too: the uploads of a proof of purchase, which goes with every ticket group of the request. The example sends the order confirmation of the tickets this way. Proof of purchase explains how to upload it.
  • publish is true unless you say otherwise. With false the listings are saved as drafts and go nowhere yet.

On a marketplace that does not carry the event yet, a listing waits until it does. ready_marketplace_ids of the event says which of your marketplaces carry it already.

When only a part goes through

A request with several groups can go through in part. The answer has what was created under listings, in the order of the request, and what was not under skipped: the position of the group in the request, counted from 0, a code and a message. Here the second of two groups names seats that are listed already:

skipped
[
	{
		"index": 1,
		"code": "seats_taken",
		"message": "Seats 14 and 15 in Section 112, Row F are already listed for this event."
	}
]

Look at skipped after every request that creates listings. It is empty when all went through.

Ticket types

ticket_type says what the buyer gets, as an id from GET /v1/listing-options; left out, it is eticket. It also says how a sale of the listing is delivered as a rule:

Ticket typeWhat the tickets areDelivered as a rule with
eticketPDF tickets, one file for each ticket.pdf
mobileA QR code or a screenshot from the ticketing app, as a PDF or an image.transfer_proof
mobile_transferTickets that are transferred from your account at the primary seller to the buyer’s, for example by email through Ticketmaster or AXS.transfer_link when you have a link for each ticket to pass on, otherwise transfer_proof

How the tickets went explains the methods. A delivery says how you actually delivered, so it can take another method than the one its ticket type suggests.

A listing from the dashboard or from before can carry an older type, which the API shows but does not take: flash, paper, paperless, will_call and dropship.

Standing tickets

Standing or unreserved tickets have no seat numbers. Send quantity, how many there are from 1 to 50, in place of seats, and leave row out. section names the area when the venue has several, like Floor or Balcony; left out, it is General Admission.

JSON
{
	"event_id": "6718d2f4a9c3b17e5d204a61",
	"listings": [
		{
			"section": "Floor",
			"quantity": 4,
			"price_per_ticket": { "amount": "289.00", "currency": "USD" },
			"face_value": { "amount": "149.50", "currency": "USD" },
			"reference": "48244"
		}
	]
}

A group with both seats and quantity, or with quantity and a row, gets 422 validation_failed.

The listing has general_admission set to true and the row GA. Marketplaces want a number for every ticket, so SyncSeats numbers the tickets, starting at 1 and skipping the numbers your other standing listings for the same event and section use already. seats shows these numbers. They are not on the tickets:

In the answer
{
	"section": "Floor",
	"row": "GA",
	"general_admission": true,
	"seats": ["1", "2", "3", "4"],
	"quantity": 4
}

A listing created earlier with the row GA and made-up seat numbers, in the dashboard or through the API, counts as standing too.

quantity changes how many tickets a standing listing has, with If-Match. While it is a draft, any number goes, and the tickets are numbered anew. On sale it can only go down, as the only field of the request: the highest unsold numbers go, sold ones stay, and at least one unsold ticket stays. More tickets go on a new listing.

JSON
{ "quantity": 3 }
What the request doesThe answer
Sends another field beside quantity422 validation_failed at quantity
Asks for more tickets than the listing has409 listing_locked
Changes a listing that was taken off sale409 listing_locked
Goes below the tickets that sold, or leaves no unsold ticket409 conflict
Meets tickets a marketplace holds for an order it has not confirmed409 listing_busy
Sends quantity for seated tickets422 validation_failed: send seats

Face value

face_value is the price printed on the ticket. Send it when you create a listing, in the currency of the price; another currency gets 422 validation_failed. The answer shows it in USD.

Marketplaces that ask for a face value get face_value. Without it they get cost_per_ticket, and without that most of them get the price per ticket. Set the face value when the tickets carry one, so no marketplace has to fall back on your cost or your price.

PATCH /v1/listings/{id} sets it later, in USD, EUR or GBP, and null removes it. It needs no If-Match and does not change the version:

JSON
{
	"face_value": { "amount": "195.00", "currency": "USD" }
}

Statuses

status says where the listing stands as a whole:

StatusWhat it means
draftSaved, on no marketplace. Publish it to put it on sale.
pending_eventWaits for our team to add its event to the catalog. Only listings from the dashboard can be in this state.
queuedOn its way to its marketplaces.
liveOn sale.
partially_soldSome tickets sold, the rest is still listed (see on_sale).
soldEvery ticket sold.
completedEvery ticket sold and every sale delivered.
off_saleTaken off every marketplace. Publish it to put it back on sale.
cancelledCancelled by our team.
errorA marketplace refused it. Our team sees these; the dashboard offers a retry.

on_sale says whether unsold tickets are offered right now. Each entry of marketplaces has a status of its own:

Status on a marketplaceWhat it means
pendingNot on this marketplace yet: on its way, or the marketplace is paused.
waiting_for_eventThe marketplace does not carry the event yet. The listing goes out once it does.
needs_actionThe marketplace waits for a choice: a fan section, a category or how the seats sit together. action lists the options; answer with POST /v1/listings/{id}/marketplaces/{marketplace_id}/choice or in the dashboard.
liveOn sale there.
soldSold there.
off_saleNot on sale there.
cancelledCancelled there.
errorThe marketplace refused it.

needs_action is true when a marketplace waits for a choice. When a marketplace needs a choice explains how to answer it.

What can change when

PATCH /v1/listings/{id} changes the fields you send and leaves the others as they are. What it takes depends on whether the listing is on a marketplace:

FieldDraft, on no marketplaceOn sale
price_per_ticketyesyes
marketplace_pricesyesyes
face_valueyesyes
cost_per_ticketyesyes
splityesyes
restrictionyesyes
viewyesyes
extrasyesyes
referenceyesyes
internal_noteyesyes
sectionyesNo: 409 listing_locked
rowyesNo: 409 listing_locked
ticket_typeyesNo: 409 listing_locked
seatsyesOnly to remove unsold seats
quantityStanding tickets onlyStanding tickets only, and only fewer
  • A new price goes to every marketplace of the listing. If one of them does not take it, nothing is saved and the answer is 502 marketplace_error: the listing is as it was.
  • marketplace_prices gives a marketplace a price of its own, by the id of the marketplace. Marketplaces that are sold as one take it together.
  • A change to the tickets themselves needs the If-Match header. Versions and If-Match explains why.
A price of its own
{
	"marketplace_prices": {
		"66a0c41e7b2d9f3a10c5e803": { "amount": "195.00", "currency": "USD" }
	}
}

null in place of the amount sets the marketplace back to the price of the listing:

Back to the price of the listing
{
	"marketplace_prices": { "66a0c41e7b2d9f3a10c5e803": null }
}

Removing seats from a listing on sale

While a listing is on sale (live or partially_sold), its tickets can change in one way only: unsold seats can be removed. Send seats with the seats that stay, as the only field of the request, with If-Match:

JSON
{
	"seats": ["7", "8"]
}

At least one ticket has to stay, and sold or reserved seats cannot be left out. Anything else, such as other seats, more seats, another row or another ticket type, gets 409 listing_locked: delete the listing and create it anew. Standing tickets send quantity instead, as Standing tickets shows.

Selling in pairs

split says how many tickets a buyer may take. With pairs buyers take 2, 4 or 6, so a sale never leaves 1 or 3 tickets over. A listing takes it with an even number of at least 4 tickets that are not sold or reserved, when it is created and when its split changes to pairs; otherwise 422 validation_failed at split.

Removing seats or tickets from a listing that sells in pairs has to leave an even number unsold; otherwise 422 validation_failed at seats or quantity. When sales leave 2 tickets, the listing keeps the split and sells them together.

When a marketplace needs a choice

Some marketplaces ask for something before they take a listing: which fans the tickets are for, which of their ticket categories they belong to, or how the seats sit together. Until they have the answer, their status on the listing is needs_action, the listing’s needs_action is true, and action of that marketplace names the choice with its options:

One entry of marketplaces
{
	"id": "66a0c41e7b2d9f3a10c5e803",
	"name": "SeatGeek",
	"status": "needs_action",
	"price_per_ticket": { "amount": "412.00", "currency": "USD" },
	"own_price": false,
	"commission_percent": 5,
	"url": null,
	"action": {
		"kind": "category",
		"options": [
			{ "id": "Category 1", "label": "Category 1" },
			{ "id": "Category 2", "label": "Category 2" },
			{ "id": "Category 3", "label": "Category 3" }
		]
	}
}
KindWhat the marketplace asks
fan_sectionWhich fans the tickets are for, for example home or away fans.
categoryWhich of the event’s ticket categories at the marketplace the tickets belong to.
seatingHow the seats sit together, for example all together or in pairs.

For a fan section and a category, id and label of an option are the same text. For how the seats sit together, id is a short code and label its name.

Answer with POST /v1/listings/{id}/marketplaces/{marketplace_id}/choice: kind as action.kind names it, and one id of action.options as option_id. If-Match is optional, and an answer does not change the version.

Request
curl -X POST "https://www.syncseats.com/api/v1/listings/671f3a9c2b7d4e0f1ae48211/marketplaces/66a0c41e7b2d9f3a10c5e803/choice" \
	-H "Authorization: Bearer ssapi_test_..." \
	-H "Content-Type: application/json" \
	-H "Idempotency-Key: pos-48211-category" \
	-d '{
		"kind": "category",
		"option_id": "Category 1"
	}'
  • A marketplace that waits for more than one choice shows them one after the other, in the order fan_section, category and seating. The next shows once the one before is answered, in the answer to it.
  • With a live key, the marketplace takes the listing through its queue after the last answer. listing.live tells you when it is on sale there; the answer itself sends no event.
  • The listing.action_required webhook tells you when a marketplace starts to wait. Webhooks has what it carries.
  • The dashboard offers the same choice under the listing, and an answer given there counts as well.
What is wrongThe answer
The listing is not yours, or the marketplace is not one of the listing404 not_found
The marketplace waits for no choice409 conflict
It waits for another kind first: the message names it409 conflict
option_id is none of the options shown422 validation_failed at option_id
If-Match names another version than the listing has409 listing_changed

In the sandbox no marketplace asks by itself. POST /v1/sandbox/listings/{id}/require-choice makes one wait, so your software can practise: Test mode and the sandbox shows how.

Off sale, back on sale, delete

  • POST /v1/listings/{id}/unpublish takes a listing off every marketplace and keeps it. For a listing that sold in part, it takes the unsold rest off sale.
  • POST /v1/listings/{id}/publish puts a draft, or a listing that was taken off sale, on sale.
  • DELETE /v1/listings/{id} takes the listing off every marketplace and archives it. It needs If-Match. A listing with sales stays on record and answers 409 listing_has_sales; take the rest off sale instead.

While a listing is being synced with a marketplace, or tickets are held for an order a marketplace has not confirmed yet, a change gets 409 listing_busy. Wait a little and send it again.

Options, your reference and your note

restriction, view and extras take ids from GET /v1/listing-options, never text of your own. In an answer each comes as an id with its label. A value that was set in the dashboard and is not on the list has the id custom.

reference, up to 100 characters, is your own name or number for the listing, for example its id in your system. internal_note, up to 500 characters, is a note for yourself. Both are private: no marketplace and no buyer sees them. GET /v1/listings filters by reference, so you can find a listing by your own number, and every sale of the listing carries the reference too, as Your reference on a sale shows.

There is no field for text of your own to buyers.

Proof of purchase

Some marketplaces take a listing only with a proof of purchase, such as the order confirmation of the tickets. requires_proof in GET /v1/marketplaces marks them. The proof goes in three steps, like the files of a delivery:

  1. POST /v1/listings/proof-of-purchase/uploads announces each file with its content_type and its size in bytes: up to 10 files, each application/pdf, image/jpeg or image/png, of up to 10 MB. The answer has an upload for each, with its id and its upload_url.
  2. PUT each file to its upload_url with exactly the headers of its upload. The URL is no endpoint of the API: it carries its own signature, so send no Authorization header, and a file of another type or length is refused. It takes the file for 15 minutes, until expires_at.
  3. POST /v1/listings names the uploads in proof_of_purchase_upload_ids. Each file is copied to a place of its own as the listings are created: a file put to the URL after that changes nothing.
Request
curl -X POST "https://www.syncseats.com/api/v1/listings/proof-of-purchase/uploads" \
	-H "Authorization: Bearer ssapi_test_..." \
	-H "Content-Type: application/json" \
	-H "Idempotency-Key: pos-48211-proof-of-purchase" \
	-d '{
		"files": [
			{
				"content_type": "application/pdf",
				"size": 96512
			}
		]
	}'
Response, 201
{
	"object": "proof_of_purchase_upload_batch",
	"uploads": [
		{
			"id": "upl_Hc7wPq2Lr9Vt4Kz1Xm8Bn3Fd",
			"upload_url": "https://www.syncseats.com/api/v1/sandbox/uploads/upl_Hc7wPq2Lr9Vt4Kz1Xm8Bn3Fd.1794389705.Lp8Vd3Qx6Kz1Rt9Wm4Bc7Hs2Nf5Jy0Ga3Ue6Ti9Ow1P",
			"method": "PUT",
			"headers": {
				"Content-Type": "application/pdf",
				"Content-Length": "96512"
			},
			"content_type": "application/pdf",
			"size": 96512,
			"expires_at": "2026-11-11T09:35:05.000Z"
		}
	]
}

The order confirmation goes to the URL of its upload:

Upload with curl
curl -X PUT "https://www.syncseats.com/api/v1/sandbox/uploads/upl_Hc7wPq2Lr9Vt4Kz1Xm8Bn3Fd.1794389705.Lp8Vd3Qx6Kz1Rt9Wm4Bc7Hs2Nf5Jy0Ga3Ue6Ti9Ow1P" \
	-H "Content-Type: application/pdf" \
	-H "Content-Length: 96512" \
	--data-binary @order-confirmation-48211.pdf

Then the request of Creating listings names the upload:

proof_of_purchase_upload_ids
["upl_Hc7wPq2Lr9Vt4Kz1Xm8Bn3Fd"]
  • The proof goes with every ticket group of the request, and every listing it creates has its files. proof_of_purchase_files of a listing says how many there are; the files themselves are not shown.
  • With a proof, a marketplace with requires_proof can be named in marketplace_ids, and when you leave marketplace_ids out, it is among the marketplaces the listings go to. Without a proof it is left out, and naming it gets 422 validation_failed at marketplace_ids[i].
  • A proof goes in only when listings are created, drafts with publish set to false included. The API adds no proof and no marketplace to a listing that exists.
  • The uploads are taken last, once the rest of the request holds, and each goes with one request. When a request creates no listing, for example because every ticket group was skipped or refused, its uploads are free again for the next one. An upload that went with no request within 24 hours is gone; upload the file again.
  • An upload of a delivery is no proof of purchase, and an upload of a proof of purchase goes into no delivery: each is refused where the other belongs.
  • With a live key, the proof needs a verified identity, as every change to listings does, and an account may ask for upload URLs for 120 files an hour; a request that would go past that gets none and answers 429 rate_limited with Retry-After.
What is wrongThe answer
An upload of proof_of_purchase_upload_ids is another account’s or of the other mode, or there is none with this id422 validation_failed at proof_of_purchase_upload_ids[i]
It is an upload of the delivery of a sale422 validation_failed at proof_of_purchase_upload_ids[i]
It went with other listings already422 validation_failed at proof_of_purchase_upload_ids[i]
It waited longer than 24 hours422 validation_failed at proof_of_purchase_upload_ids[i]
Its file never came in, or is not the type or size its upload was announced with422 validation_failed at proof_of_purchase_upload_ids[i]
A marketplace with requires_proof is in marketplace_ids, and the request has no proof422 validation_failed at marketplace_ids[i]
The file storage did not answer503 service_unavailable: send the same request again after Retry-After

422 validation_failed names the upload by its place in proof_of_purchase_upload_ids:

JSON
{
	"error": {
		"code": "validation_failed",
		"message": "This upload is for the delivery of a sale. A proof of purchase takes uploads from `POST /v1/listings/proof-of-purchase/uploads`.",
		"details": {
			"issues": [
				{
					"path": "proof_of_purchase_upload_ids[0]",
					"message": "This upload is for the delivery of a sale. A proof of purchase takes uploads from `POST /v1/listings/proof-of-purchase/uploads`."
				}
			]
		}
	},
	"request_id": "req_7d1f3b9e5a2c8f0d4b6e1a9c"
}
LimitLiveTest
Files in one proof of purchase1010
Size of one file10 MB4 MB
Time an upload URL takes its file15 minutes15 minutes
Time an upload waits to go with new listings24 hours24 hours
Files given an upload URL, per account, an hour120120, together with the uploads of deliveries
Files one upload URL takes in 10 minutesNo limit of its own10
The whole proof of purchase in Node 18 or newer
import { randomUUID } from 'node:crypto'
import { readFile } from 'node:fs/promises'

const BASE = 'https://www.syncseats.com/api/v1'
const KEY = 'Bearer ssapi_test_...'

async function send(path, body) {
	const response = await fetch(BASE + path, {
		method: 'POST',
		headers: { Authorization: KEY, 'Content-Type': 'application/json', 'Idempotency-Key': randomUUID() },
		body: JSON.stringify(body),
	})
	const answer = await response.json()
	if (!response.ok) throw new Error(response.status + ' ' + answer.error.code + ': ' + answer.error.message)
	return answer
}

async function createWithProof(body, files) {
	const contents = await Promise.all(files.map(file => readFile(file.path)))
	// 1. An upload URL for each file of the proof
	const { uploads } = await send('/listings/proof-of-purchase/uploads', {
		files: files.map((file, i) => ({ content_type: file.contentType, size: contents[i].length })),
	})
	// 2. Each file, with exactly the headers of its upload and without the key
	for (const [i, upload] of uploads.entries()) {
		const put = await fetch(upload.upload_url, { method: upload.method, headers: upload.headers, body: contents[i] })
		if (!put.ok) throw new Error('The upload was refused: ' + put.status)
	}
	// 3. The listings, with the proof for every ticket group
	return send('/listings', { ...body, proof_of_purchase_upload_ids: uploads.map(upload => upload.id) })
}

const body = {
	event_id: '6718d2f4a9c3b17e5d204a61',
	listings: [
		{
			section: '112',
			row: 'F',
			seats: ['14', '15'],
			price_per_ticket: { amount: '412.00', currency: 'USD' },
			face_value: { amount: '195.00', currency: 'USD' },
			cost_per_ticket: { amount: '280.00', currency: 'USD' },
			reference: '48211',
		},
	],
}
const files = [{ path: 'order-confirmation-48211.pdf', contentType: 'application/pdf' }]
const batch = await createWithProof(body, files)
console.log(batch.listings.map(listing => listing.proof_of_purchase_files), batch.skipped)
The same in Python
import uuid

import requests

BASE = "https://www.syncseats.com/api/v1"
KEY = "Bearer ssapi_test_..."


def send(path: str, body: dict) -> dict:
	headers = {"Authorization": KEY, "Idempotency-Key": str(uuid.uuid4())}
	response = requests.post(BASE + path, headers=headers, json=body)
	response.raise_for_status()
	return response.json()


def create_with_proof(body: dict, files: list[tuple[str, str]]) -> dict:
	contents = []
	for path, _ in files:
		with open(path, "rb") as f:
			contents.append(f.read())
	# 1. An upload URL for each file of the proof
	uploads = send("/listings/proof-of-purchase/uploads", {
		"files": [{"content_type": kind, "size": len(content)} for (_, kind), content in zip(files, contents)],
	})["uploads"]
	# 2. Each file, with exactly the headers of its upload and without the key
	for upload, content in zip(uploads, contents):
		requests.put(upload["upload_url"], headers=upload["headers"], data=content).raise_for_status()
	# 3. The listings, with the proof for every ticket group
	return send("/listings", {**body, "proof_of_purchase_upload_ids": [upload["id"] for upload in uploads]})


body = {
	"event_id": "6718d2f4a9c3b17e5d204a61",
	"listings": [
		{
			"section": "112",
			"row": "F",
			"seats": ["14", "15"],
			"price_per_ticket": {"amount": "412.00", "currency": "USD"},
			"face_value": {"amount": "195.00", "currency": "USD"},
			"cost_per_ticket": {"amount": "280.00", "currency": "USD"},
			"reference": "48211",
		},
	],
}
batch = create_with_proof(body, [("order-confirmation-48211.pdf", "application/pdf")])
print([listing["proof_of_purchase_files"] for listing in batch["listings"]], batch["skipped"])

In the sandbox the upload URLs lead to SyncSeats itself and take smaller files: Test mode and the sandbox has the details.

Keeping your own system in step

  • Read GET /v1/listings with updated_since to get what changed since you last looked.
  • Or let webhooks tell you: listing.live, listing.updated, listing.action_required and sale.created cover most of what happens to a listing.
  • Before a change that depends on what is left, read the listing and send its version. A refusal such as listing_changed is the API doing its work, not a fault.