Confirm or cancel a reservation
hotelrunner_update_reservation_stateWRITE: move ONE reservation to the next state: event 'confirm' (hotelier accepts it) or 'cancel' (cancels it; cancel_reason is required: customer, no_room, no_show or invalid_price). Cancel is not reversible through this API and releases the room; HotelRunner may notify the guest or the sales channel (Booking.com, Expedia, ...), so only cancel when the user clearly asked for it, and pass confirm=true for a cancel. Only possible when the reservation's requires_response is true and the event is in its next_states (see hotelrunner_get_reservation); otherwise HotelRunner answers state_change_is_not_available. Counts as one of the property's 250 requests per day (5 per minute). PUT /api/v2/apps/reservations/fire.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | Yes | 'confirm' or 'cancel'. | |
| confirm | No | Required true for event 'cancel': the user explicitly approved cancelling this reservation (not reversible). | |
| hr_number | Yes | HotelRunner reservation code (hr_number). | |
| cancel_reason | No | Required for cancel: customer, no_room, no_show or invalid_price. |