Create one-click checkout
create_one_click_checkoutCreate a checkout for the signed-in user with a saved card pre-selected, and return a getmyhotels.com URL where they confirm + pay in one click. Does NOT charge the card — the user confirms on the hosted page. Get the savedPaymentMethodPublicId from list_payment_methods. Confirm the hotel, room, dates, and price with the user first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Hotel `ref` from `search_hotels` (e.g. 'TBO:1402689'). | |
| price | Yes | Total 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. | |
| checkOut | Yes | Check-out date, ISO 8601. | |
| children | No | Children (default 0). | |
| currency | Yes | ISO 4217 currency (e.g. 'USD'). | |
| roomName | Yes | Room name. | |
| hotelName | Yes | Hotel name. | |
| supplierCode | No | Supplier code (if `ref` omitted). | |
| supplierRoomId | Yes | Bookable room/rate id from `search_hotels`. | |
| supplierHotelId | No | Supplier hotel id (if `ref` omitted). | |
| savedPaymentMethodPublicId | Yes | Saved card `publicId` from `list_payment_methods`. |