Create checkout
create_checkoutCreate a secure checkout for a chosen hotel room and return a getmyhotels.com URL where the guest completes payment. This does NOT charge the card — the guest pays on the hosted page. Confirm the hotel, room, dates, and price with the user before calling. Call get_checkout_quote first to confirm the live price.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Hotel `ref` from `search_hotels` (e.g. 'TBO:1402689'). Alternative to supplierCode + supplierHotelId. | |
| price | Yes | Total to charge for the WHOLE stay (use `grandTotal` from `get_checkout_quote` verbatim — do not multiply it by the number of nights). | |
| rooms | No | Rooms (default 1). | |
| adults | No | Adults (default 2). | |
| checkIn | Yes | Check-in date, ISO 8601 (YYYY-MM-DD). | |
| checkOut | Yes | Check-out date, ISO 8601 (YYYY-MM-DD). | |
| children | No | Children (default 0). | |
| currency | Yes | ISO 4217 currency of `price`/`totalPrice` (e.g. 'USD'). | |
| roomName | Yes | Room name (from the chosen room). | |
| hotelName | Yes | Hotel name (from `search_hotels`). | |
| childrenAges | No | Age of each child. | |
| supplierCode | No | Supplier code (from `search_hotels`). Required if `ref` is omitted. | |
| supplierRoomId | Yes | Bookable room/rate id from the chosen room in `search_hotels`. | |
| supplierHotelId | No | Supplier hotel id (from `search_hotels`). Required if `ref` is omitted. |