---
title: "Season picker"
description: "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."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.seatlayer.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Season picker

`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](/integrations/seasons/) for Plan publication,
rehearsal, checkout, booking, rights, and renewal, or the
[Seasons API](/server-api/seasons/) for exact trusted operations.

This is different from a [Performance Group](/buyer-sdk/performance-groups):
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.

> **Released Season buyer boundary**
>
> Season selection is in `@seatlayer/js`, `@seatlayer/react`, `@seatlayer/vue`,
> and `@seatlayer/angular`, and requires `0.72.1` or later. The package step,
> the event picker's map and cart, `package`, `priceTypes`, and
> `ticketsByEmail` described here need `0.110.0` or later. `markBooked()`,
> `buyerEmail` and `buyerName` need `0.110.1`.
> Season Best Available, `holdBestAvailable()`, is on all four packages in
> `0.110.0` (on `@seatlayer/js` since `0.73.0`). React Native, Flutter, iOS,
> and Android do not expose a native `SeasonPicker`. Organizers can create and
> run Seasons from the dashboard's **Seasons** page, or through the documented
> API and server SDKs.

| 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, memberships, and subscriptions with future renewal | One seat package for the complete published Plan |

> **Who takes the money**
>
> The picker creates an atomic same-seat hold either way. With **SeatLayer
> checkout** (`checkout: 'hosted'`, `@seatlayer/js` `0.81.0` or later), the
> picker takes payment through the organizer's connected payment gateway, and
> SeatLayer owns the order, a ticket for every date, and refunds. It needs a
> package price stored for the Season; without one, the picker stays on your
> own checkout rather than ask the buyer to pay nothing. With **your own
> checkout** (the default, `'handoff'`), your trusted server owns package
> pricing, discounts, member benefits, checkout, payment, commercial orders,
> tickets or passes, refunds, and customer support.

## 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](#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:

```bash
npm install @seatlayer/js
```

```ts title="browser/season-picker.ts"
import { SeasonPicker } from "@seatlayer/js";

const picker = new SeasonPicker({
  container: "#season-picker",
  season: "sea_main_stage_2027",
  buyerAccessTokenProvider: async ({ planActivationId }) => {
    // planActivationId is set once the buyer chooses another package on step 1:
    // mint the session for that package.
    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) => {
    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:

```ts title="browser/season-popup.ts"
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](#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`](/server-api/seasons/#adult-and-child-prices)),
or mint one session per package and let your page choose.

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

```ts
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:

```ts
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:

```ts
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 token you mint yourself (`buyerAccessToken`, or
`buyerAccessTokenProvider`) is bound to one package, so the picker ignores
`package` with 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.

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.

```ts title="browser/season-best-available.ts"
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

```bash
npm install @seatlayer/react
```

```tsx title="components/SeasonSeats.tsx"
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](#core-options) 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

```bash
npm install @seatlayer/vue
```

```vue title="components/SeasonSeats.vue"
<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`. 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`,
`enable3D` and `onHoldExpired`, need `@seatlayer/js` or React.

## Angular

```bash
npm install @seatlayer/angular
```

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

```html title="season-seats.component.html"
<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](#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**: in `0.110.1` the CDN build's `seatlayer.SeasonPicker` does
  not have `markBooked()`. 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](/server-api/seasons#buyer-session-inspect-book-cancel)
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](#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](#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. |
| `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](#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. |
| `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. |
| `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](#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`](/buyer-sdk/seat-picker/). |
| `max3DSeats` / `seatView` | picker options | The 3D seat limit and the view from the seat, as on `SeatPicker`. |
| `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](#vue) and [Angular](#angular).

Source: https://docs.seatlayer.io/buyer-sdk/seasons/index.mdx
