Prebook a room
prebookHolds one room (an offer_id from search_hotels or get_hotel) with the partner for the named guest and returns booking_id, booking_secret (shown once), the confirmed total (price_changed and previous_total when the hotel repriced it), the cancellation terms and pay_url. Nothing is ever charged by a tool: the person named as guest pays on the pay_url page, Nuitee's payment form, and the booking exists only after that payment. Give the guest pay_url and tell them the total and the cancellation terms; if price_changed is true, say so. The guest's name must match the ID shown at check-in; email and phone with country code are required. Send an idempotency_key to make a retry safe. Needs a Quub API key (this connection has none yet: use request_api_key).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adults | No | Adults in the one room, 1 to 8. Default 2. | |
| checkin | Yes | Check-in date, YYYY-MM-DD, today or later. | |
| remarks | No | Special requests for the hotel, not guaranteed. | |
| checkout | Yes | Check-out date, YYYY-MM-DD, 1 to 30 nights after check-in. | |
| currency | No | ISO 4217 currency for the prices, default EUR. | |
| hotel_id | Yes | The hotel id the offer belongs to. | |
| offer_id | Yes | offer_id from search_hotels or get_hotel, for these dates and adults. | |
| guest_email | Yes | The confirmation goes here; the guest needs it to cancel. | |
| guest_phone | Yes | With country code, e.g. +31 6 1234 5678. | |
| nationality | No | Guest nationality, ISO 3166 alpha-2 (prices can depend on it). Default from the client's language, else NL. | |
| expected_total | No | The total you saw for this offer, so a change is flagged. | |
| guest_last_name | Yes | As on the ID shown at check-in. | |
| idempotency_key | No | Any unique string; the same key returns the same booking instead of a second one. | |
| guest_first_name | Yes | As on the ID shown at check-in. |