{"openapi":"3.1.0","info":{"title":"Menu King API","version":"1.0.0","description":"Read and change a restaurant's menu from your own software, or read a published menu from a web page with no key at all.\n\n**Base URL.** Every path starts with `/v1`. Breaking changes ship under a new prefix, never inside `/v1`.\n\n**Keys.** Create a key in Settings, on the Pro or Group plan. The secret starts with `mk_live_` and is shown once. Send it as `Authorization: Bearer mk_live_…`. Keep it on a server. Never put it in a web page or an app.\n\n**Scopes.** `menu:read` reads. `menu:write` also changes the draft. `menu:publish` also publishes. A key can be tied to one venue, and every other venue then answers 404.\n\n**Draft and published.** Writes change the draft. Guests see changes only after `publish`. The one exception is availability: an 86 shows on a published menu within seconds.\n\n**Prices.** Plain decimal numbers in the venue currency, for example `12.5`. Read `currency` on the venue. Stored values are not converted when the currency changes.\n\n**Errors.** Every failure is `{ \"error\": \"a sentence\", \"code\": \"machine_code\" }`. Codes: `invalid_request` (400), `unauthorized` (401), `plan_required` (402), `forbidden` (403), `not_found` (404), `rate_limited` (429).\n\n**Rate limit.** About 120 requests per minute per key, counted per server instance. A 429 carries `Retry-After`. Every keyed response carries `X-RateLimit-Limit` and `X-RateLimit-Remaining`.\n\n**Dates.** ISO 8601, in UTC."},"servers":[{"url":"https://www.menuking.co"}],"tags":[{"name":"Venues","description":"Language, theme and currency."},{"name":"Sections","description":"Menus and categories, and publishing."},{"name":"Items","description":"Dishes, availability and placement."},{"name":"Modifiers","description":"Extras and choices on a dish."},{"name":"Translations","description":"Names and descriptions in added languages."},{"name":"Public","description":"Read a published menu with no key."}],"paths":{"/v1/venues":{"get":{"operationId":"listVenues","tags":["Venues"],"summary":"List venues","description":"The venues this key can see. A key tied to one venue sees only that one.\n\nNeeds the `menu:read` scope.","security":[{"bearer":[]}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"venues":{"type":"array","items":{"$ref":"#/components/schemas/Venue"}}},"required":["venues"]}}}},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}}}},"/v1/venues/{venueId}":{"get":{"operationId":"getVenue","tags":["Venues"],"summary":"Get a venue","description":"Language, theme and currency for one venue.\n\nNeeds the `menu:read` scope.","security":[{"bearer":[]}],"parameters":[{"name":"venueId","in":"path","required":true,"schema":{"type":"string"},"description":"The venue id."}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Venue"}}}},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}}},"patch":{"operationId":"updateVenue","tags":["Venues"],"summary":"Change theme, currency or languages","description":"Changes apply to the draft. Guests see them after the next publish. Adding a language past your plan's limit returns 402.\n\nNeeds the `menu:write` scope.","security":[{"bearer":[]}],"parameters":[{"name":"venueId","in":"path","required":true,"schema":{"type":"string"},"description":"The venue id."}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Venue"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"theme":{"description":"Choosing a different preset starts over from its colours, font and layout.","type":"string","enum":["bistro","modern","lounge","street","classic","warm","slate","ivory"]},"design":{"description":"Overrides on top of the preset. null clears them all.","anyOf":[{"$ref":"#/components/schemas/DesignPatch"},{"type":"null"}]},"guestInfo":{"description":"Wi-Fi, Instagram, review link and service note. null or an empty string clears a field.","anyOf":[{"$ref":"#/components/schemas/GuestInfoPatch"},{"type":"null"}]},"currency":{"description":"Stored prices are not converted.","type":"string","enum":["USD","EUR","GBP","CAD","AUD","NZD","CHF","SEK","NOK","DKK","ISK","PLN","CZK","HUF","RON","BGN","TRY","UAH","JPY","KRW","CNY","HKD","SGD","INR","THB","MYR","IDR","PHP","VND","AED","SAR","ILS","EGP","MAD","ZAR","MXN","BRL","ARS","CLP","COP","PEN"]},"defaultLocale":{"type":"string","minLength":2,"description":"Language code such as en, th or pt-br."},"locales":{"description":"Ordered list, default language included. Removing one deletes its translations.","maxItems":12,"type":"array","items":{"type":"string","minLength":2,"description":"Language code such as en, th or pt-br."}}},"additionalProperties":false}}}}}},"/v1/venues/{venueId}/sections":{"get":{"operationId":"listSections","tags":["Sections"],"summary":"List menus and categories","description":"Every section of the venue in one flat list. type is menu, category or subcategory, and parentId builds the tree. guestUrl is set only for a published menu.\n\nNeeds the `menu:read` scope.","security":[{"bearer":[]}],"parameters":[{"name":"venueId","in":"path","required":true,"schema":{"type":"string"},"description":"The venue id."}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"sections":{"type":"array","items":{"$ref":"#/components/schemas/Section"}}},"required":["sections"]}}}},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}}},"post":{"operationId":"createSection","tags":["Sections"],"summary":"Create a menu or category","description":"Draft only. Nothing is visible to guests until the menu is published.\n\nNeeds the `menu:write` scope.","security":[{"bearer":[]}],"parameters":[{"name":"venueId","in":"path","required":true,"schema":{"type":"string"},"description":"The venue id."}],"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Section"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"type":{"default":"category","description":"A menu has no parent. Categories sit under a menu or a category.","type":"string","enum":["menu","category","subcategory"]},"parentId":{"type":["string","null"]}},"required":["name"],"additionalProperties":false}}}}}},"/v1/venues/{venueId}/sections/{sectionId}":{"patch":{"operationId":"updateSection","tags":["Sections"],"summary":"Rename a section","description":"Renames the section in the default language. Use the translations call for other languages.\n\nNeeds the `menu:write` scope.","security":[{"bearer":[]}],"parameters":[{"name":"venueId","in":"path","required":true,"schema":{"type":"string"},"description":"The venue id."},{"name":"sectionId","in":"path","required":true,"schema":{"type":"string"},"description":"The section id."}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Section"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120,"description":"Default-language name."}},"required":["name"],"additionalProperties":false}}}}}},"/v1/venues/{venueId}/sections/{sectionId}/publish":{"post":{"operationId":"publishMenu","tags":["Sections"],"summary":"Publish a menu","description":"The only call that changes what guests see: prices, 86s, theme, languages and modifiers all go live together. The section must be a menu, not a category. The first publish creates the guest URL.\n\nNeeds the `menu:publish` scope.","security":[{"bearer":[]}],"parameters":[{"name":"venueId","in":"path","required":true,"schema":{"type":"string"},"description":"The venue id."},{"name":"sectionId","in":"path","required":true,"schema":{"type":"string"},"description":"The section id."}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string"},"url":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","url","version"]}}}},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}}}},"/v1/venues/{venueId}/items":{"get":{"operationId":"listItems","tags":["Items"],"summary":"List dishes","description":"Dishes sorted by name, 50 per page by default. Pass nextCursor back as cursor for the next page.\n\nNeeds the `menu:read` scope.","security":[{"bearer":[]}],"parameters":[{"name":"venueId","in":"path","required":true,"schema":{"type":"string"},"description":"The venue id."},{"name":"query","in":"query","required":false,"description":"Matches part of the dish name.","schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["online","offline"]}},{"name":"sectionId","in":"query","required":false,"description":"Only dishes in this section, or in a section directly under it.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"description":"The nextCursor from the previous page.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemSummary"}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"]}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}}},"post":{"operationId":"createItem","tags":["Items"],"summary":"Create a dish","description":"Draft only. Send sectionId to place the dish in a section. The Free plan stops at its dish limit with a 402. Photos are uploaded in the dashboard.\n\nNeeds the `menu:write` scope.","security":[{"bearer":[]}],"parameters":[{"name":"venueId","in":"path","required":true,"schema":{"type":"string"},"description":"The venue id."}],"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Item"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"price":{"type":"number","minimum":0,"description":"Plain decimal in the venue currency, for example 12.5. Stored to the cent."},"description":{"type":"string","minLength":1,"maxLength":2000},"status":{"type":"string","enum":["online","offline"],"description":"online shows the dish to guests. offline is 86'd."},"sectionId":{"description":"Place the dish in this section as part of the create.","type":"string"},"ingredients":{"type":"array","items":{"type":"string"}},"allergens":{"type":"array","items":{"type":"string","enum":["milk","eggs","fish","shellfish","mollusks","peanuts","soybeans","lupin","legumes","tree-nuts","almond","hazelnut","walnut","cashew","pecan","pistachio","brazil-nut","macadamia","pine-nuts","coconut","wheat","rye","barley","oats","spelt","gluten","buckwheat","sesame","sunflower","poppy","mustard","celery","sulfites","alliums","garlic","onion","nightshades","tomato","corn","citrus","berries","kiwi","banana","avocado","mango","apple","stone-fruit","cocoa","vanilla","mint","caffeine","honey","gelatin","alcohol","msg","mammalian-meat"],"description":"Allergen id such as gluten, milk or peanuts."}},"diets":{"type":"array","items":{"type":"string","enum":["vegan","vegetarian","gluten-free","dairy-free","nut-free","egg-free","soy-free","halal","kosher","alcohol-free"]}},"nutrition":{"type":"object","properties":{"energyKcal":{"type":"integer","minimum":0,"maximum":20000},"carbohydrateGrams":{"type":"integer","minimum":0,"maximum":20000},"proteinGrams":{"type":"integer","minimum":0,"maximum":20000},"fatGrams":{"type":"integer","minimum":0,"maximum":20000}},"additionalProperties":false,"description":"Whole numbers from 0 to 20000 per serving."}},"required":["name","price","description","status"],"additionalProperties":false}}}}}},"/v1/venues/{venueId}/items/{itemId}":{"get":{"operationId":"getItem","tags":["Items"],"summary":"Get a dish","description":"One dish with its sections, allergens and modifier groups.\n\nNeeds the `menu:read` scope.","security":[{"bearer":[]}],"parameters":[{"name":"venueId","in":"path","required":true,"schema":{"type":"string"},"description":"The venue id."},{"name":"itemId","in":"path","required":true,"schema":{"type":"string"},"description":"The item id."}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Item"}}}},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}}},"patch":{"operationId":"updateItem","tags":["Items"],"summary":"Change a dish","description":"Send only the fields that change. Name and description are the default language. A dish shared from another venue accepts only price and status here.\n\nNeeds the `menu:write` scope.","security":[{"bearer":[]}],"parameters":[{"name":"venueId","in":"path","required":true,"schema":{"type":"string"},"description":"The venue id."},{"name":"itemId","in":"path","required":true,"schema":{"type":"string"},"description":"The item id."}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Item"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"price":{"type":"number","minimum":0,"description":"Plain decimal in the venue currency, for example 12.5. Stored to the cent."},"description":{"type":"string","minLength":1,"maxLength":2000},"status":{"type":"string","enum":["online","offline"],"description":"online shows the dish to guests. offline is 86'd."},"ingredients":{"type":"array","items":{"type":"string"}},"allergens":{"type":"array","items":{"type":"string","enum":["milk","eggs","fish","shellfish","mollusks","peanuts","soybeans","lupin","legumes","tree-nuts","almond","hazelnut","walnut","cashew","pecan","pistachio","brazil-nut","macadamia","pine-nuts","coconut","wheat","rye","barley","oats","spelt","gluten","buckwheat","sesame","sunflower","poppy","mustard","celery","sulfites","alliums","garlic","onion","nightshades","tomato","corn","citrus","berries","kiwi","banana","avocado","mango","apple","stone-fruit","cocoa","vanilla","mint","caffeine","honey","gelatin","alcohol","msg","mammalian-meat"],"description":"Allergen id such as gluten, milk or peanuts."}},"diets":{"type":"array","items":{"type":"string","enum":["vegan","vegetarian","gluten-free","dairy-free","nut-free","egg-free","soy-free","halal","kosher","alcohol-free"]}},"nutrition":{"anyOf":[{"type":"object","properties":{"energyKcal":{"type":"integer","minimum":0,"maximum":20000},"carbohydrateGrams":{"type":"integer","minimum":0,"maximum":20000},"proteinGrams":{"type":"integer","minimum":0,"maximum":20000},"fatGrams":{"type":"integer","minimum":0,"maximum":20000}},"additionalProperties":false,"description":"Whole numbers from 0 to 20000 per serving."},{"type":"null"}]}},"additionalProperties":false}}}}}},"/v1/venues/{venueId}/items/availability":{"post":{"operationId":"setAvailability","tags":["Items"],"summary":"Put dishes online or offline","description":"Offline is the 86 button. It moves one or many dishes at once and applies to the draft. Publish to show it to guests, or rely on the live status flag when the menu is already published.\n\nNeeds the `menu:write` scope.","security":[{"bearer":[]}],"parameters":[{"name":"venueId","in":"path","required":true,"schema":{"type":"string"},"description":"The venue id."}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"itemIds":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["online","offline"]}},"required":["itemIds","status"]}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemIds":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","minLength":1}},"status":{"type":"string","enum":["online","offline"],"description":"online shows the dish to guests. offline is 86'd."}},"required":["itemIds","status"],"additionalProperties":false}}}}}},"/v1/venues/{venueId}/items/{itemId}/sections/{sectionId}":{"put":{"operationId":"placeItem","tags":["Items"],"summary":"Place a dish in a section","description":"Idempotent. Placing a dish that is already there changes nothing.\n\nNeeds the `menu:write` scope.","security":[{"bearer":[]}],"parameters":[{"name":"venueId","in":"path","required":true,"schema":{"type":"string"},"description":"The venue id."},{"name":"itemId","in":"path","required":true,"schema":{"type":"string"},"description":"The item id."},{"name":"sectionId","in":"path","required":true,"schema":{"type":"string"},"description":"The section id."}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"]}}}},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}}},"delete":{"operationId":"unplaceItem","tags":["Items"],"summary":"Take a dish out of a section","description":"The dish itself stays. Use availability to take it off the menu.\n\nNeeds the `menu:write` scope.","security":[{"bearer":[]}],"parameters":[{"name":"venueId","in":"path","required":true,"schema":{"type":"string"},"description":"The venue id."},{"name":"itemId","in":"path","required":true,"schema":{"type":"string"},"description":"The item id."},{"name":"sectionId","in":"path","required":true,"schema":{"type":"string"},"description":"The section id."}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"]}}}},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}}}},"/v1/venues/{venueId}/items/{itemId}/modifier-groups":{"put":{"operationId":"attachModifierGroups","tags":["Modifiers"],"summary":"Set a dish's modifier groups","description":"Replaces what is attached, in the order sent.\n\nNeeds the `menu:write` scope.","security":[{"bearer":[]}],"parameters":[{"name":"venueId","in":"path","required":true,"schema":{"type":"string"},"description":"The venue id."},{"name":"itemId","in":"path","required":true,"schema":{"type":"string"},"description":"The item id."}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"groupIds":{"type":"array","items":{"type":"string"}}},"required":["groupIds"]}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"groupIds":{"type":"array","items":{"type":"string"},"description":"Modifier group ids in display order. Replaces what is attached."}},"required":["groupIds"],"additionalProperties":false}}}}}},"/v1/venues/{venueId}/modifier-groups":{"get":{"operationId":"listModifierGroups","tags":["Modifiers"],"summary":"List modifier groups","description":"Groups with their options, prices and selection bounds.\n\nNeeds the `menu:read` scope.","security":[{"bearer":[]}],"parameters":[{"name":"venueId","in":"path","required":true,"schema":{"type":"string"},"description":"The venue id."}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"groups":{"type":"array","items":{"$ref":"#/components/schemas/ModifierGroup"}}},"required":["groups"]}}}},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}}},"post":{"operationId":"createModifierGroup","tags":["Modifiers"],"summary":"Create a modifier group","description":"Use a preset or explicit bounds. Draft only.\n\nNeeds the `menu:write` scope.","security":[{"bearer":[]}],"parameters":[{"name":"venueId","in":"path","required":true,"schema":{"type":"string"},"description":"The venue id."}],"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModifierGroup"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"preset":{"description":"A preset sets the bounds. Leave the bounds out when you use one.","type":"string","enum":["extras","chooseOne","includedThenExtra"]},"minSelect":{"type":"integer","minimum":0,"maximum":9007199254740991},"maxSelect":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"includedCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"options":{"description":"Replaces the group's options when sent.","type":"array","items":{"type":"object","properties":{"id":{"description":"Send an existing option id to keep it.","type":"string"},"name":{"type":"string","minLength":1,"maxLength":120},"price":{"type":"number","minimum":0,"description":"Plain decimal in the venue currency, for example 12.5. Stored to the cent."},"status":{"default":"online","type":"string","enum":["online","offline"]},"allergens":{"default":[],"type":"array","items":{"type":"string","enum":["milk","eggs","fish","shellfish","mollusks","peanuts","soybeans","lupin","legumes","tree-nuts","almond","hazelnut","walnut","cashew","pecan","pistachio","brazil-nut","macadamia","pine-nuts","coconut","wheat","rye","barley","oats","spelt","gluten","buckwheat","sesame","sunflower","poppy","mustard","celery","sulfites","alliums","garlic","onion","nightshades","tomato","corn","citrus","berries","kiwi","banana","avocado","mango","apple","stone-fruit","cocoa","vanilla","mint","caffeine","honey","gelatin","alcohol","msg","mammalian-meat"],"description":"Allergen id such as gluten, milk or peanuts."}}},"required":["name","price"],"additionalProperties":false}}},"required":["name"],"additionalProperties":false}}}}}},"/v1/venues/{venueId}/modifier-groups/{groupId}":{"put":{"operationId":"updateModifierGroup","tags":["Modifiers"],"summary":"Replace a modifier group","description":"Send the whole group. When options are sent they replace the existing ones.\n\nNeeds the `menu:write` scope.","security":[{"bearer":[]}],"parameters":[{"name":"venueId","in":"path","required":true,"schema":{"type":"string"},"description":"The venue id."},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"},"description":"The group id."}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModifierGroup"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"preset":{"description":"A preset sets the bounds. Leave the bounds out when you use one.","type":"string","enum":["extras","chooseOne","includedThenExtra"]},"minSelect":{"type":"integer","minimum":0,"maximum":9007199254740991},"maxSelect":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"includedCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"options":{"description":"Replaces the group's options when sent.","type":"array","items":{"type":"object","properties":{"id":{"description":"Send an existing option id to keep it.","type":"string"},"name":{"type":"string","minLength":1,"maxLength":120},"price":{"type":"number","minimum":0,"description":"Plain decimal in the venue currency, for example 12.5. Stored to the cent."},"status":{"default":"online","type":"string","enum":["online","offline"]},"allergens":{"default":[],"type":"array","items":{"type":"string","enum":["milk","eggs","fish","shellfish","mollusks","peanuts","soybeans","lupin","legumes","tree-nuts","almond","hazelnut","walnut","cashew","pecan","pistachio","brazil-nut","macadamia","pine-nuts","coconut","wheat","rye","barley","oats","spelt","gluten","buckwheat","sesame","sunflower","poppy","mustard","celery","sulfites","alliums","garlic","onion","nightshades","tomato","corn","citrus","berries","kiwi","banana","avocado","mango","apple","stone-fruit","cocoa","vanilla","mint","caffeine","honey","gelatin","alcohol","msg","mammalian-meat"],"description":"Allergen id such as gluten, milk or peanuts."}}},"required":["name","price"],"additionalProperties":false}}},"required":["name"],"additionalProperties":false}}}}}},"/v1/venues/{venueId}/translations":{"get":{"operationId":"listTranslations","tags":["Translations"],"summary":"Read translations for a record","description":"Translated names and descriptions for one dish, section, modifier group or option.\n\nNeeds the `menu:read` scope.","security":[{"bearer":[]}],"parameters":[{"name":"venueId","in":"path","required":true,"schema":{"type":"string"},"description":"The venue id."},{"name":"entityType","in":"query","required":true,"schema":{"type":"string","enum":["item","node","modifier_group","modifier_option"]}},{"name":"entityId","in":"query","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"entries":{"type":"array","items":{"type":"object","properties":{"locale":{"type":"string"},"field":{"type":"string","enum":["name","description"]},"value":{"type":"string"}},"required":["locale","field","value"]}}},"required":["entries"]}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}}},"put":{"operationId":"setTranslation","tags":["Translations"],"summary":"Set one translation","description":"Sets one field in one added language. The default language is not a translation. Add the language to the venue first. Descriptions exist only on dishes.\n\nNeeds the `menu:write` scope.","security":[{"bearer":[]}],"parameters":[{"name":"venueId","in":"path","required":true,"schema":{"type":"string"},"description":"The venue id."}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","properties":{"entries":{"type":"array","items":{"type":"object","properties":{"locale":{"type":"string"},"field":{"type":"string","enum":["name","description"]},"value":{"type":"string"}},"required":["locale","field","value"]}}},"required":["entries"]}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"402":{"$ref":"#/components/responses/Error402"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"entityType":{"type":"string","enum":["item","node","modifier_group","modifier_option"]},"entityId":{"type":"string","minLength":1},"locale":{"type":"string","minLength":2,"description":"An added language. The default language is edited on the record itself."},"field":{"type":"string","enum":["name","description"]},"value":{"type":"string","description":"An empty string removes the translation."}},"required":["entityType","entityId","locale","field","value"],"additionalProperties":false}}}}}},"/v1/public/menus/{venue}/{menu}":{"get":{"operationId":"getPublicMenu","tags":["Public"],"summary":"Read a published menu","description":"No key needed, and CORS is open, so a website can call it from the browser. This is the same document that renders the guest page. It changes only when the menu is published, and a publish shows up here within about a minute. The response carries an ETag, so send If-None-Match to get a 304.","security":[],"parameters":[{"name":"venue","in":"path","required":true,"schema":{"type":"string"},"description":"The venue id."},{"name":"menu","in":"path","required":true,"schema":{"type":"string"},"description":"The menu id."}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishedMenu"}}}},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"mk_live_…","description":"A key from Settings. Scopes: menu:read, menu:write, menu:publish."}},"schemas":{"Venue":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"hostname":{"description":"Custom domain, when one is attached.","type":["string","null"]},"defaultLocale":{"type":"string"},"locales":{"type":"array","items":{"type":"string"}},"theme":{"type":"string","enum":["bistro","modern","lounge","street","classic","warm","slate","ivory"],"description":"The preset. warm, slate and ivory are the older looks and keep working."},"design":{"description":"Overrides on top of the preset.","$ref":"#/components/schemas/Design"},"guestInfo":{"description":"Footer details shown on the guest menu.","$ref":"#/components/schemas/GuestInfo"},"logoUrl":{"description":"Public URL of the venue logo (512 pixels, inside a square). Null without one. Set in the dashboard.","type":["string","null"]},"currency":{"type":"string","enum":["USD","EUR","GBP","CAD","AUD","NZD","CHF","SEK","NOK","DKK","ISK","PLN","CZK","HUF","RON","BGN","TRY","UAH","JPY","KRW","CNY","HKD","SGD","INR","THB","MYR","IDR","PHP","VND","AED","SAR","ILS","EGP","MAD","ZAR","MXN","BRL","ARS","CLP","COP","PEN"]}},"required":["id","name","hostname","defaultLocale","locales","theme","design","guestInfo","logoUrl","currency"]},"Design":{"type":"object","properties":{"background":{"type":"string","pattern":"^#?(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$","description":"Page colour. Text colours are derived from it so they stay readable. Custom colours are on Pro."},"accent":{"type":"string","pattern":"^#?(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$","description":"Prices and the active category tab. Lifted automatically if it would be hard to read on the background. Custom colours are on Pro."},"font":{"type":"string","enum":["editorial","modern","mono","humanist"],"description":"Font pair. A font other than the preset's is on Pro."},"layout":{"type":"string","enum":["text","thumb","cards"],"description":"text, thumb (small photo beside the dish) or cards (large photos, on Pro unless the preset starts with it)."},"leaders":{"type":"boolean","description":"Dotted line between a dish and its price."},"badges":{"type":"boolean","description":"Diet badges on dishes."},"compact":{"type":"boolean","description":"Tighter spacing."},"logoAlign":{"type":"string","enum":["left","center"]}}},"GuestInfo":{"type":"object","properties":{"wifiName":{"type":"string","maxLength":96},"wifiPassword":{"type":"string","maxLength":189},"instagram":{"type":"string","maxLength":90,"description":"A handle such as @yourplace, or an instagram.com link."},"reviewUrl":{"type":"string","maxLength":900,"description":"An https link to leave a review."},"serviceNote":{"type":"string","maxLength":480,"description":"One line, for example: Prices include a 10% service charge."}}},"DesignPatch":{"type":"object","properties":{"preset":{"description":"Choosing a different preset starts over from its colours, font and layout, unless the same call sets them.","type":"string","enum":["bistro","modern","lounge","street","classic"]},"background":{"anyOf":[{"type":"string","pattern":"^#?(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$","description":"Page colour. Text colours are derived from it so they stay readable. Custom colours are on Pro."},{"type":"null"}]},"accent":{"anyOf":[{"type":"string","pattern":"^#?(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$","description":"Prices and the active category tab. Lifted automatically if it would be hard to read on the background. Custom colours are on Pro."},{"type":"null"}]},"font":{"anyOf":[{"type":"string","enum":["editorial","modern","mono","humanist"],"description":"Font pair. A font other than the preset's is on Pro."},{"type":"null"}]},"layout":{"anyOf":[{"type":"string","enum":["text","thumb","cards"],"description":"text, thumb (small photo beside the dish) or cards (large photos, on Pro unless the preset starts with it)."},{"type":"null"}]},"leaders":{"anyOf":[{"type":"boolean","description":"Dotted line between a dish and its price."},{"type":"null"}]},"badges":{"anyOf":[{"type":"boolean","description":"Diet badges on dishes."},{"type":"null"}]},"compact":{"anyOf":[{"type":"boolean","description":"Tighter spacing."},{"type":"null"}]},"logoAlign":{"anyOf":[{"type":"string","enum":["left","center"]},{"type":"null"}]}},"additionalProperties":false},"GuestInfoPatch":{"type":"object","properties":{"wifiName":{"anyOf":[{"type":"string","maxLength":96},{"type":"null"}]},"wifiPassword":{"anyOf":[{"type":"string","maxLength":189},{"type":"null"}]},"instagram":{"anyOf":[{"type":"string","maxLength":90,"description":"A handle such as @yourplace, or an instagram.com link."},{"type":"null"}]},"reviewUrl":{"anyOf":[{"type":"string","maxLength":900,"description":"An https link to leave a review."},{"type":"null"}]},"serviceNote":{"anyOf":[{"type":"string","maxLength":480,"description":"One line, for example: Prices include a 10% service charge."},{"type":"null"}]}},"additionalProperties":false},"Section":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","description":"Name in the venue default language."},"type":{"type":"string","enum":["menu","category","subcategory"]},"parentId":{"type":["string","null"]},"order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"guestUrl":{"description":"Set once a menu is published. Null for categories.","type":["string","null"]},"description":{"description":"Shown under the menu title. Menus only; empty when none is set.","type":"string"},"coverUrl":{"description":"Public URL of the menu's 16:9 cover image. Menus only; null when none is set.","type":["string","null"]}},"required":["id","name","type","parentId","order","guestUrl"]},"ItemSummary":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"price":{"type":"number"},"currency":{"type":"string","enum":["USD","EUR","GBP","CAD","AUD","NZD","CHF","SEK","NOK","DKK","ISK","PLN","CZK","HUF","RON","BGN","TRY","UAH","JPY","KRW","CNY","HKD","SGD","INR","THB","MYR","IDR","PHP","VND","AED","SAR","ILS","EGP","MAD","ZAR","MXN","BRL","ARS","CLP","COP","PEN"]},"status":{"type":"string","enum":["online","offline"]},"imageUrl":{"description":"Null when the dish has no photo.","type":["string","null"]},"sections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["menu","category","subcategory"]}},"required":["id","name","type"]}}},"required":["id","name","price","currency","status","imageUrl","sections"]},"Item":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","description":"Name in the venue default language."},"description":{"type":"string"},"price":{"type":"number"},"currency":{"type":"string","enum":["USD","EUR","GBP","CAD","AUD","NZD","CHF","SEK","NOK","DKK","ISK","PLN","CZK","HUF","RON","BGN","TRY","UAH","JPY","KRW","CNY","HKD","SGD","INR","THB","MYR","IDR","PHP","VND","AED","SAR","ILS","EGP","MAD","ZAR","MXN","BRL","ARS","CLP","COP","PEN"]},"status":{"type":"string","enum":["online","offline"]},"ingredients":{"type":"array","items":{"type":"string"}},"allergens":{"type":"array","items":{"type":"string"},"description":"Allergen ids."},"diets":{"type":"array","items":{"type":"string"}},"nutrition":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}},{"type":"null"}]},"imageUrl":{"description":"Null when the dish has no photo.","type":["string","null"]},"sections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["menu","category","subcategory"]}},"required":["id","name","type"]}},"modifierGroups":{"type":"array","items":{"$ref":"#/components/schemas/ModifierGroup"}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","name","description","price","currency","status","ingredients","allergens","diets","nutrition","imageUrl","sections","modifierGroups","createdAt","updatedAt"]},"ModifierGroup":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"minSelect":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxSelect":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Null means no upper bound."},"includedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"price":{"type":"number"},"status":{"type":"string","enum":["online","offline"]},"allergens":{"type":"array","items":{"type":"string"}}},"required":["id","name","price","status","allergens"]}}},"required":["id","name","minSelect","maxSelect","includedCount","options"]},"PublishedMenu":{"type":"object","properties":{"slug":{"type":"string","description":"The menu's part of its address. Unique inside the venue, not across venues."},"venueSlug":{"type":"string","description":"The venue's part of its address."},"canonical":{"type":"string","description":"The guest URL for this menu."},"name":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"Menu name by language code."},"description":{"description":"Shown under the menu title, by language code. Absent when the menu has none.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"coverUrl":{"description":"Public URL of the 16:9 cover image (1600 pixels wide). Absent when the menu has none.","type":"string"},"venueName":{"type":"string"},"defaultLocale":{"type":"string"},"locales":{"type":"array","items":{"type":"string"}},"currency":{"type":"string"},"theme":{"type":"string","description":"The preset id. Older menus say warm, slate or ivory."},"design":{"description":"The look guests see, already checked for the plan and for readable contrast. Absent on menus published before designs existed: use theme.","$ref":"#/components/schemas/ResolvedDesign"},"guestInfo":{"description":"Footer details. Absent when the venue has set none.","$ref":"#/components/schemas/GuestInfo"},"logoUrl":{"description":"Public URL of the venue logo. Absent without one.","type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"publishedAt":{"type":"string"},"sections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"type":{"type":"string"},"parentId":{"type":["string","null"]}},"required":["id","name","type","parentId"]}},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"description":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"price":{"type":"number"},"status":{"type":"string","enum":["online","offline"]},"allergens":{"type":"array","items":{"type":"string"}},"diets":{"type":"array","items":{"type":"string"}},"nutrition":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}},{"type":"null"}]},"imageUrl":{"type":["string","null"]},"illustrative":{"description":"True when imageUrl is a picture AI made from the dish text. Absent otherwise.","type":"boolean"},"nodeIds":{"type":"array","items":{"type":"string"},"description":"Ids of the sections the dish sits in."},"groups":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"description":"Modifier groups, with names by language."}},"required":["id","name","description","price","status","allergens","diets","nutrition","imageUrl","nodeIds","groups"]}}},"required":["slug","venueSlug","canonical","name","venueName","defaultLocale","locales","currency","theme","version","publishedAt","sections","items"]},"ResolvedDesign":{"type":"object","properties":{"preset":{"type":"string","enum":["bistro","modern","lounge","street","classic"]},"font":{"type":"string","enum":["editorial","modern","mono","humanist"]},"layout":{"type":"string","enum":["text","thumb","cards"]},"leaders":{"type":"boolean"},"badges":{"type":"boolean"},"compact":{"type":"boolean"},"logoAlign":{"type":"string","enum":["left","center"]},"scale":{"type":"number","description":"Base type size multiplier."},"dark":{"type":"boolean","description":"True when the background is dark."},"colors":{"type":"object","properties":{"bg":{"type":"string"},"text":{"type":"string"},"muted":{"type":"string"},"accent":{"type":"string"},"onAccent":{"type":"string","description":"Text colour on the accent, for the active category tab."},"line":{"type":"string"},"surface":{"type":"string"}},"required":["bg","text","muted","accent","onAccent","line","surface"]},"adjusted":{"type":"array","items":{"type":"string"},"description":"Colours changed to stay readable, for example accent."}},"required":["preset","font","layout","leaders","badges","compact","logoAlign","scale","dark","colors","adjusted"]},"Error":{"type":"object","properties":{"error":{"type":"string","description":"A sentence a person can read."},"code":{"type":"string","description":"A stable code to branch on."}},"required":["error","code"]}},"responses":{"Error400":{"description":"The request is malformed or a field is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Error401":{"description":"The key is missing or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Error402":{"description":"The plan does not include this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Error403":{"description":"The key's scope does not allow this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Error404":{"description":"The record does not exist, or the key cannot see it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Error429":{"description":"Too many requests. Wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}