F&B room-service board
const url = 'https://api.aerandil.com/v1/functions/hospitality.function.fnb_room_service_board/invoke';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"params":{},"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_room_service_board/invoke \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "params": {}, "target": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "object_type": "hospitality.outlet" } }'The target outlet’s in-room dining orders still on the dispatch sheet — every room_service check whose delivery_status is not yet cleared, a settled one whose tray is still upstairs included — ordered by promised_at (then by when it opened). checks, per order: the check (id) and its number and status (open or settled), daypart, covers, the room, the stay and its guests’ names, when it opened and was promised, where it is (delivery_status, dispatched_at, delivered_at, the runner_id and the conveyance), late (promised and passed, not yet delivered), and its total_due / balance_due in currency. Narrowed in the store to the orders on the sheet, so the board never ships the cleared history. The target is the outlet, so a till reads its own outlet’s board 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
Example
{ "return_value": { "checks": [ { "conveyance": "tray", "daypart": "breakfast", "delivery_status": "taken", "status": "open" } ] }}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.