F&B breakfast roster
const url = 'https://api.aerandil.com/v1/functions/hospitality.function.fnb_breakfast_roster/invoke';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"params":{"business_date":"2026-04-15"},"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_breakfast_roster/invoke \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "params": { "business_date": "2026-04-15" }, "target": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "object_type": "hospitality.outlet" } }'The breakfast roster at the target outlet on business_date (default: the house’s hotel date): one row per in-house stay whose live package includes a breakfast that day at this outlet — a component with a frozen daypart of breakfast or brunch, eaten the morning after the night that carries it, at one of its alternate outlets (any outlet of the house when it names none) — and per stay that checked out that morning having taken it. Guests without one are not rows; they pay on a check. Per row: the stay, its reservation, the room, the guests’ names, the covers the package feeds (entitled_covers: the room’s adults for a per-adult allowance, everyone in it otherwise), the component, the day’s allowance and what is remaining of it (strings in currency), the covers already taken_covers — by the roster’s tick-off (record_breakfast_taken) or a room charge that consumed it — the latest consumption and the check it came from (null for a tick-off), every consumption that day (consumptions), and the status: expected, partial, taken, or no_show (nothing eaten and the day is over, or the night audit settled it). Ordered by room. The target is the outlet, so a till reads its own outlet’s roster only. Guest names are personal data: a reader not cleared for them gets the rows without them. 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
Example
{ "return_value": { "rows": [ { "status": "expected" } ] }}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.