Private sessions tools
All tool areas. Each tool acts within your access.
Private sessions
create_private_session
Create a private session for one party: a session of a product at a location at any local date and time, outside any schedule, priced flat (one amount for the party) or per_person, before fees and tax, for up to partySizeMax guests (the session's capacity by default; a product with no capacity there needs one set with update_settings first). It's never listed to guests; the party books and pays through its private booking link (the returned private.token: share <booking site>/<organization slug>/private/<token> with them, like a manage link), which takes the whole session at this price. It holds the product's resources like any session, so a closure, a block, or a resource another session holds is a conflict. Returns a preview to confirm; undo removes it while the party neither holds it nor has booked it, and no order was placed for it.
Changes · Members of an organization · Needs pricing:write, sessions:write
Input
productIdThe product's id, from list_products
locationIdThe location's id, from get_setup
dateA local date at the location, YYYY-MM-DD
startTimeA local start time at the location, HH:MM, 24-hour
durationMinutesDefaults to the product's duration
nameWhose it is (e.g. Acme holiday party); the party sees it on its booking page
pricingflat:
amountis the party's price, whatever its size; per_person:amounta personamountMinor units, before fees and tax (the service charge and tax are added as at checkout)
partySizeMaxThe largest party; left out or null: the session's capacity
Output
idproductIdproductNamehasMenuWhether its product has an active menu where this session is offered (the location's own, else one for all its locations): a dining session, with menu choices and a kitchen sheet. Without one, the session has no kitchen sheet.
locationIdtimeZonescheduleIdNull for a session created outside a schedule
statusstartsAtendsAtlocalStartcapacityseatsHeldIn checkouts not yet paid
seatsBookedcheckedInGuests checked in on its confirmed bookings, for the calendar and the run sheet. Always present
wholeSessionHeld or booked whole by a group option (a private booking): no seats left for anyone else, staff included
privateA private session's terms and booking link; null for a session on sale to everyone
private.nameWhose it is
private.pricingprivate.amountMinor units, before fees and tax: for the party (flat) or a person (per_person). Null without pricing:read
private.partySizeMaxThe largest party; null: the session's capacity
private.tokenThe private booking link's token. Share it only with the party: it books the session. Null without pricing:write, which setting its price needs too
blockThe closure or product block it's inside, which takes it off sale (its bookings stay); null when none. Always present in list_sessions
block.idblock.kindblock.notesettingsOverrides set on this session
settings.*
renew_private_link
Issue a new private booking link for a private session, so a link that went to the wrong people stops working: the old token is not found from then on. Holds already placed through it keep going. Returns a preview to confirm (the new token comes with the applied change). It can't be undone, so an old link never comes back: renew again for another one.
Changes · Members of an organization · Needs pricing:write, sessions:write
Input
sessionIdThe session's id, from list_sessions
Output
idproductIdproductNamehasMenuWhether its product has an active menu where this session is offered (the location's own, else one for all its locations): a dining session, with menu choices and a kitchen sheet. Without one, the session has no kitchen sheet.
locationIdtimeZonescheduleIdNull for a session created outside a schedule
statusstartsAtendsAtlocalStartcapacityseatsHeldIn checkouts not yet paid
seatsBookedcheckedInGuests checked in on its confirmed bookings, for the calendar and the run sheet. Always present
wholeSessionHeld or booked whole by a group option (a private booking): no seats left for anyone else, staff included
privateA private session's terms and booking link; null for a session on sale to everyone
private.nameWhose it is
private.pricingprivate.amountMinor units, before fees and tax: for the party (flat) or a person (per_person). Null without pricing:read
private.partySizeMaxThe largest party; null: the session's capacity
private.tokenThe private booking link's token. Share it only with the party: it books the session. Null without pricing:write, which setting its price needs too
blockThe closure or product block it's inside, which takes it off sale (its bookings stay); null when none. Always present in list_sessions
block.idblock.kindblock.notesettingsOverrides set on this session
settings.*
update_private_session
Change a private session's terms before the party holds it: whose it is (name), pricing (flat or per_person), amount (minor units, before fees and tax), or partySizeMax (null for the session's capacity). Refused while the party holds it (a hold locks its price) or has booked it; a hold that ran out or was released doesn't stop it. Its time is changed by cancelling it (cancel_session) and creating another. Returns a preview to confirm.
Changes · Members of an organization · Needs pricing:write, sessions:write
Input
sessionIdThe session's id, from list_sessions
nameWhose it is (e.g. Acme holiday party); the party sees it on its booking page
pricingflat:
amountis the party's price, whatever its size; per_person:amounta personamountMinor units, before fees and tax (the service charge and tax are added as at checkout)
partySizeMaxThe largest party; left out or null: the session's capacity
Output
idproductIdproductNamehasMenuWhether its product has an active menu where this session is offered (the location's own, else one for all its locations): a dining session, with menu choices and a kitchen sheet. Without one, the session has no kitchen sheet.
locationIdtimeZonescheduleIdNull for a session created outside a schedule
statusstartsAtendsAtlocalStartcapacityseatsHeldIn checkouts not yet paid
seatsBookedcheckedInGuests checked in on its confirmed bookings, for the calendar and the run sheet. Always present
wholeSessionHeld or booked whole by a group option (a private booking): no seats left for anyone else, staff included
privateA private session's terms and booking link; null for a session on sale to everyone
private.nameWhose it is
private.pricingprivate.amountMinor units, before fees and tax: for the party (flat) or a person (per_person). Null without pricing:read
private.partySizeMaxThe largest party; null: the session's capacity
private.tokenThe private booking link's token. Share it only with the party: it books the session. Null without pricing:write, which setting its price needs too
blockThe closure or product block it's inside, which takes it off sale (its bookings stay); null when none. Always present in list_sessions
block.idblock.kindblock.notesettingsOverrides set on this session
settings.*