Check a promo code
Checks a promo code before the attendee reserves, so you can show the
discount early. Send the ticket IDs in the cart: a code limited to some
tickets returns 400 without them, or when the cart has other tickets.
Only codes that belong to this event work. Checking a code does not
hold it: send it as promoCode when you create the reservation, which
applies the discount. Returns 404 for an unknown or expired code and
400 when the code has no uses left.
Authorization
ApiKeyAuth Your public API key (e.g. jt_public_...) passed as a Bearer token.
In: header
Path Parameters
The event's URL slug.
Header Parameters
The attendee's reservationToken, if they already have a reservation.
If that reservation already holds uses of the code, they still count
as available to this attendee.
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/events/string/promo-codes/validate" \ -H "Content-Type: application/json" \ -d '{ "code": "string" }'{ "status": true, "data": { "code": "string", "type": "PERCENTAGE", "value": 0, "ticketIds": [ "fb54b4bc-22b8-4601-8bca-fd618f908a4c" ], "expiresAt": "2019-08-24T14:15:22Z" }}Join a sale's waitlist POST
Adds an attendee to a sale's waitlist. They get a confirmation email and, unless the organiser has turned these off, an email when the sale is about to open. Joining again with the same email is safe. Signups close once the sale is about to open (see the sale's `waitlistOpen`); later attempts return `400`.
Create or refresh a reservation POST
Prices the cart and holds the requested stock for the checkout window. Returns a `reservationToken` and a `quoteReference`. Send the same `X-Device-ID` again to refresh the attendee's reservation. A promo code must belong to the event in `{slug}`; global promo codes are not supported. To buy tickets from a sale, send `saleId`, and `salePassword` when the sale has one. Tickets to Seat Map events return `400`. Events with a waiting room return `403`. Send `addons` to sell add-ons with the tickets, or on their own with `buyerEmail`. Reservations without tickets are limited to 30 a minute per client IP when an add-on is free or limited to certain tickets, because they check what `buyerEmail` holds or has claimed.

