Skip to content

Query

Fields

previewCheckoutCheckoutPreview!

Price a basket without minting anything. Takes the same items checkout does, so what a buyer previews and what they are charged cannot disagree — hand taxCalculationId back to checkout to be charged the figure shown.

Named apart from the legacy checkoutPreview only while both exist; that one goes when its callers move over.

Arguments (13)

What is being bought.

Guest details, for a checkout with no signed-in viewer.

discountCodeString
giftCardCodeString
tipAmountInt
donationAmountInt

An optional gift to the business, in cents, added after tax beside the tip and never taxed. Refused unless every activity in the basket has RegistrationConfiguration.acceptsDonations on.

taxCalculationIdID

The tax quote the buyer was shown, handed back so they are charged what they saw rather than a freshly recomputed figure.

authorizeBalanceCardBoolean

The buyer agrees this order's balance may be charged to the card they are paying with, once the service has been delivered.

Only meaningful on a checkout that leaves a balance — a deposit. Omitted or false, the order keeps no card and the balance is collected the way every other one is: a card at the desk, the emailed link, or cash. An absent value is a no, never a default yes.

recurringConsentAcceptedBoolean

The buyer agrees to be charged again for each membership in the basket, at its price, every billing cycle, until they cancel.

Required — and must be true — for a basket holding a membership with a price: the order pays for the first period, and the card it is paid with is kept and charged for every period after. An absent value is a no, and the checkout is refused. Ignored for a basket with no membership in it.

attributionAttributionInput
idempotencyKeyString

Client-supplied key that makes a retried mint return the original order instead of minting a second one.

purchasePurchase

One order, by id. Readable by its buyer, and by anyone holding the id for an anonymous checkout — which is what lets a guest see their own receipt.

Arguments (1)
idID!
bookingBooking

One booking, by id.

Arguments (1)
idID!
servicesServices!

Third-party service configuration (Stripe keys, Mapbox tokens, etc.).

meMe

The currently authenticated user and their passkeys.

businessBusiness
Arguments (2)
idID
handleString
sessionSession
Arguments (1)
idID!
staffMemberStaffMember

One staff member of the business the request is scoped to (the @handle whose page is being viewed) — how a public profile sheet fetches the schedule behind a staff member it only knows the id of, without the page query carrying every member's sessions up front. Null when the request has no business scope, or the id belongs to another business or a removed member.

Arguments (1)
idID!

One production of the business the request is scoped to (the @handle whose page is being viewed) — a public performing-arts or cinema activity — with its poster, facts, ticket price range and its whole upcoming run of showtimes (the next 120 at most), for the production sheet. Null when the request has no business scope, or the id is not a listed or unlisted (never an internal) production of that business. The public site and the embeds' production sheet read it.

Arguments (1)
idID!
bookingActivitySlots[AppointmentSlot!]!

Open, bookable increments for a structure: booking activity within the [from, to] window — the activity's weekly windows minus the assigned resource's commitments, honoring its booking notice + advance window. Each slot is one increment; customers compose a longer booking from a contiguous run (bounded by minIncrements/maxIncrements). Empty when the activity isn't bookable or the appointments feature is off.

For a services-priced activity pass the selected services: each returned slot is then a valid appointment start spanning the selection's full derived duration (the summed service durations rounded up to the slot increment), so only starts whose whole run is open are returned.

Arguments (4)
activityEntityRef!
services[EntityRef!]
bookingActivityNextAvailabilityDateTime

The start of the earliest open booking increment strictly after after (scanning forward up to a bounded horizon), so a booking calendar can jump the customer to the next day/week that actually has availability. Null when there's none within the horizon, the activity isn't bookable, or the appointments feature is off. Pass services for a services-priced activity so the opening spans the selection's full derived duration.

Arguments (3)
activityEntityRef!
afterDateTime!
services[EntityRef!]
productProduct
Arguments (1)
idID!

Global search across Sessions' public surfaces, used by the Cmd-K Go menu's contextual results. Today returns matching businesses; the result type will grow over time to surface favorite instructors, activities, and other public entities alongside without breaking the field name. Each list is capped at first (default 5, max 10); matches are case-insensitive substring matches on the entity's primary text columns. Returns empty lists for an empty query.

Arguments (2)
queryString!
firstInt
pendingSocialSignUpPendingSocialSignUp

The social sign-in waiting on a confirmation in this browser, if any. Only ever non-null right after a popup-blocked social sign-in bounced back with ?confirmSignUp=1: it reads the pending token out of its HttpOnly cookie so the app can ask about the account without the address ever travelling through the URL.