Skip to content

Season picker

Let a buyer choose a Season package with its dates and prices, pick one seat for every performance, and pay through SeatLayer or your own checkout.

Updated View as Markdown

SeasonPicker sells a Season: a fixed run of 2–25 performances that share one published seating chart. The buyer chooses a package, picks seats once, and keeps those exact seats for every performance in the package.

Use this page for picker configuration and behavior. Follow the end-to-end Season integration for Plan publication, rehearsal, checkout, booking, rights, and renewal, or the Seasons API for exact trusted operations.

This is different from a Performance Group: a Season has an immutable published Plan, durable Seat Rights for incumbents, and renewal offers. A buyer cannot remove dates or choose a different seat for each performance.

Product Best suited to What the buyer chooses
Single Event One show, match, or screening Seats for that Event
Performance Group A short run or flexible multi-date bundle Same seats across a run, or an equal party size per date
Season Theatre, sports and subscriptions with future renewal One seat package for the complete published Plan

What the buyer sees

The picker uses the event picker’s own box, map, and cart, with three steps in its header: Package, Seats, Pay.

  1. Package. The Season’s packages, each with its dates and its lowest price per seat, and what the buyer gets: the same seat at every date in the package, and one payment. The buyer chooses a package, then Choose seats. Step 1 lists a package only when the Season has a price stored for it (see Prices).
  2. Seats. The chosen package’s map. A seat is free only when it is free on every date in the package; a seat free on some dates only is marked as such and can’t be held. A strip under the header names the package and offers Change package. Changing it asks first, then releases the held seats.
  3. Pay. The held package goes to SeatLayer checkout, or to your onContinue.

The header shows the organizer’s logo and brand colour when they have set them in the dashboard.

JavaScript

Mint a short-lived Season buyer session on your server, then render the picker inline:

npm install @seatlayer/js
browser/season-picker.tsts
import { SeasonPicker } from "@seatlayer/js";

const picker = new SeasonPicker({
  container: "#season-picker",
  season: "sea_main_stage_2027",
  // Open on what the Season's page opens with (map, passes or dates).
  followOpening: true,
  buyerAccessTokenProvider: async ({ planActivationId }) => {
    // planActivationId is set once the buyer chooses another package on step 1:
    // mint the session for that package. On the first call it can be undefined:
    // with more than one package on sale, your server names one (see below).
    const response = await fetch("/api/seatlayer/season-access", {
      method: "POST",
      credentials: "same-origin",
      cache: "no-store",
      headers: { "content-type": "application/json" },
      body: JSON.stringify({ planActivationId }),
    });
    if (!response.ok) throw new Error("Unable to open Season seat selection");
    return response.json(); // { token: "bss_…", expiresAt }
  },
  onHold: (handoff) => {
    // Persist operationId so the same hold can be recovered after a lost response.
    sessionStorage.setItem("seasonOperationId", handoff.operationId);
  },
  onContinue: (handoff) => {
    if (handoff.dates) {
      // Single dates (`singleDates: true`): the hold is the run's and names no
      // pass (`planActivationId` is ''). Send the dates hold.
      beginCheckout({ season: handoff.seasonKey, operationId: handoff.operationId, dates: handoff.dates });
      return;
    }
    beginCheckout({
      season: handoff.seasonKey,
      holdId: handoff.holdId,
      operationId: handoff.operationId,
      planActivationId: handoff.planActivationId,
    });
  },
  onError: (error) => reportSeatSelectionError(error),
});

await picker.render();

Open it as a popup

SeasonPicker.open() takes the same options without container, opens the picker in the event picker’s popup over your page, and resolves once it has rendered:

browser/season-popup.tsts
document.querySelector("#buy-season")?.addEventListener("click", () => {
  void SeasonPicker.open({
    season: "sea_main_stage_2027",
    buyerAccessTokenProvider: getSeasonBuyerAccess,
    onContinue: (handoff) => beginCheckout(handoff),
    onClose: () => restoreFocusToPage(),
  });
});

The popup closes with its ✕, Escape, a press on the page around it, or picker.close(). If seats are held, it asks once: Release seats, or Keep and close. Opening the same Season again on that page picks a kept hold up, with its seats back in the cart. A kept hold lives in that page’s memory: after a reload, pass the saved operationId as initialOperationId.

With your own checkout, the popup keeps the hold and closes itself right after the buyer presses Continue, and onContinue and onClose fire. The picker is gone at that point, so keep the handoff from onContinue and finish on your server (see Your own checkout). With SeatLayer checkout the payment card opens inside the popup, which stays open until it is closed.

