Booking
Create booking
Create (or resume) an order for one rate and get a payment link. Nothing is charged until the user pays.
Usage
fortrip book --hotel <id> --room-id <id> --rate-plan <code> --check-in <date> --check-out <date> --guest "First Last" --contact-name <name> --contact-phone <phone>Options
| Flag | Field | Description |
|---|---|---|
--hotel <id> | hotelId | Hotel id. |
--room-id <id> | roomId | roomId from rates. |
--rate-plan <code> | ratePlanCode | ratePlanCode from rates. |
--check-in <date> | checkIn | yyyy-MM-dd. |
--check-out <date> | checkOut | yyyy-MM-dd. |
--rooms <n> | rooms | Rooms. Default 1, up to 8. |
--adults <n> | adults | Adults per room. Default 2, up to 8. |
--child-age <n> | childrenAges | Repeat for each child. |
--guest "First Last[:room]" | guests | Repeat for each guest. The last word is the last name; :2 puts them in room 2. |
--contact-name <name> | contactName | Contact person. |
--contact-phone <phone> | contactPhone | Contact phone. |
--contact-email <email> | contactEmail | Contact email. |
--special-requests <text> | specialRequests | In English. Not guaranteed. |
Output
Prints the Booking result object on stdout. Errors go to stderr with an exit code.