F&B open checks
const url = 'https://api.aerandil.com/v1/functions/hospitality.function.fnb_open_checks/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_open_checks/invoke \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "params": {}, "target": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "object_type": "hospitality.outlet" } }'An outlet’s open checks, oldest first — the till’s check list: each check’s id and number, order kind, the label of the table it is seated at (null off the floor), covers, when it opened, its total_due and balance_due with their currency, and its owner (server_id, and opened_by, the principal that opened it), its business_date (the hotel date it opened on) and carried — true once the night audit has closed that day and the check rode over the roll (the house’s fnb_open_checks_at_roll = carry). Narrowed to open checks in the store, so the read never ships the outlet’s settled history. The target is the outlet. 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": { "checks": [ { "delivery_status": "taken", "order_kind": "dine_in" } ] }}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.