Group options tools
All tool areas. Each tool acts within your access.
Group options
create_group_option
Add a group option to a product, beside its individual tickets: a base charge covering includedSeats, then a rate per person above them up to maxSize, either sharing the session or taking all of it (wholeSession, a private booking: offered only on an empty session, which then closes to everyone else). E.g. "Up to 6" (includedSeats 6, maxSize 6) or a private game (includedSeats 40, wholeSession, no maxSize: up to the session's capacity). A party smaller than includedSeats pays the base charge; minSize (the group minimum) is the smallest party guests can book it for. It isn't offered anywhere until it has a price at a location (set_group_option_price). Price rules never apply to it. Returns a preview to confirm.
Changes · Members of an organization · Needs products:write
Input
productIdThe product's id, from list_products
nameincludedSeatsSeats the base charge covers
descriptionpositionDisplay order among the product's group options
minSizeThe group minimum: the smallest party guests can book it for (at most maxSize); null or 1: any. Staff can book fewer
maxSizeThe largest party it takes (at least includedSeats); null: up to the session's capacity
wholeSessionTake the whole session (a private booking): offered only on an empty session, which then closes to everyone else. Default false: it shares the session
priceIts price at a location where the product is offered, set in the same changeset (needs pricing:write); the same as set_group_option_price afterwards
price.locationIdThe location's id, from get_setup
price.amountThe base charge, covering the option's included seats
price.perPersonAmountPer person above the included seats; null or left out: nobody above them
Output
idproductIdticketTypeIdIts ticket type, which its prices, holds, and bookings refer to
namedescriptionstatuspositionincludedSeatsSeats the base charge covers
minSizeThe smallest party guests can book it for (the group minimum; 1: any); staff can book fewer
maxSizeThe largest party it takes; null: up to the session's capacity
wholeSessionTakes the whole session (a private booking): offered only on an empty session, which then closes to everyone else
pricesprices[]prices[].locationIdprices[].currencyprices[].baseAmountThe base charge, covering includedSeats
prices[].perPersonAmountPer person above includedSeats; null: it takes no one above them there
remove_group_option
Remove a group option from its product. One nobody has held is deleted with its prices, its schedules' own prices for it included (set_schedule_price; the preview lists them), and undoing it brings them all back. One that guests have held or booked is archived instead (no longer offered; its holds, orders, and bookings keep it), and update_group_option with status active brings it back. Returns a preview to confirm.
Changes · Members of an organization · Needs products:write
Input
groupOptionIdThe booking mode's id
Output
groupOptionIdremoved
set_group_option_price
Set a group option's price at a location where its product is offered: the base charge covering its included seats (baseAmount, minor units) and the rate per person above them (perPersonAmount; null or left out: it takes nobody above its included seats there). remove: true stops offering it there. Prices rules never change it, and holds already placed keep their prices. Returns a preview to confirm.
Changes · Members of an organization · Needs pricing:write
Input
groupOptionIdThe booking mode's id
locationIdThe location's id, from get_setup
baseAmountThe base charge, covering the option's included seats
perPersonAmountPer person above the included seats; null or left out: nobody above them
removeStop offering the option at this location
Output
groupOptionIdlocationIdcurrencypriceNull when removed: the option isn't offered there
price.baseAmountMinor units (cents) in the location's currency
price.perPersonAmountMinor units (cents) in the location's currency
description
update_group_option
Change a group option's name, description, display position, terms (includedSeats, minSize (the group minimum for guests), maxSize with null for the session's capacity, wholeSession), or status (archived stops offering it; active brings it back). Holds and bookings already made keep the terms and prices they were made at. Prices are changed with set_group_option_price. Returns a preview to confirm.
Changes · Members of an organization · Needs products:write
Input
groupOptionIdThe booking mode's id
nameincludedSeatsdescriptionpositionDisplay order among the product's group options
minSizeThe group minimum: the smallest party guests can book it for (at most maxSize); null or 1: any. Staff can book fewer
maxSizeThe largest party it takes (at least includedSeats); null: up to the session's capacity
wholeSessionTake the whole session (a private booking): offered only on an empty session, which then closes to everyone else. Default false: it shares the session
status
Output
idproductIdticketTypeIdIts ticket type, which its prices, holds, and bookings refer to
namedescriptionstatuspositionincludedSeatsSeats the base charge covers
minSizeThe smallest party guests can book it for (the group minimum; 1: any); staff can book fewer
maxSizeThe largest party it takes; null: up to the session's capacity
wholeSessionTakes the whole session (a private booking): offered only on an empty session, which then closes to everyone else
pricesprices[]prices[].locationIdprices[].currencyprices[].baseAmountThe base charge, covering includedSeats
prices[].perPersonAmountPer person above includedSeats; null: it takes no one above them there