Ticket API

Read our events and sell tickets for the paid ones from another app's server.

Lets another app's server read our events and sell tickets for the paid ones. Tickets sold this way go on the event's attendee list, scan at the door like any other, and show in the buyer's My Tickets on the site when the order carries their email. An order can also ask us to email the buyer their tickets.

It's an admin-level API, not one for ordinary users.

A key sees events as core-staff do in the admin panel, unpublished ones included. So keys go only to our own systems and to partners' servers we trust.

The API returns everything the site itself reads and leaves the filtering to the caller. Its events are both kinds the site has, unarchived and archived, each with the site's own fields.

What it does

EndpointScopeWhat it does
GET /v1/eventsevents:readList every event, archived ones included
GET /v1/events/{eventId}events:readGet one event, such as to check it just before taking payment
POST /v1/events/{eventId}/orderstickets:writeIssue an order's tickets once it's paid
GET /v1/events/{eventId}/orders/{orderId}tickets:readGet an order, with whether each ticket has been used

Prices stay in the seller's app, since events don't store them.

Where to next

The code is functions/src/functions/api.ts.

On this page