SeasonPicker.open() is in @seatlayer/js and the script tag. The React, Vue and Angular components render inline only.

Prices

Package prices come from the prices the organizer stores for the Season, in the dashboard or through the Seasons API. Step 1 shows each package’s lowest price per seat and a table of prices by area and ticket type; the cart shows each seat’s package price and the total for every date. The picker never shows an Event’s own chart prices, ticket tiers, or totals in Season mode, so they can’t be mistaken for the package price. A Season with no stored prices shows no amounts, and your server prices the package.

Step 1 offers only the packages that have a stored price. A package with no price is left off, and package cannot open it: the picker opens on the default package instead. With no price stored for any package, step 1 shows the Season’s dates without a package choice, and the buyer gets the default package, or the one your session is bound to. So on your own checkout, store a price for every package you want the buyer to choose from (the Sell tab, or PUT /v1/seasons/:key/plans/:planKey/prices), or mint one session per package and let your page choose.

To sell child or concession seats too, name the price types:

const picker = new SeasonPicker({
  container: "#season-picker",
  season: "sea_main_stage_2027",
  buyerAccessTokenProvider: getSeasonBuyerAccess,
  priceTypes: ["adult", "child"],
});

Each seat in the cart then offers the types the package prices for that seat’s category, at that type’s price. The hold and the handoff’s seats carry each seat’s priceTypeKey. To hold seats from your own code, name the types by label; a label you leave out is adult:

await picker.holdSameSeat(["A-1", "A-2"], `sop_${crypto.randomUUID()}`, { "A-2": "child" });

Choosing the package

The picker opens on step 1 at the Season’s first package. Pass package with a package’s key (as shown in the dashboard) to open on that one instead:

await new SeasonPicker({ container: "#season-picker", season: "sea_main_stage_2027", package: "spl_half_season" }).render();

A key that isn’t on sale, or a package with no stored price, opens on the first package. A static buyerAccessToken is bound to one package, so the picker ignores package with it. With buyerAccessTokenProvider, the picker reads the Season’s packages without a session and passes that package’s planActivationId to your provider’s first call. That read needs no session, so it answers only for a public Season. On a Season that is not public (a presale, member or partner audience), package is not used: the first call has no planActivationId, and your server must name the package on it.

With no token, as above, the picker opens a public session by itself. That works when the Season’s audience is public, its sales are open, and the page’s origin is saved under Developer → Embed → Embed domains. Otherwise onAccessUnavailable fires with the reason: audience_not_public, sales_not_open or origin_not_allowed. A presale, member or partner audience needs a session you mint. When the buyer chooses another package on step 1, the picker asks your buyerAccessTokenProvider again with that package’s planActivationId, and the session you mint must be bound to it.

When the provider’s call has no planActivationId and the Season has more than one published package, your server must send one with the mint: a package’s activationId from plans on GET /v1/seasons/:key, usually the one step 1 should open on. A mint without it answers 409 plan_selection_required, and the picker cannot open. With one published package, leave it out.

If your own checkout emails the buyer a ticket for every date, pass ticketsByEmail: true and step 1 says so. SeatLayer checkout says it without the option.

Best Available for a Season

holdBestAvailable(qty, operationId, options?) asks SeatLayer for the best qty seats that are free on every performance in the Plan, then holds them exactly as a map selection would. It resolves to the same SeasonCheckoutHandoff that onHold receives.

browser/season-best-available.tsts
const handoff = await picker.holdBestAvailable(2, `sop_${crypto.randomUUID()}`, {
  categoryKey: "stalls",        // optional
  zoneId: "zone_lower",         // optional
  accessibility: ["wheelchair"], // optional, any-of across every Event
  requireContiguous: true,      // refuse scattered seats when no block of 2 exists
});
sessionStorage.setItem("seasonOperationId", handoff.operationId);
  • operationId must start with sop_ and stay the same on a retry, so a lost response recovers the same hold instead of creating a second one.
  • qty is 1 to 10 seats per call, and never more than maxSelection.
  • One call runs at a time. A second call while the first is pending fails with season_best_available_in_progress.
  • The server route is POST /pub/seasons/:key/best-available, using the same Season buyer session as the picker.
  • The React SeasonPickerHandle, the Vue component ref, and the Angular component expose the same call.
  • In 0.110.1 it needs the seat map: call it after the buyer has pressed Choose seats, or on a picker that opened straight on the map (initialOperationId). On step 1 it throws “render SeasonPicker before using it”. The same goes for holdSameSeat(), restoreOperation(), release(), markBooked() and createRenewalIntent().

