Validate Quote cancellation penalty (dry-run)
POST
/v1/functions/hospitality.function.quote_cancellation_penalty/validate
const url = 'https://api.aerandil.com/v1/functions/hospitality.function.quote_cancellation_penalty/validate';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"params":{"cancel_at":"2026-04-15T12:00:00Z","reservation_room_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"},"target":{"id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","object_type":"hospitality.reservation"}}'};
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_cancellation_penalty/validate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "params": { "cancel_at": "2026-04-15T12:00:00Z", "reservation_room_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }, "target": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "object_type": "hospitality.reservation" } }'Dry-run of invoke_hospitality_function_quote_cancellation_penalty’s parameter checks. No handler dispatch, no store reads — just parameter shape, target presence, target type, unknown-parameter rejection.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
params
required
object
cancel_at
required
Hypothetical cancellation time
string format: date-time
reservation_room_id
One room of the booking, to quote its part alone
string format: uuid
target
required
object
id
required
string format: uuid
object_type
required
Responses
Section titled “Responses”Validation outcome. result is valid or invalid; per-parameter diagnostics are always populated for every declared parameter.
Media typeapplication/json
object
errors
Function-level errors not tied to a single parameter (missing target, target type mismatch, unknown parameter names). Absent when empty.
Array<string>
function
required
string
parameters
required
Per-parameter diagnostics keyed by api_name.
object
key
additional properties
object
errors
Array<string>
result
required
value
required
The serialised value the server interpreted, or null if the parameter was not supplied.
result
required
Example
{ "parameters": { "additionalProperty": { "result": "valid" } }, "result": "valid"}