Quote stay
const url = 'https://api.aerandil.com/v1/functions/hospitality.function.quote_stay/invoke';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"params":{"adults":1,"arrival_date":"2026-04-15","departure_date":"2026-04-15","property_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","rate_plan_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","room_type_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}}'};
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.quote_stay/invoke \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "params": { "adults": 1, "arrival_date": "2026-04-15", "departure_date": "2026-04-15", "property_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "rate_plan_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "room_type_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } }'The read half of create_reservation’s admission gate. For a stay (arrival, departure) at an occupancy (adults, the grid’s occupancy), one offer per room type and rate plan the property sells — or the one asked for: whether the action would admit it without a nightly_rate, the published price of every night and the total, the rooms the availability ledger will still sell and the ceiling it sells to, the stop-sold nights, the stay-length window in force for the arrival, and every blocker in the STAY_BLOCKERS vocabulary, each carrying the refusal the action would make for it verbatim. The action refuses with the first blocker, in the order it checks; the quote returns them all, so the two cannot disagree about what is wrong. A room per offer: a multi-room stay is several quotes. Read-only — emits no edits and holds nothing.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
object
Examplegenerated
{ "params": { "adults": 1, "arrival_date": "2026-04-15", "departure_date": "2026-04-15", "property_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "rate_plan_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "room_type_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }}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
Example
{ "return_value": [ { "blockers": [ { "kind": "stay_shape" } ] } ]}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.