Fortrip

Live offers

Live bookable offers for up to 15 hotels.

MCP: get_hotel_offers

Usage

fortrip hotels offers --hotel <htl_>... [options]

Options

FlagFieldDescription
--hotel <htl_>...hotelIdsA hotel to price, by hotelId from hotels search; repeat for each, up to 15.
--check-in YYYY-MM-DDstay.checkInCheck-in date in the hotel's calendar, yyyy-MM-dd.
--check-out YYYY-MM-DDstay.checkOutCheck-out date in the hotel's calendar, yyyy-MM-dd. Stays are 1 to 15 nights; a longer one answers stay_unsupported (max_nights), and past 30 nights invalid_request: ask the user whether to split it into consecutive stays.
--room <adults[:age,…]>...stay.roomsA room, as adults or adults:age,age with each child's age, e.g. 2 or 2:6,9. Repeat for each room, up to 8; every room must be the same.
--require-breakfastfilters.requireBreakfastKeep only offers that include breakfast.
--require-free-cancellationfilters.requireFreeCancellationKeep only offers that can still be cancelled free of charge.
--limit-per-hotel <n>limitPerHotelOffers per hotel, 1 to 20. Default 10.
--locale en|zhlocaleLanguage for names and text in the response: en or zh.
--display-currency USD|CNYdisplayCurrencyCurrency to show prices in, USD or CNY. It never changes what is charged: payment is in USD.
--body <json|@file.json>—The raw request body as a JSON object, or @file.json to read it from a file. Flags override its fields.

Output

Compact text on stdout: one line per hotel, offer or order, with its ids, and every note. With --json, the response as JSON on one line.

The JSON is the Offers result object. Errors go to stderr with an exit code.

On this page