Menus tools
All tool areas. Each tool acts within your access.
Menus
add_menu_choice
Add a choice to an existing menu course, with optional allergens, dietary tags and a supplement add-on. Position defaults to the end; a supplied position shifts nothing. Making it the default replaces the previous default. Existing holds and bookings keep their counts. Returns a preview to confirm.
Changes · Members of an organization · Needs products:write
Input
namedescriptionallergensCanada's priority allergens it contains: peanut, tree_nut, sesame, milk, egg, fish, crustacean, mollusc, soy, wheat, gluten, mustard, sulphite
allergens[]dietaryWhat it suits: vegetarian, vegan, pescatarian, gluten_free, dairy_free, nut_free, halal, kosher
dietary[]supplementAddOnIdAn add-on charged for each guest who picks this choice (e.g. a $15 upgraded main)
defaultFills the seats the organizer leaves unchosen (at most one per course; never one with a supplement)
courseIdThe menu course's id, from list_menus
position
Output
idnamedescriptionstatuscoursescourses[]courses[].idcourses[].namecourses[].positioncourses[].choicescourses[].choices[]courses[].choices[].idcourses[].choices[].namecourses[].choices[].descriptioncourses[].choices[].positioncourses[].choices[].statuscourses[].choices[].defaultFills the seats the organizer leaves unchosen in this course
courses[].choices[].allergenscourses[].choices[].allergens[]courses[].choices[].dietarycourses[].choices[].dietary[]courses[].choices[].supplementAddOnIdThe add-on charged for each guest who picks it (its price and stock per location: list_add_ons)
offeredByofferedBy[]offeredBy[].productIdofferedBy[].locationIdNull: at every location it's offered
add_menu_course
Add a course to an existing menu. Position defaults to the end; a supplied position shifts nothing. Existing holds and bookings keep their counts. Returns a preview to confirm.
Changes · Members of an organization · Needs products:write
Input
menuIdThe menu's id, from list_menus
nameposition
Output
idnamedescriptionstatuscoursescourses[]courses[].idcourses[].namecourses[].positioncourses[].choicescourses[].choices[]courses[].choices[].idcourses[].choices[].namecourses[].choices[].descriptioncourses[].choices[].positioncourses[].choices[].statuscourses[].choices[].defaultFills the seats the organizer leaves unchosen in this course
courses[].choices[].allergenscourses[].choices[].allergens[]courses[].choices[].dietarycourses[].choices[].dietary[]courses[].choices[].supplementAddOnIdThe add-on charged for each guest who picks it (its price and stock per location: list_add_ons)
offeredByofferedBy[]offeredBy[].productIdofferedBy[].locationIdNull: at every location it's offered
create_menu
Create a menu: its courses in order, each with its choices (allergens and dietary tags as listed values, an optional supplement add-on charged for each guest who picks it (made with create_add_on, priced at each location with set_add_on_price), and at most one default, which fills the seats the organizer leaves unchosen). Offer it on a product with set_product_menu. Returns a preview to confirm.
Changes · Members of an organization · Needs products:write
Input
namedescriptioncoursescourses[]courses[].namecourses[].choicescourses[].choices[]courses[].choices[].namecourses[].choices[].descriptioncourses[].choices[].allergensCanada's priority allergens it contains: peanut, tree_nut, sesame, milk, egg, fish, crustacean, mollusc, soy, wheat, gluten, mustard, sulphite
courses[].choices[].allergens[]courses[].choices[].dietaryWhat it suits: vegetarian, vegan, pescatarian, gluten_free, dairy_free, nut_free, halal, kosher
courses[].choices[].dietary[]courses[].choices[].supplementAddOnIdAn add-on charged for each guest who picks this choice (e.g. a $15 upgraded main)
courses[].choices[].defaultFills the seats the organizer leaves unchosen (at most one per course; never one with a supplement)
Output
idnamedescriptionstatuscoursescourses[]courses[].idcourses[].namecourses[].positioncourses[].choicescourses[].choices[]courses[].choices[].idcourses[].choices[].namecourses[].choices[].descriptioncourses[].choices[].positioncourses[].choices[].statuscourses[].choices[].defaultFills the seats the organizer leaves unchosen in this course
courses[].choices[].allergenscourses[].choices[].allergens[]courses[].choices[].dietarycourses[].choices[].dietary[]courses[].choices[].supplementAddOnIdThe add-on charged for each guest who picks it (its price and stock per location: list_add_ons)
offeredByofferedBy[]offeredBy[].productIdofferedBy[].locationIdNull: at every location it's offered
get_kitchen_counts
Get the kitchen's counts for sessions: for each course, how many of each choice the confirmed bookings have (and how many the default filled), the allergens on those plates, and when the counts stop changing. For one session, or a location's sessions over a few days. For the run sheet and the kitchen sheet. For who is coming (names, allergies, check-ins) use get_run_sheet.
Reads · Members of an organization · Needs kitchen:read
Input
sessionIdThe session's id, from list_sessions
locationIdThe location's id, from get_setup
fromA local date; today at each location by default
days
Output
sessionssessions[]sessions[].sessionIdsessions[].productIdsessions[].productNamesessions[].locationIdsessions[].startsAtsessions[].localStartAt the location, YYYY-MM-DDTHH:MM
sessions[].menuCutoffAtWhen the counts stop changing (the menuCutoffMinutesBefore setting). The kitchen sheet goes out then, or two hours before the session if that is earlier; changes after it go as updates
sessions[].guestsSeats in its confirmed bookings
sessions[].coursessessions[].courses[]sessions[].courses[].courseIdsessions[].courses[].namesessions[].courses[].choicessessions[].courses[].choices[]sessions[].courses[].choices[].choiceIdNull: seats nobody chose for (no default)
sessions[].courses[].choices[].namesessions[].courses[].choices[].quantitysessions[].courses[].choices[].defaultedOf these, the seats the course's default filled
sessions[].courses[].choices[].allergenssessions[].courses[].choices[].allergens[]sessions[].courses[].choices[].dietarysessions[].courses[].choices[].dietary[]sessions[].allergensPlates containing each allergen, from the choices' allergens. Guests' own are in
notessessions[].allergens[]sessions[].allergens[].allergensessions[].allergens[].platessessions[].notesThe answers to the booking questions marked for the kitchen (allergies, dietary needs), by booking
sessions[].notes[]sessions[].notes[].codeThe booking code
sessions[].notes[].questionsessions[].notes[].participantWhich guest; null for the booking
sessions[].notes[].answersessions[].notes[].answer — array option 4sessions[].notes[].answer — array option 4[]sessions[].notes[].pastPartyThis guest's seat was taken off the booking after it was answered (no guest has this number now): they may still be coming. Always present
sessions[].notes[].warningWhat to tell the kitchen about a pastParty note, in plain words; null otherwise. Always present
list_menus
List the organization's menus: courses and choices (allergens, dietary tags, supplement, default), and the products offering each.
Reads · Members of an organization · Needs products:read
Input
status
Output
menusmenus[]menus[].idmenus[].namemenus[].descriptionmenus[].statusmenus[].coursesmenus[].courses[]menus[].courses[].idmenus[].courses[].namemenus[].courses[].positionmenus[].courses[].choicesmenus[].courses[].choices[]menus[].courses[].choices[].idmenus[].courses[].choices[].namemenus[].courses[].choices[].descriptionmenus[].courses[].choices[].positionmenus[].courses[].choices[].statusmenus[].courses[].choices[].defaultFills the seats the organizer leaves unchosen in this course
menus[].courses[].choices[].allergensmenus[].courses[].choices[].allergens[]menus[].courses[].choices[].dietarymenus[].courses[].choices[].dietary[]menus[].courses[].choices[].supplementAddOnIdThe add-on charged for each guest who picks it (its price and stock per location: list_add_ons)
menus[].offeredBymenus[].offeredBy[]menus[].offeredBy[].productIdmenus[].offeredBy[].locationIdNull: at every location it's offered
set_product_menu
Offer a menu on a product, everywhere or at one location (which wins there), or stop offering one (menuId null). An archived menu is made active again with update_menu first. Guests' organizers then give the party's counts at checkout. Holds placed earlier keep their counts. Returns a preview to confirm.
Changes · Members of an organization · Needs products:write
Input
productIdThe product's id, from list_products
locationIdOffer it only at this location (it wins there over the product's own); left out: everywhere
menuIdThe menu; null to stop offering one (there, or everywhere)
Output
productIdlocationIdmenuId
update_menu
Rename a menu, change its description, or archive it (an archived menu isn't offered; holds and bookings keep their counts). Returns a preview to confirm.
Changes · Members of an organization · Needs products:write
Input
menuIdThe menu's id, from list_menus
namedescriptionstatus
Output
idnamedescriptionstatuscoursescourses[]courses[].idcourses[].namecourses[].positioncourses[].choicescourses[].choices[]courses[].choices[].idcourses[].choices[].namecourses[].choices[].descriptioncourses[].choices[].positioncourses[].choices[].statuscourses[].choices[].defaultFills the seats the organizer leaves unchosen in this course
courses[].choices[].allergenscourses[].choices[].allergens[]courses[].choices[].dietarycourses[].choices[].dietary[]courses[].choices[].supplementAddOnIdThe add-on charged for each guest who picks it (its price and stock per location: list_add_ons)
offeredByofferedBy[]offeredBy[].productIdofferedBy[].locationIdNull: at every location it's offered
update_menu_choice
Change a menu choice: its name, description, allergens, dietary tags, supplement add-on, whether it's its course's default, or archive it. Holds and bookings keep the counts they have. Returns a preview to confirm.
Changes · Members of an organization · Needs products:write
Input
choiceIdThe menu choice's id, from list_menus
namedescriptionallergensCanada's priority allergens it contains: peanut, tree_nut, sesame, milk, egg, fish, crustacean, mollusc, soy, wheat, gluten, mustard, sulphite
allergens[]dietaryWhat it suits: vegetarian, vegan, pescatarian, gluten_free, dairy_free, nut_free, halal, kosher
dietary[]supplementAddOnIdAn add-on charged for each guest who picks it; null for none
defaultMake it its course's default (the course's current default stops being one)
statusarchived: no longer offered (holds and bookings keep it). A course's default can't be archived
Output
idnamedescriptionstatuscoursescourses[]courses[].idcourses[].namecourses[].positioncourses[].choicescourses[].choices[]courses[].choices[].idcourses[].choices[].namecourses[].choices[].descriptioncourses[].choices[].positioncourses[].choices[].statuscourses[].choices[].defaultFills the seats the organizer leaves unchosen in this course
courses[].choices[].allergenscourses[].choices[].allergens[]courses[].choices[].dietarycourses[].choices[].dietary[]courses[].choices[].supplementAddOnIdThe add-on charged for each guest who picks it (its price and stock per location: list_add_ons)
offeredByofferedBy[]offeredBy[].productIdofferedBy[].locationIdNull: at every location it's offered