Business
Fields
idID!nameString!Resolved for the given locale, falling back to English. Defaults to the viewer's locale.
Arguments (1)
localeLocalehandleString!URL-safe handle used as the first path segment in public and admin URLs (e.g. still-water-yoga-demo).
staffMembersStaffMemberConnection!Staff members of this business. Cursor-paginated; default page size 50, clamped to [1, 100]. Sort order is name ASC, id ASC. Passing filter.query matches the staff member's name.
Arguments (3)
bookableActivities[Activity!]!Booking activities (structure: booking) that currently accept online bookings — those with availability windows configured. Drives the public booking calendar's chooser. Empty when the appointments feature is off or the business has no booking activities.
activitiesActivityConnection!Activities offered by this business. Cursor-paginated; default page size 50, clamped to [1, 100]. Sort order is createdAt DESC, id ASC. filter.query matches the activity's name (case-insensitive). The array filters (types, structures, registrationStatuses) AND together — passing two structures returns activities matching either one; passing both a structure and a type returns activities matching both. startAfter / endBefore filter on the activity's startDate / endDate columns directly.
Arguments (3)
scheduledSessionsSessionConnection!Cursor-paginated sessions across all activities in this business, for the all-sessions admin list. Supports the same starting filter as sessions, plus filters for activity, staff member, time-of-day, and a free-text query against session/activity name.
Order defaults to startAt ASC, id ASC; pass sort: startDesc to return the most recent sessions first. Default page size 50, clamped to [1, 100].
Arguments (5)
recommendedScheduleViewScheduleView!The calendar view this business's schedule should open on by default, derived from upcoming session density over the next ~4 weeks (in the business's local timezone): DAY when there are generally more than two sessions on the days that have sessions, else WEEK when there are generally more than two per week on weeks that have sessions, else MONTH. Anonymous-queryable — used for the public schedule's SSR default, the <sessions-schedule view="auto"> embed, and the copy-pasteable embed snippet baked in the admin + developer docs.
productsProductConnection!Products sold by this business — passes, memberships, gift cards, and physical products in a single mixed list. Cursor-paginated; default page size 50, clamped to [1, 100]. Sort order is products.createdAt DESC, products.id ASC so newly-created products surface first regardless of subtype.
filter.query matches the product's display name across all subtype tables (case-insensitive). filter.types restricts the result to one or more product subtypes — pass null or omit for the union.
By default the list only contains products available to the current viewer — intro offers drop out once the viewer has purchased from this business — so shopper-facing surfaces can't surface offers the viewer isn't allowed to buy. Management surfaces pass availability: all.
Arguments (4)
locationsLocationConnection!Physical locations this business uses to host activities. Cursor-paginated; default page size 50, clamped to [1, 100]. Sort order is the primary location first, then name ASC, id ASC, so locations(first: 1) is the primary when the business has one. filter.query matches the location's name.
Arguments (3)
stripeBusinessStripe!Stripe Connect integration state for this business.
brandBusinessBrand!Brand configuration including icon and computed theming tokens.
channelsBusinessChannels!Channel configuration: surfaces through which a business's customers can reach it. Sensitive fields (e.g. embed origins) are gated to staff.
Public only for public.privacy: the embeds read it to decide whether the viewer's account links can land on the business's own page on Sessions. Every other channel field stays internal.
shopSectionImages[HomeBlockImage!]!Photos for the shop's section headings, in the order the sections take them: the business's own gallery (the photos of its home page's visible media carousels). The same list as the products block's sectionImages, for readers of the public API (the products embed).
emailMarketingBusinessEmailMarketing!Email-marketing consent collection settings. Off by default; governs whether the standardized opt-in is presented on registration and checkout.
viewerEmailMarketingConsentEmailMarketingConsentStatusThe signed-in viewer's own marketing-consent status with this business, or null when they are signed out, have no participant record, or were never asked. Lets the registration / checkout opt-in hide itself once the viewer has already subscribed. withdrawn when their record reads granted but their own unsubscribe still stops mail to its address, since nothing reaches them; granting again through setMyEmailMarketingConsent lifts it. Only ever the viewer's own status — never another participant's.
viewerEmailMarketingConsentWithdrawalEmailMarketingConsentWithdrawalWhy viewerEmailMarketingConsent reads withdrawn, when the viewer did it somewhere other than the toggle that shows it: emailUnsubscribe when their own unsubscribe from one of the business's emails stops mail to the record's address, and granting through setMyEmailMarketingConsent would lift it. Null otherwise: subscribed, withdrawn from the toggle itself, or signed out. Lets the toggle say why it's off. Only ever the viewer's own.
viewerSmsRemindersViewerSmsRemindersThe signed-in viewer's own number and text-reminder consent with this business, or null when signed out. Lets checkout offer "Text me reminders" with the number filled in, and leave it out once they have agreed. Only ever the viewer's own.
viewerEligibleForIntroOffersBoolean!Whether the signed-in viewer can still buy this business's intro offers — false once they have any prior purchase here (intro offers are first-purchase-only). true when signed out or with no prior purchase. Lets a public catalog fetched with availability: all (viewer-independent, so it can be cached) hide intro offers client-side for ineligible viewers, matching what availability: available would have filtered server-side. Only ever the viewer's own eligibility.
contactBusinessContact!Customer-facing contact details surfaced in transactional emails and on the business's public surfaces. Email falls back to the owner's email when not explicitly set.
localizationBusinessLocalization!Localization configuration. Anchors all calendar-relevant rendering (schedule strip, week boundaries, session times, registration close-time math, exports, calendar feeds) to a canonical timezone so SSR HTML and client first paint agree regardless of the visitor's browser timezone.
guestCheckoutEnabledBoolean!Whether visitors can pay for activity bookings and product purchases (other than passes/memberships) without signing in. Passes and memberships always require an account regardless of this flag.
Public because the surfaces that sell are not all first-party: the schedule embed lives on the business's own site and has to know whether it may take an anonymous buyer's money, exactly as the public sheet does. Leaks nothing a visitor cannot already read off the checkout it gates.
pastScheduleVisibilityBusinessVisibility!Whether sessions that have already happened, and activities that have ended, stay on the business's public surfaces — the Sessions Go page, the schedule embed, the public API and the MCP tools alike. visible (the default) keeps the public schedule browsable into the past. hidden floors every public read at the start of the business's current local day: the schedule cannot page back before today, a past session's or ended activity's permalink resolves as not found, and only what is still coming up is returned. Staff keep the full history on the admin surfaces, and a person who booked a past session keeps reaching it through their own account (Me.bookings) and by its permalink — this governs only the anonymous/public path.
Public for the same reason guestCheckoutEnabled is: the schedule embed on a business's own site has to know where its calendar may page back to.
taxAddedAtCheckoutBoolean!Whether prices shown on this business's public surfaces are pre-tax amounts that will have sales tax added at checkout. True when tax collection is effectively enabled, prices display tax-exclusively, and (on the sessions engine) the business holds at least one collecting registration. A soft display hint only — the checkout preview remains the authority on whether a given sale is actually taxed, since taxability also depends on the item's category and the sale's jurisdiction. Leaks nothing beyond "prices may not be final".
hasDiscountsBoolean!Whether this business has any active discount codes a customer could redeem at checkout. Used by public checkout UIs to suppress the "Add discount" action for businesses that have none. Does not leak which codes exist — callers still have to type a code and submit it.
hasGiftCardsBoolean!Whether this business sells at least one gift card product that a customer could buy. Used by public checkout UIs to suppress the "Add gift card" action for businesses that do not run gift cards. Does not leak which products exist or whether any redeemable balances are in circulation.
hasPassesBoolean!Whether this business has at least one visible (purchasable) pass. Used by the public business pages to decide whether to surface the products tab and the account "passes" section without paying for the full products query up front. Hidden and soft-deleted passes do not count.
hasMembershipsBoolean!Whether this business has at least one visible (purchasable) membership. Used by the public business pages to decide whether to surface the products tab and the account "passes" section. Hidden and soft-deleted memberships do not count.
hasPhysicalProductsBoolean!Whether this business has at least one visible (purchasable) physical product. Used by the public business pages to decide whether to surface the products tab. Hidden and soft-deleted products do not count.
structures[ActivityStructure!]!Activity structures (class, league, etc.) the owner indicated this business runs. Captured at creation; drives home-page tailoring and defaults. Empty list means no preference. Public: the products embed words its shop in the business's vocabulary ("Class passes").
hasOpenLeaguesBoolean!Whether this business has at least one league currently open for registration (an open, non-full division accepting teams or individuals). Query-driven — unlike onboarding structures, it stays correct when a classes-first business later adds a league, so the public home page can surface the leagues section. Always false when the leagues feature is off.
activityTypes[ActivityType!]!Activity types (sports/disciplines) the owner indicated this business offers. Captured at creation; drives home-page tailoring and defaults. Empty list means no preference.