Skip to content

Price

One price a thing can be sold at.

Replaces the two types Sessions used to have here — AdmissionTier ("ticket types") and PricingRule ("price rules"). They already answered the same four questions — what it costs, who it is for, when it applies, how many exist — and differed on exactly one thing, which appeared in neither schema: whether the buyer picks it. That is selection.

## How a list resolves to a number

Composition runs in list order, which is the order the operator arranged:

1. Start from a chosen price's amount. A list with no chosen prices sells one seat at the activity's or product's own price, and that is the starting amount instead — which is exactly what a price rule did before the merge, so a list of nothing but automatic prices behaves as it always has. 2. The first matching automatic price whose amountMode is fixed replaces that amount. Later fixed ones are ignored, so putting the member price above the early-bird price is how an operator says which one a member buying early gets. 3. Every matching amountOff / percentOff price then applies in order to the running amount, clamped at zero. These stack: "−$5 members" and "−15% early bird" both land.

Fields

idID!
selectionPriceSelection!

Whether the buyer picks this price, or it applies on its own.

nameString!

Resolved for the given locale, falling back to English. Defaults to the viewer's locale.

Arguments (1)
localeLocale
descriptionString
Arguments (1)
localeLocale
amountModePriceAmountMode!

How amount reads. Always fixed on a chosen price — a price the buyer picks is a number, not an adjustment.

amountInt!

Cents for fixed and amountOff; a whole percentage from 1 to 100 for percentOff.

feeAmountInt!

Cents charged on top of amount for every seat sold at this price — the $6 in "$69 + $6 facility fee". 0 when there is none, and always 0 on an automatic price. Automatic prices and discount codes adjust the ticket and never the fee. Not part of amount; already part of effectiveAmount.

feeNameString

What the buyer sees the fee called, e.g. "Facility fee". Null exactly when feeAmount is 0. Resolved for the given locale, falling back to English.

Arguments (1)
localeLocale
feeEntitlementPolicyPriceFeeEntitlementPolicy!

Who pays feeAmount on a seat a pass or membership pays for. covered — the pass or membership covers the whole seat, fee included — unless the operator chose otherwise. Always covered when feeAmount is 0.

audiencePriceAudience!

Who this price is for.

audienceMembershipMembership

The membership audience: specificMembership names. Null for every other audience.

availableFromDateTime

On sale from this instant, inclusive. Null means either no lower bound, or one written relative to the start — see availableFromBeforeStart.

availableFromBeforeStartPriceOffset

How long before the start this goes on sale, when the window's lower bound is written relative to what is being sold rather than as a date. Null when it is a date, or when there is no lower bound at all.

availableUntilDateTime

On sale until this instant, inclusive. Null means either no upper bound, or one written relative to the start — see availableUntilBeforeStart.

availableUntilBeforeStartPriceOffset

How long before the start this comes off sale. The relative half of availableUntil, and the form an activity-level list usually wants: "until two weeks before" says the same thing about every session in a season, where a date says it about one.

allocationInt

Seats sellable at this price. Null draws on the session's shared capacity. Always null on an automatic price, which sells nothing of its own.

maxPerOrderInt

Most of these one order may buy, in tickets — a multiple of quantityStep. Null is unlimited.

admissionsPerUnitInt!

Always 1: every ticket admits one person. A group is a per-person price sold in sets — see quantityStep.

Deprecated. Always 1. A group is a price sold in sets; read quantityStep.
quantityStepInt!

How many of these a buyer picks at a time: 1 for an ordinary ticket, 4 for a group rate sold in sets of four ("Group of 4 – Late (10% off)", picked 4, 8, 12…). Everything else is per ticket: amount, feeAmount and effectiveAmount are each ticket's, so a set costs effectiveAmount × quantityStep; allocation, available and maxPerOrder count tickets; and each ticket is one person's, shared and checked in on its own. A buyer gives tickets back a whole set at a time, or what's left of a set some of whose tickets were shared away. Always 1 on an automatic price.

availableInt

Seats still available, once what has been sold is taken off. Null when the price has no allocation of its own — the answer then belongs to the session. Counts tickets, so a price sold in sets of 4 with available: 6 has one set left.

onSaleBoolean!

Whether a buyer could pick this right now: active, inside its on-sale window, and with allocation left for at least one set (quantityStep). Always false for an automatic price, which never appears in the picker.

saleStatusPriceSaleStatus!

Where this price stands in its sale right now, so a picker can say why a tier it lists cannot be picked. Always onSale exactly when onSale is true. Meaningless on an automatic price, which reports paused.

showWhenClosedBoolean!

Whether this stays on the buyer's picker once it closes — saleStatus soldOut or ended — shown greyed as "Sold out" or "Sales ended" in its place, rather than leaving the list. A tier that has not opened yet, or a paused one, is never listed either way. On unless the operator turned it off.

effectiveAmountInt!

What a buyer pays for one of these right now, after every matching automatic price in the same list has applied, including the per-ticket feeAmount — the all-in price a seat can actually be had for, which is the one to show as the headline. Equal to amount + feeAmount when nothing adjusts it, and meaningless on an automatic price, which returns its own amount.

effectiveAmountTiers[PriceTier!]!

Forward-looking timeline of what one of these costs, current step first and each step including feeAmount — the per-ticket-type version of the activity- and product-level PriceTier lists. A single step (with a null until) means nothing is scheduled to change. Empty on an automatic price.

appliesToPriceAppliesTo!

What an automatic price adjusts. Meaningless on a chosen price.

targets[Price!]!

The chosen prices this automatic price adjusts, when appliesTo is selected. Empty otherwise — all needs no list.

Used in