Booking questions tools
All tool areas. Each tool acts within your access.
Booking questions
create_booking_question
Add a question a product asks at checkout, for the booking or for each guest: text, a number, a single or multiple choice, or yes/no; required or optional; staff-only (staff answer it, guests never see it); shown on the run sheet; and sent to the kitchen beside the menu counts (allergies, dietary needs). Everywhere the product is offered, or at one location. Returns a preview to confirm; undo removes it until someone has answered it.
Changes · Members of an organization · Needs products:write
Input
productIdThe product's id, from list_products
locationIdAsk it only at this location; left out: everywhere
labelhelpTextscopebooking: answered once; participant: answered for each guest in the party
typetext, number, single_choice or multiple_choice (from
choices), or yes_nochoiceschoices[]requiredGuests must answer it to check out (never a staff-only one)
staffOnlyStaff answer it (set_booking_answer); guests never see it
runSheetShown on the run sheet
kitchenIts answers go to the kitchen, beside the menu counts (allergies, dietary needs)
position
Output
idproductIdlocationIdAsked only at this location; null: everywhere
labelhelpTextscopetypetext, number, single_choice or multiple_choice (from
choices), or yes_nochoiceschoices[]requiredstaffOnlyrunSheetkitchenpositionstatusanswersOrders that have answered it
list_booking_answers
List the answers to booking questions for one order, or for a session's confirmed bookings (the run sheet's): each with its question, the guest it's for (participant questions), and who answered it. Guest data: shown only to staff who can read bookings.
Reads · Members of an organization · Needs bookings:read
Input
orderIdThe order's id, from list_bookings or list_orders
sessionIdThe session's id, from list_sessions
Output
answersanswers[]answers[].orderIdanswers[].codeThe order's booking code
answers[].bookingIdanswers[].sessionIdanswers[].questionIdanswers[].questionanswers[].participantWhich guest (1 to the party size) for a participant question; null for the booking
answers[].valueanswers[].value — array option 4answers[].value — array option 4[]answers[].answeredByanswers[].staffOnlyanswers[].runSheetanswers[].kitchenanswers[].pastPartyThis guest's seat was taken off the booking after it was answered: no guest has this number now (guest numbers never change, and a checked-in guest is never the one removed). A guest number doesn't say who left, so this guest may still be coming: check before relying on it. Always present
list_booking_questions
List a product's booking questions (archived ones included, with how many orders have answered each).
Reads · Members of an organization · Needs products:read
Input
productIdThe product's id, from list_products
Output
questionsquestions[]questions[].idquestions[].productIdquestions[].locationIdAsked only at this location; null: everywhere
questions[].labelquestions[].helpTextquestions[].scopequestions[].typetext, number, single_choice or multiple_choice (from
choices), or yes_noquestions[].choicesquestions[].choices[]questions[].requiredquestions[].staffOnlyquestions[].runSheetquestions[].kitchenquestions[].positionquestions[].statusquestions[].answersOrders that have answered it
set_booking_answer
Answer a booking question for an order as staff: a staff-only question, or a guest's answer given by phone (it replaces theirs). For a participant question, say which guest (1 to the party size). null removes the answer. Returns a preview to confirm; undo puts the previous answer back.
Changes · Members of an organization · Needs bookings:write
Input
orderIdThe order's id, from list_bookings or list_orders
questionIdThe booking question's id, from list_booking_questions
participantFor a participant question: which guest, 1 to the party size
valueThe answer, as the question's type takes it (see checkout's answers); null removes it
Output
orderIdquestionIdparticipantanswered
update_booking_question
Change a booking question: its label, help text, whether it's required, staff-only, on the run sheet, or for the kitchen, its order, or archive it (no longer asked; its answers stay). Its type, scope, and choices change only while nobody has answered it. Returns a preview to confirm; undo refuses once the question has been answered since.
Changes · Members of an organization · Needs products:write
Input
questionIdThe booking question's id, from list_booking_questions
labelhelpTextscopebooking: answered once; participant: answered for each guest in the party
typetext, number, single_choice or multiple_choice (from
choices), or yes_nochoiceschoices[]requiredGuests must answer it to check out (never a staff-only one)
staffOnlyStaff answer it (set_booking_answer); guests never see it
runSheetShown on the run sheet
kitchenIts answers go to the kitchen, beside the menu counts (allergies, dietary needs)
positionstatusarchived: no longer asked; the answers it has stay with their orders
Output
idproductIdlocationIdAsked only at this location; null: everywhere
labelhelpTextscopetypetext, number, single_choice or multiple_choice (from
choices), or yes_nochoiceschoices[]requiredstaffOnlyrunSheetkitchenpositionstatusanswersOrders that have answered it