Hotels
Live rates
Live rooms and rates for up to 15 hotels.
Usage
fortrip hotels rates --hotel <id>... --check-in YYYY-MM-DD --check-out YYYY-MM-DD --rooms <n> --adults <n> [options]Options
| Flag | Field | Description |
|---|---|---|
--hotel <id>... | hotelIds | Hotels to price, by id from hotels search: repeat the flag or comma-separate, up to 15. Each call takes about 15 seconds. |
--check-in YYYY-MM-DD | checkIn | Check-in date, yyyy-MM-dd. |
--check-out YYYY-MM-DD | checkOut | Check-out date, yyyy-MM-dd. Stays are 1 to 15 nights. |
--rooms <n> | rooms | Number of rooms; every room has the same occupancy |
--adults <n> | adults | Adults per room, not in total (2 rooms for 4 adults = --rooms 2 --adults 2) |
--child-age <age>... | childrenAges | Age of each child in one room (0-17), per room |
--nationality <CC> | nationality | Guest nationality, ISO 3166-1 alpha-2 in upper case, e.g. CN. Some rates are restricted by nationality; booking doesn't send it, so such a rate may change or be refused at booking |
--board RO|BB|HB|FB|BL|BD|HBBL|HBLD|AI... | boardCodes | Keep only these meal plans: RO room only, BB breakfast, HB half board, FB full board, AI all inclusive, and so on. |
--free-cancellation | freeCancellation | Keep only rates that can still be cancelled free of charge right now. |
--include-unbookable | bookableOnly | Also keep rates that are not bookable on every night (by default only bookable rates are returned). |
--max-rooms <n> | maxRoomsPerHotel | Return the N cheapest rooms per hotel. Default 10. |
--currency CNY|USD | currency | Currency to show prices in. Prices are converted from the supplier's at Stripe's exchange rate; the response's fx says how. |
--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
Prints the Rates result object on stdout. Errors go to stderr with an exit code.