Jetron TicketFluid

Add-ons

Sell extras such as parking, merch or priority access, with tickets or on their own.

An add-on is an extra that goes with an event, such as parking, a T-shirt, a drinks voucher or priority access. Attendees get add-ons in two ways:

How the attendee gets itWhat you build
IncludedIt comes with a ticket at no extra cost.Show it on the ticket. Nothing else to do.
BoughtThe attendee adds it to their cart, next to tickets or on its own.List the add-ons and send them with the reservation.

Jetron Ticket emails attendees their add-ons and the QR codes to collect them. For events with Website & App Only turned on, the email lists the add-ons and points to the app for the codes.

Events without add-ons need none of this.

Create an add-on

In the Jetron Ticket dashboard, open the event, go to Manage Event → Ticket Add-ons and select Create. You set the price, the stock, the most a buyer can take per order, when sales end, and which tickets it is included with or limited to.

You also choose how attendees collect it:

TypeHow it is collected
Scan at a stationEach unit has its own QR code, scanned on the day.
InstructionsNo QR code. The attendee follows the instructions you wrote.

List the add-ons

GET /events/{slug}/addons returns the add-ons the event sells, in the order you arranged them. Check status before you offer one: only AVAILABLE add-ons can be bought.

const { data: addons } = await client.listAddons('my-event')

for (const addon of addons.items) {
  addon.name // "Parking"
  addon.formattedPrice // "NGN 2,000", or "FREE"
  addon.status // "AVAILABLE", "SOLD_OUT", "COMING_SOON" or "SALES_CLOSED"
  addon.maxPerOrder
}
FieldWhat it tells you
price / formattedPriceWhat the buyer pays for one unit, with fees included.
fees / formattedFeesThe fees inside that price.
value / formattedValueWhat the add-on is worth, for example a voucher's face value. Absent when not set.
statusWhether it can be bought right now. See Add-on status.
quantityLeftUnits left to buy right now. Absent when there is no stock limit.
maxPerOrderThe most a buyer can take in one order.
deadlineWhen sales for the add-on close. Absent when they stay open.
ticketIdsThe tickets the add-on is limited to. Empty when anyone can buy it. See Add-ons limited to certain tickets.

Add-ons that only come with a ticket are left out. description and imageURL are absent when not set.

quantityLeft and status already take into account what other attendees are holding. Send X-Device-ID when the attendee already has a reservation, so their own hold is not counted against them. In a browser, the SDK does this for you. On a server, pass deviceId.

Add-on status

statusWhat it means
AVAILABLEAttendees can buy it.
SOLD_OUTquantityLeft is 0. It can become available again if another attendee's hold expires.
COMING_SOONThe event is not on sale yet.
SALES_CLOSEDThe event has closed, or the add-on's deadline has passed.

When more than one applies, you get the first one in this order: SOLD_OUT, COMING_SOON, SALES_CLOSED. Offer only available add-ons, and grey out or hide the rest:

const purchasable = addons.items.filter((addon) => addon.status === 'AVAILABLE')

Closed add-ons stay in the list

An add-on is still listed after its sales close. If you offer every add-on you get back, attendees can pick one that the reservation then rejects with 400.

Show included add-ons

Each ticket from GET /events/{slug}/tickets lists what comes with it in includedAddons. quantity is how many each admission gets.

const { data: tickets } = await client.listTickets('my-event')

for (const addon of tickets[0].includedAddons) {
  showPerk(`${addon.quantity} x ${addon.name}`)
}

The attendee gets these automatically. Don't send them in the reservation.

Sell add-ons with tickets

Send addons next to items when you create the reservation. List each add-on once, and up to 20 add-ons:

const { data: reservation } = await client.createReservation('my-event', {
  items: [{ sku: 'ticket-type-uuid', quantity: 2 }],
  addons: [{ addonId: 'addon-uuid', quantity: 1 }],
})

The reservation prices the whole cart and holds the add-ons along with the tickets. total and totalFees include the add-ons, and addons lists them:

"addons": [
  { "addonId": "addon-uuid", "quantity": 1, "price": 180000, "fee": 20000 }
]

