Jetron TicketFluid

Attendee tickets

Show attendees their tickets, add-ons and QR codes inside your own app, from your server, with your private key.

If you run your own app or site where attendees sign in, you can show them their tickets there. Your server sends the attendee's email to POST /attendees/tickets/lookup and gets back their tickets for your events, with the QR code to show at the door.

Add-ons they bought have their own lookup, POST /attendees/addons/lookup, which works the same way.

These two endpoints are different from the rest of the API:

Attendee lookupsEvery other endpoint
KeyPrivate (jt_private_...)Public (jt_public_...)
Call it fromYour server onlyBrowser or server
ReturnsOne person's tickets, add-ons and QR codesPublic event data and checkout

A public key gets 403 from the lookups, and the private key gets 403 from every other endpoint. A server that does both needs two clients, one per key.

How trust works

Jetron Ticket does not sign the attendee in. Your app does. When your server calls the lookup, it is telling Jetron Ticket "this person owns this email", and Jetron Ticket trusts it.

Verify the email before you look it up

Only call the lookup for an email the signed-in user has proven they own, for example with a one-time code or a magic link sent to that address. If your app lets someone type any email and see the result, anyone can view anyone's QR codes and walk into your event on their ticket.

The private key never goes in the browser

The browser calls your server, and your server calls the lookup. Never put jt_private_... in browser or mobile app code, where anyone can read it. The SDK throws if you create a client with a private key in a browser.

Look up tickets

server.ts
import { createClient } from '@jetronticket/api'

const fluidPrivate = createClient({ apiKey: process.env.JETRON_PRIVATE_API_KEY! })

const { data } = await fluidPrivate.lookupAttendeeTickets({
  email: 'attendee@example.com',
  used: false,
})

for (const order of data.items) {
  console.log(order.event.name, order.ticketName, order.tickets.length)
}

The email goes in the body, not the URL, so it stays out of URLs and logs.

FieldRequiredWhat it does
emailYesThe attendee's email. Case and surrounding spaces are ignored.
eventSlugNoOnly return tickets for this event. An unknown slug returns 404.
usedNofalse for tickets still to use, true for past ones. Leave it out for both. See Upcoming and past tickets.
limitNoOrders per page, from 1 to 100. Defaults to 20.
cursorNoThe nextCursor from the previous page.

What comes back

The response lists orders, newest activity first. Each order is one ticket type at one event, and holds the individual tickets the attendee has on it.

{
  "status": true,
  "data": {
    "items": [
      {
        "id": "8d1c...",
        "ticketId": "4b2e...",
        "ticketName": "VIP",
        "event": {
          "id": "a91f...",
          "name": "Summer Jam",
          "slug": "summer-jam",
          "date": "2026-12-20T18:00:00Z",
          "closingDate": "2026-12-21T02:00:00Z",
          "timezone": "Africa/Lagos"
        },
        "tickets": [
          {
            "id": "c33a...",
            "name": "VIP",
            "status": "VALID",
            "qrCode": "JT-7QX2...",
            "addons": [
              {
                "id": "d81e...",
                "addonId": "77c0...",
                "name": "Drink voucher",
                "fulfillment": "SCAN",
                "quantity": 2,
                "redeemedQuantity": 1,
                "codes": [
                  { "id": "1a4f...", "code": "JA-7K3M...", "redeemedAt": "2026-12-20T20:15:00Z" },
                  { "id": "9b2d...", "code": "JA-H8QD..." }
                ]
              }
            ]
          },
          { "id": "f0b7...", "name": "VIP", "status": "USED", "scannedAt": "2026-12-20T19:04:11Z", "addons": [] }
        ],
        "createdAt": "2026-11-02T10:15:00Z"
      }
    ],
    "nextCursor": "eyJ..."
  }
}
Ticket fieldWhat it tells you
idThe ticket's ID. Use it as a React key or to match tickets between calls.
nameThe ticket's name. For a bundle, the name of the included ticket.
dateThe day the ticket is for, on multi-day events.
statusSee the table below.
qrCodeThe value to render as the entry QR code. Only present when the ticket can be scanned.
unlocksAtWhen a LOCKED ticket's QR code becomes available. Only present on LOCKED tickets.
scannedAtWhen the ticket was scanned at the door.
addonsThe add-ons that came with the ticket.

For a public event, use its slug with GET /events/{slug} and your public key when you need more detail, such as the poster or venue. Private events are not available through GET /events/{slug} and return 404, so show what the lookup returns for those.

Ticket statuses

StatusqrCodeWhat to show
VALIDYesThe QR code. The ticket gets the attendee in.
TRANSFER_PENDINGNoA note that a transfer to someone else is waiting to be accepted. The ticket cannot be scanned until the recipient accepts it or the transfer is cancelled.
USEDNoThe ticket was scanned. Show it as used.
LOCKEDNoThe ticket is valid, but its QR code is held back until unlocksAt. Show when it unlocks.

Render qrCode exactly as returned. Do not store it or show it from a cache: when a ticket is transferred, its QR code changes and the old one stops working.