React

npm install @seatlayer/react
components/SeasonSeats.tsxtsx
import { SeasonPicker } from "@seatlayer/react";

export function SeasonSeats() {
  return (
    <SeasonPicker
      season="sea_main_stage_2027"
      buyerAccessTokenProvider={getSeasonBuyerAccess}
      priceTypes={["adult", "child"]}
      maxSelection={4}
      onContinue={(handoff) => beginCheckout(handoff)}
    />
  );
}

The React component mounts and destroys the canonical JavaScript picker. It does not duplicate Season inventory logic, and an inline priceTypes array does not rebuild the picker on every render.

It takes every option except container. These callbacks are always the latest you passed: buyerAccessTokenProvider, onHold, onHoldChange, onContinue, onRenewalIntent, onAccessExpired, onAccessUnavailable, onStatusChange and onError. Every other option and callback, onOrderConfirmed and onHoldExpired included, is read when the picker mounts, so pass stable functions for those.

Vue

npm install @seatlayer/vue
components/SeasonSeats.vuevue
<script setup lang="ts">
import { SeasonPicker } from "@seatlayer/vue";
</script>

<template>
  <SeasonPicker
    season="sea_main_stage_2027"
    :buyer-access-token="session.token"
    :price-types="['adult', 'child']"
    @continue="handoff => beginCheckout(handoff.operationId)"
  />
</template>

The Vue component takes season, api-base, public-key, checkout, return-url, buyer-email, buyer-name, buyer-access-token-provider, buyer-access-token, initial-operation-id, package, tickets-by-email, recovery-timeout-ms, fetch and price-types, and since 0.112.0 enable3D, enable3DCrowd and touchNavigation3D. Bind enable3D and enable3DCrowd with a colon, as in :enable3D="false": without the colon the string "false" counts as true. touchNavigation3D="classic" is a plain string. Write the names in camelCase; enable-3d is not the prop. It emits hold, hold-change, continue, renewal-intent, access-expired, access-unavailable, order-confirmed, status-change and error. The other options in the table below, such as maxSelection, theme, locale and onHoldExpired, need @seatlayer/js or React.

Angular

npm install @seatlayer/angular

Import SeatLayerSeasonPickerComponent into a standalone component or NgModule, then render its seatlayer-season-picker selector:

season-seats.component.htmlhtml
<seatlayer-season-picker
  #seasonPicker
  season="sea_main_stage_2027"
  [buyerAccessToken]="session.token"
  [priceTypes]="['adult', 'child']"
  (continued)="beginCheckout($event.operationId)"
/>

The Angular component takes the same inputs as Vue, in camelCase, and emits hold, holdChange, continued, renewalIntent, accessExpired, accessUnavailable, orderConfirmed, statusChange and errored. Its methods are the ones in Methods.

All four browser/framework packages use the same protected Season protocol and return the same opaque, price-free handoff.

Checkout boundary

With SeatLayer checkout (checkout: 'hosted'), none of the steps below are yours: the picker collects the buyer’s email, SeatLayer books the hold once the payment lands, and onOrderConfirmed fires with the paid order. A Season set to your own checkout reports checkoutMode: 'server' and stays on 'handoff'.

If your page already knows the buyer, pass buyerEmail and buyerName, and the payment card opens with both filled in. The buyer can still change them.

Bringing the buyer back after paying

A gateway that sends the buyer to its own page sends them back to returnUrl only when all of these are true. Otherwise SeatLayer drops it without an error: the order still completes, and the buyer finishes on SeatLayer’s season page.

  • It is an absolute https:// (or http://) URL. A path like /members is dropped.
  • Its origin is saved under Developer → Embed → Embed domains, or it is your own https://<slug>.seatlayer.events page.
  • It is on the same origin as the page that runs the picker. The picker keeps the order being paid for in that browser tab, and only a SeasonPicker on that origin can confirm it and call onOrderConfirmed.

From 0.110.1, the picker says in the browser console when it can tell that returnUrl won’t bring the buyer back. In test mode it also reminds you that the origin must be saved under Embed domains, because the browser can’t check that list.

Your own checkout

