F&B outlet menu
const url = 'https://api.aerandil.com/v1/functions/hospitality.function.fnb_outlet_menu/invoke';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"params":{"daypart":"breakfast","order_kind":"dine_in"},"target":{"id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","object_type":"hospitality.outlet"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.aerandil.com/v1/functions/hospitality.function.fnb_outlet_menu/invoke \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "params": { "daypart": "breakfast", "order_kind": "dine_in" }, "target": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "object_type": "hospitality.outlet" } }'An outlet’s active menus as the till draws them — a menu’s sections in order, each section’s orderable items (active, and orderable on their own: a modifier-only item has no key) in the order the section places them, and per item its names, its EU-14 allergens (null = not yet declared, which the till treats as unknown), its class’s revenue_category and the course it rings in, its active variants with the price in force now for this outlet, order_kind and daypart on the house’s hotel date — the most specific row, as add_check_line resolves it; null when no row is in force or two tie, which the till would refuse to ring — and its modifier groups at the bounds this item asks for (min_select / max_select: the item’s own override on the link, else the group’s), each option with its price (its own, else the price in force of the variant it adds; null for an instruction that adds nothing) and the variant_id it adds. A daypart that is a meal (breakfast, brunch, lunch, dinner, late_night) and that the outlet has food for — a menu of its own, or an all-day one — keeps that and the menus that are no meal (all-day, drinks, dessert, room service); any other daypart keeps every active menu, so a house running its dinner menu at lunch keeps its keys. currency is the house’s. Prices are decimal strings. The target is the outlet, so a house-bound bearer (a desk, a till) reads its own house’s only. Read-only.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
object
object
Responses
Section titled “Responses”Function invoked. The body carries the typed return_value shaped by the function’s declared return_type.
Envelope returned by the Aerandil function engine. correlation_id is the per-invocation id for trace stitching; return_value is the typed value the function computed (shape declared by the function’s return_type).
object
Per-invocation correlation id; appears on log/trace records this function emitted.
object
object
object
object
object
object
object
object
Example
{ "return_value": { "menus": [ { "daypart": "breakfast", "sections": [ { "items": [ { "allergens": [ "gluten" ], "revenue_category": "food" } ] } ] } ] }}Headers
Section titled “Headers”Always no-store — function results are time-sensitive and never cacheable.
Function or target object not found.
Parameter validation or domain-rule violation.