The buyer pays price + fee for each unit. Included add-ons are not listed.

Then create the order as usual. The add-ons go to the email on the order.

Send the whole cart every time

Reserving again replaces the cart. If you leave addons out of a later call, the add-ons are dropped and released. Send both items and addons each time the attendee changes something.

Sell add-ons on their own

Attendees can buy add-ons without a ticket, for example to add parking a week after they bought their ticket. Leave items out and send buyerEmail:

const { data: reservation } = await client.createReservation('my-event', {
  addons: [{ addonId: 'addon-uuid', quantity: 1 }],
  buyerEmail: 'attendee@example.com',
})
  • The add-ons go to buyerEmail, even if the order is created with a different email. Ask for it before you reserve, and reuse it on the order.
  • No ticket is needed, unless the add-on is limited to certain tickets.
  • Promo codes don't apply. They discount tickets only, so sending promoCode with add-ons alone returns 400.
  • Seat Map events work. Their tickets can't be sold through the API, but their add-ons can be sold on their own.
  • Waiting room events don't. They return 403, as they do for tickets.

Reserve from the browser

When a cart has no tickets, and has an add-on that is free or limited to certain tickets, reservations are limited to 30 a minute per IP address. If your server makes these calls, all your attendees share that limit. Over it you get 429, and the message says how many seconds to wait. This 429 may not carry a Retry-After header, so wait at least a few seconds when it is missing.

Add-ons limited to certain tickets

When ticketIds is not empty, the buyer needs one of those tickets:

  • Buying with tickets: one of them must be in the cart. Tickets the buyer already has don't count.
  • Buying add-ons alone: buyerEmail must already hold one of them.

Otherwise the reservation returns 400. In your cart, only offer these add-ons once a matching ticket is picked:

const cartTicketIds = cart.items.map((item) => item.sku)

const offered = addons.items.filter(
  (addon) =>
    addon.status === 'AVAILABLE' &&
    (addon.ticketIds.length === 0 ||
      addon.ticketIds.some((id) => cartTicketIds.includes(id))),
)

Free add-ons

A free add-on has a price of 0. Sold with tickets, it follows maxPerOrder like any other. Claimed on its own, maxPerOrder is the most one email can claim in total, across all their orders.

A cart with only free add-ons has a total of 0, so the order is confirmed immediately. If a cart mixes free and paid add-ons, and the buyer reaches a free add-on's limit before they pay, the paid add-ons are issued and the free one is left out. Read addons on the order to see what was issued.

When a free add-on is limited to certain tickets, it stays tied to the ticket it was claimed with. If that ticket is refunded or cancelled, the add-on stops working too.

Confirm the purchase

GET /events/{slug}/orders/{reference} lists what was bought in addons. items is empty when only add-ons were bought.

"addons": [
  {
    "addonId": "addon-uuid",
    "name": "Parking",
    "quantity": 1,
    "amount": 200000,
    "formattedAmount": "NGN 2,000",
    "status": "confirmed"
  }
]

An add-on can be refunded on its own. Its status becomes refunded while the order stays confirmed.

On your server, webhooks tell you the same thing:

What was boughtWebhook
Tickets, with or without add-onsTICKET_PURCHASED, with the add-ons in data.addons
Add-ons aloneADDON_PURCHASED

Show QR codes in your app

Attendees get their add-ons by email. If they sign in to your own app, your server can fetch their codes with your private key. See Add-ons on the attendee tickets page.

Errors

StatusWhen
400The cart is empty, an add-on is listed twice, sold out, no longer on sale or no longer available, or the quantity is over maxPerOrder.
400The add-on needs a ticket the buyer does not have.
400Add-ons alone without buyerEmail, or with a promoCode.
400The email has already claimed as many of a free add-on as it can.
400The event is closed or coming soon.
403The event has a waiting room (event_queue_not_admitted).
429Too many requests. Wait for the seconds in Retry-After, or a few seconds when it is missing, then retry.

Most 400 messages are written to be shown to the attendee, for example "Parking is only available with certain tickets". A body that fails validation, such as a badly formed email, returns a technical message instead, so check the fields in your form before you send them.

On this page