Hotels
Live offers
Live bookable offers for up to 15 hotels.
Usage
fortrip hotels offers --hotel <htl_>... [options]Options
| Flag | Field | Description |
|---|---|---|
--hotel <htl_>... | hotelIds | A hotel to price, by hotelId from hotels search; repeat for each, up to 15. |
--check-in YYYY-MM-DD | stay.checkIn | Check-in date in the hotel's calendar, yyyy-MM-dd. |
--check-out YYYY-MM-DD | stay.checkOut | Check-out date in the hotel's calendar, yyyy-MM-dd. Stays are 1 to 30 nights. |
--room <adults[:age,…]>... | stay.rooms | A 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-breakfast | filters.requireBreakfast | Keep only offers that include breakfast. |
--require-free-cancellation | filters.requireFreeCancellation | Keep only offers that can still be cancelled free of charge. |
--limit-per-hotel <n> | limitPerHotel | Offers per hotel, 1 to 20. Default 5. |
--locale en|zh | locale | Language for names and text in the response: en or zh. |
--display-currency USD|CNY | displayCurrency | Currency 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.