With your own checkout, treat the browser handoff as an inventory reference, not proof of purchase:

  1. Mint the bss_… session on your trusted server for the exact Season, published Plan, environment, and browser origin.
  2. Let SeasonPicker create one all-or-nothing hold for the selected labels across every included Event.
  3. Inspect that operation from your server and calculate the authoritative package price and benefits. The inspection is identity-only: it includes Event, seat, category, optional tier, and quantity, never an amount.
  4. Take payment in your platform.
  5. Book the same operation with a caller-stable action ID and your bookingRef.
  6. Issue the pass or tickets only after booking reaches a terminal success.
  7. Call await picker.markBooked() in the browser.

markBooked() (0.110.1) tells the picker your server has booked. It reads the operation back from SeatLayer and, when it is booked, shows the booked screen, stops the hold timer, and calls onHoldChange(null). It resolves true. It resolves false and changes nothing when nothing is held or the operation isn’t booked yet. The React handle, the Vue component ref, and the Angular component have it too.

Call it on the picker that made the hold:

  • Inline (render()), from @seatlayer/js or a framework package: call it once your server has booked.
  • Popup (SeasonPicker.open()): the popup closed itself after Continue, so there is no picker to tell. Show your own confirmation. If the buyer opens the Season again on that page, the booked hold is not put back in the cart.
  • Script tag: the CDN build’s seatlayer.SeasonPicker has markBooked() since 0.112.0, so a page on seatlayer-js@1 has it. A page pinned to 0.110.1 or 0.111.0 does not: move the pin, or use @seatlayer/js from npm or a framework package, where the page needs the booked screen.

On your own checkout, the booked screen says the tickets are confirmed and promises no email: your platform sends the confirmation.

See the Seasons server API for mint, inspect, book, cancellation, renewal, and recovery operations.

Important behavior

  • Availability is the intersection across the complete published Plan. A seat unavailable on one performance is unavailable for the Season.
  • Holds are atomic: every allocation succeeds or none is presented as held.
  • operationId and release/book action IDs are caller-stable recovery keys.
  • onHold means inventory is temporarily held. onContinue means the buyer pressed the explicit checkout action. Neither means payment or booking.
  • The buyer picks exact seats on the map. To let SeatLayer choose, call holdBestAvailable().
  • Step 1 says On sale only while the Season is selling. Before sales open, or with a session you mint during renewals, it says the Season isn’t on sale right now, and a hold is refused with that same sentence.
  • createRenewalIntent(offerId) records intent only. With your own checkout, your platform confirms renewal price, payment, order, and fulfilment. With SeatLayer checkout, holders renew and pay on the SeatLayer page linked from their renewal email.

Methods

Method What it does
render() Draws the picker in container and resolves once step 1 shows (or the map, for initialOperationId).
SeasonPicker.open(options) Static. Opens the picker in a popup and resolves with it once rendered. @seatlayer/js and the script tag only.
holdSameSeat(labels, operationId, priceTypes?) Holds the named seats on every date. operationId starts with sop_ and stays the same on a retry.
holdBestAvailable(qty, operationId, options?) Holds the best qty seats free on every date. See Best Available for a Season.
restoreOperation(operationId) Picks up a hold that is still alive on SeatLayer, for example after a reload. Resolves the handoff, or null when that hold has ended. initialOperationId does the same at render.
markBooked() Your server booked the hold: shows the booked screen. See Your own checkout.
release(releaseActionId) Releases the held seats on every date. Send a caller-stable releaseActionId. Resolves without a request when nothing is held.
createRenewalIntent(offerId) Records a holder’s intent to renew a sro_… offer. No purchase is made in the browser.
getHeldOrder() Since 0.111.0. The held seats as the picker’s own cart prices them, for your own order summary: { operationId, expiresAt, currency, seats, totalMinor }. Each seat has its label, section, row, seat, area, priceType and priceMinor (minor units). totalMinor is null when a seat has no package price. null while nothing is held. For display only: your server still prices the order. The React handle, the Vue ref and the Angular component have it too.
getDescriptor() / getAvailability() / getHandoff() The loaded Season, its availability, and the current hold’s handoff. null before render() resolves and after destroy(); getHandoff() is also null while nothing is held.
close() In a popup, the same as its ✕. Inline, the same as destroy().
destroy() Removes the picker. Safe to call twice. It does not release held seats: call release() first when the buyer is giving them up. Afterwards the getters answer null and the other calls throw “SeasonPicker was destroyed”.

In 0.110.1, the calls that act on a hold need the seat map (see Best Available for a Season).

