Pro
This reference is open to everyone. Calls need an API key, and keys come with Pro at no extra charge.
Compare plans →
Resources / Ticket types
Ticket types
Ticket types live on a production's ticketing, so every date that follows it gets them, or on one date with its own prices. Never one ticket at a time.
The object
name string
General, Front row.
price_cents integer
Before fees and tax.
quantity integer or null
Seats, or null for no limit.
hidden boolean
Shown only with its unlock code.
sold_where string
everywhere, online, or door.
The ticket type object
{ "id": 912, "name": "General", "price_cents": 2000, "quantity": 60, "hidden": false, "sold_where": "everywhere", "archived": false, "production_id": 77, "show_id": null}
Add a ticket type
POST
/v1/ticket_types
Read-and-write key
To a production (production_id) or to a date with its own prices (show_id).
Body
production_id or show_id integer required
Where it goes.
name string required
Its name.
price_cents integer required
Its price.
quantity integer
Seats.
description string
What it includes.
hidden boolean
Shown only with unlock_code.
unlock_code string
The code that shows it.
min_per_order, max_per_order integer
Limits per order.
sells_at string
everywhere, online, or door.
curl
curl -X POST https://api.cocoscout.com/v1/ticket_types \ -H "Authorization: Bearer cs_live_…" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "production_id": 4812, "name": "…", "price_cents": 1 }'
Change a ticket type
PATCH
/v1/ticket_types/{id}
Read-and-write key
Any of the fields above. A new price applies to sales from now on.
curl
curl -X PATCH https://api.cocoscout.com/v1/ticket_types/4812 \ -H "Authorization: Bearer cs_live_…"
Remove a ticket type
DELETE
/v1/ticket_types/{id}
Read-and-write key
Gone, or archived when tickets were sold on it (they keep their type).
curl
curl -X DELETE https://api.cocoscout.com/v1/ticket_types/4812 \ -H "Authorization: Bearer cs_live_…"