Search GetMyHotels for hotels matching a query. Returns a list of results with ids that can be passed to `fetch` for full details. Provide the destination and travel dates in the query.
輸入參數query必填roomsadultscheckIncheckOutchildrenkeywordsdestinationchildrenAgesguestNationality
Fetch the full record for a result id returned by `search` (a hotel) or for a booking reference (prefixed 'bk_'). Returns a document with id, title, text, url, and metadata.
輸入參數id必填
search_hotels
Search hotels
Search live hotel availability for a destination and date range. Returns a price-sorted list of hotels (JSON in the text), each with an opaque `ref` and an indicative stay price. To book: call `get_rooms` and pass the chosen room's `offerRef` to `get_checkout_quote` then `create_checkout`. For a hotel's other rooms (or a hotel not in the list), call `get_rooms`. Narrow with `keywords` (a hotel name, area, or amenities).
輸入參數roomsadultscheckIn必填checkOut必填childrenkeywordsdestination必填childrenAgesguestNationality
List the bookable rooms for ONE hotel and date range. Each room's `offerRef` is what you pass to `get_checkout_quote` / `create_checkout`. Use the hotel `ref` from `search_hotels` or `search`. Call this to see all of a chosen hotel's rooms, or to refresh availability before checkout.
輸入參數refroomsadultscheckIn必填checkOut必填childrensupplierCodesupplierHotelId
get_hotel_details
Get hotel details
Get full property details (description, amenities, photos, policies, location) for a hotel, identified by its `ref` from `search_hotels` (or its supplierCode + supplierHotelId).
輸入參數refroomsadultscheckIncheckOutchildrensupplierCodesupplierHotelId
get_checkout_quote
Get checkout quote
Re-price a specific room live against the supplier before checkout (no booking, no charge). Use the `offerRef` and price/currency from `get_rooms`. Returns the authoritative grand total, a `rateValidUntil` timestamp, and any taxes/fees.
輸入參數refroomsadultscheckIn必填checkOut必填childrencurrency必填offerRefpromoCodetotalPrice必填childrenAgessupplierCode另有 2 個
create_checkout
Create checkout
Create 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.
輸入參數refprice必填roomsadultscheckIn必填checkOut必填childrencurrency必填offerRefroomName必填hotelName必填childrenAges另有 3 個
Look up a hotel booking by its management token (sent in the confirmation email). Returns the booking status, hotel, dates, and guest details.
輸入參數bookingToken必填
list_trips
List saved trips
List the signed-in user's saved trips (itineraries).
無需輸入參數。
Create a new saved trip (itinerary) for the signed-in user.
輸入參數title必填budgetendDate必填startDate必填descriptionbudgetCurrency
add_trip_item
Add trip item
Add an item (hotel, activity, meal, etc.) to a saved trip on a given day.
輸入參數day必填type必填title必填sortOrderdescriptionitineraryPublicId必填
list_my_bookings
List my bookings
List the signed-in user's hotel bookings.
輸入參數pagelimit
get_my_booking
Get my booking
Get full details of one of the signed-in user's bookings by its public id.
輸入參數publicId必填
request_booking_action_code
Request booking action code
Email a 6-digit verification code to the booking owner, required before cancelling or modifying a booking. Step 1 of 2 — then call `cancel_booking`/`modify_booking` with the code.
輸入參數action必填publicId必填
cancel_booking
Cancel booking
Cancel one of the signed-in user's bookings. Requires the 6-digit `verificationCode` from `request_booking_action_code`. This may be irreversible and can trigger a refund per policy.
輸入參數reasonpublicId必填verificationCode必填
modify_booking
Modify booking
Change one of the signed-in user's bookings. Requires the 6-digit `verificationCode` from `request_booking_action_code`. Special-request edits always apply. A DATE change is pushed to the hotel supplier as a cancel-and-rebook at current availability, so it only works for suppliers that support amendment — for others (and when no room is available for the new dates) it returns an error asking you to cancel and rebook instead. A date change can shift the price and issue a new confirmation; the result's `supplierModifyStatus` says whether the supplier reservation was actually changed (`modified`), simulated (`simulated`), or the edit stayed local (`local_only`, e.g. special requests only). Never promise a date change went through unless `supplierModifyStatus` is `modified` or `simulated`.
輸入參數checkIncheckOutpublicId必填specialRequestsverificationCode必填
list_payment_methods
List saved cards
List the signed-in user's saved payment cards (brand, last 4, expiry, default). Use the returned `publicId` with `create_one_click_checkout` to pre-select a card.
無需輸入參數。
create_one_click_checkout
Create one-click checkout
Create 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.
輸入參數refprice必填roomsadultscheckIn必填checkOut必填childrencurrency必填offerRefroomName必填hotelName必填supplierCode另有 3 個