Core options

Option Type Notes
container string | HTMLElement Required JavaScript mount target. Not used by SeasonPicker.open().
season string Required sea_… key with a published Plan.
buyerAccessTokenProvider (context) => Promise<{ token, expiresAt }> Preferred origin-bound credential refresh path. context.planActivationId names the package once the buyer chooses another one.
buyerAccessToken string | { token, expiresAt } Non-refreshing alternative, bound to one package.
package string The package to open on, by its key. Ignored with your own token.
followOpening boolean Since 0.118.0: open on what the Season’s page opens with: the map, the passes, or its dates first (on a picker that sells single dates; otherwise the passes). Off by default: every Season opens on the package step.
priceTypes SeasonPriceType[] Ticket types to sell, for example ['adult', 'child']. Absent or ['adult']: every seat is adult.
ticketsByEmail boolean Your checkout emails a ticket for every date, so step 1 says so.
maxSelection number Maximum seats in one Season package hold.
initialOperationId string Restores the same accepted or pending hold after interruption.
initialView / enable3D / theme picker options Reuses the standard chart presentation controls, including theme.mode and theme.modeMap (SeatPicker).
testChip false Since 0.118.1: hides the map’s Test mode chip on a Season in test mode, for a page that says test mode itself. @seatlayer/js and React; the Vue and Angular components don’t take it yet. See the example below.
telemetry boolean Since 0.118.1: false and the page sends SeatLayer no load or error reports (/pub/telemetry/*). @seatlayer/js and React; the Vue and Angular components don’t take it yet.
onHold / onHoldChange / onHoldExpired callbacks Observe the opaque inventory handoff and its expiry.
checkout 'handoff' | 'hosted' 'handoff' (default) hands the hold to your checkout. 'hosted' takes payment through SeatLayer checkout when the Season has stored package prices.
returnUrl string checkout: 'hosted' only: where a redirecting gateway sends the buyer back. An absolute URL on this page’s origin, saved under Embed domains. See Bringing the buyer back after paying.
buyerEmail / buyerName string checkout: 'hosted' only: fill in the payment card’s email and name. The buyer can change them.
onContinue callback Start host checkout after the buyer reviews the held package. Fires with either checkout value.
onOrderConfirmed callback checkout: 'hosted' only: the Season order is paid.
onAccessUnavailable callback Season inventory is unavailable and refreshing won’t fix it. A tokenless public embed gets the server’s own reason: audience_not_public, sales_not_open, or origin_not_allowed.
onClose callback SeasonPicker.open() only: the popup closed.
onStatusChange / onError callbacks Present operational and failure states in the host application.
onAccessExpired callback The buyer session expired; the event says whether a refresh from buyerAccessTokenProvider recovered it.
onRenewalIntent callback createRenewalIntent() recorded the intent.
locale / messages / languages / colorblindSafe picker options Language, your own wording, the language switcher and colour-blind-safe seat colours, as on SeatPicker.
max3DSeats / seatView picker options The 3D seat limit and the view from the seat, as on SeatPicker.
enable3DCrowd / touchNavigation3D picker options Since 0.111.0: the crowd in standing areas and the touch gestures in 3D, as on SeatPicker. @seatlayer/js and React; Vue and Angular since 0.112.0.
numberOfPlacesToSelect / selectedObjects / selectableObjects / selectionValidators / confirmSelection picker options Selection rules, as on SeatPicker.
onSelectionChange / onSelectionValidityChange / onBuyerViewChange / onAnalytics callbacks The same events as on SeatPicker.
publicKey string Accepted so one embed snippet fits Events and Seasons. It is not sent and is not needed.
apiBase / fetch / recoveryTimeoutMs advanced Another API origin, your own fetch, and how long the picker waits for a pending hold to settle before it gives up (default 60 seconds).

The React component takes every option above. The Vue and Angular components take the ones listed under Vue and Angular.

Host page options

On a page that says test mode in its own bar, has its own dark ground, and sends no reports to SeatLayer (@seatlayer/js or React, 0.118.1 or later):

browser/season.jsjs
const picker = new SeasonPicker({
  container: "#season-picker",
  season: "sea_main_stage_2027",
  buyerAccessTokenProvider: getSeasonBuyerAccess,
  testChip: false,
  telemetry: false,
  theme: { mode: "dark", modeMap: { dark: "#14161a" } },
});

await picker.render();

What each one does, and its limits, is on SeatPicker.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close