Locked tickets

When an event has Website & App Only turned on, its tickets stay locked until shortly before each ticket's date. You set how long before in Ticket Release Time, next to it in your event's Advanced settings (7 days unless you change it). Until a ticket unlocks, the lookup returns it as LOCKED, with no qrCode and an unlocksAt time:

{ "id": "c33a...", "name": "VIP", "status": "LOCKED", "unlocksAt": "2026-12-13T18:00:00Z", "addons": [] }

Show the attendee when their code unlocks. Once unlocksAt has passed, look the tickets up again: the ticket comes back VALID with its qrCode. Use unlocksAt rather than working it out yourself: the Ticket Release Time can change, and a ticket for a specific day of a multi-day event unlocks relative to that day.

Add-ons

Attendees have two kinds of add-ons, and each comes from a different place:

Add-onWhere to find itWhen the ticket is transferred
Came with a ticketaddons on each ticket from POST /attendees/tickets/lookupMoves with the ticket and gets new codes
Bought by the attendeePOST /attendees/addons/lookupStays with the buyer

Look up the add-ons an attendee bought with the same private key and the same verified email:

server.ts
const { data } = await fluidPrivate.lookupAttendeeAddons({
  email: 'attendee@example.com',
  eventSlug: 'summer-jam',
})

for (const addon of data.items) {
  console.log(addon.event.name, addon.name, addon.codes.length)
}

It takes email, eventSlug, limit and cursor, with the same rules as the ticket lookup. There is no used filter. Items are newest first, and each has the event it belongs to and when it was bought (createdAt). Refunded and cancelled add-ons are left out.

Both kinds have the same fields:

Add-on fieldWhat it tells you
idThe ID of this attendee's add-on.
addonIdThe add-on itself, matching id in GET /events/{slug}/addons.
name / imageURLWhat to show. imageURL is absent when not set.
fulfillmentSCAN: collected by scanning a code. INSTRUCTIONS: no codes, show instructions.
instructionsWhat the attendee should do to collect it. Absent when not set.
quantity / redeemedQuantityHow many units they have, and how many are collected.
codesOne entry per unit. Render code as a QR code. redeemedAt is set once that unit is collected.

Each unit has its own QR code

Three drink vouchers are three QR codes, and each one collects one unit. The ticket's own QR code does not collect add-ons.

While a ticket is LOCKED or TRANSFER_PENDING, the codes of the add-ons that came with it are empty. Look the ticket up again once it is VALID.

Which tickets are included

  • Only tickets for your events, including private ones. Tickets the same email holds for other hosts' events never appear.
  • Tickets the email bought, and tickets someone transferred to the email.
  • Not tickets the email transferred to someone else.
  • Not tickets from refunded orders, and not tickets that were cancelled.

An order is left out when none of its tickets are left to show.

Upcoming and past tickets

usedReturns
falseOrders with at least one unscanned ticket, for events that have not closed or closed less than a day ago.
trueEverything else: fully scanned orders, and orders for events that closed more than a day ago.
left outBoth.

A typical app shows used: false on its main tickets screen and used: true under a "Past" tab.

Paging

Pass nextCursor back as cursor to get the next page. It is absent on the last page. A page can hold fewer orders than limit, so keep going until nextCursor is absent rather than stopping at a short page. See Pagination.

A server route for your app

Your app calls your own route. Your route checks who is signed in, then looks up that user's verified email.

app/api/my-tickets/route.ts
import { createClient } from '@jetronticket/api'
import { getSession } from '@/lib/auth'

const fluidPrivate = createClient({ apiKey: process.env.JETRON_PRIVATE_API_KEY! })

export async function GET(request: Request) {
  const session = await getSession(request)
  if (!session?.user.emailVerified) {
    return Response.json({ error: 'Sign in first' }, { status: 401 })
  }

  const cursor = new URL(request.url).searchParams.get('cursor') ?? undefined
  const { data } = await fluidPrivate.lookupAttendeeTickets({
    email: session.user.email,
    used: false,
    cursor,
  })

  return Response.json(data, { headers: { 'Cache-Control': 'no-store' } })
}

Take the email from your session, never from the request. Otherwise a signed-in user could ask your route for someone else's tickets.

Errors

StatusWhen
400The body is malformed, email is missing or not an email, limit is out of range, or cursor is invalid.
401The API key is missing or invalid.
403You used the public key. Use jt_private_....
404eventSlug does not match one of your events.
429Too many requests for this key. Wait for the seconds in Retry-After.

An email with no tickets or add-ons is not an error: you get 200 with an empty items list.

Good to know

  • Responses are sent with Cache-Control: no-store and carry no ETag. Scans change tickets and add-ons live, so fetch again whenever the attendee opens their tickets.
  • The lookups are rate limited per key, like every other endpoint. Many attendees open their tickets at the same moment at the door, so call them once when the tickets screen opens rather than polling.
  • Rotating your private key in the dashboard stops these calls until your server has the new key. See Authentication.

On this page