Create order
Order an offer: an unpaid order with a payment link.
MCP: book_hotel
Usage
fortrip hotels book [options]Options
| Flag | Field | Description |
|---|---|---|
--offer <off_> | items.offerId | The offer to order, by offerId from hotels offers. |
--guest <room>:<first>:<last>... | items.hotel.rooms.guests | A guest, as room:first:last, e.g. 1:John:Smith for room 1. Repeat for each guest: at least one per room of the offer, no more than the room sleeps. Names in Latin letters as on the passport; transliterate accents (Müller → Mueller). |
--first-name <name> | contact.firstName | Required unless --body gives it. Contact person's first name, at most 59 characters. |
--last-name <name> | contact.lastName | Required unless --body gives it. Contact person's last name, at most 59 characters. |
--email <email> | contact.email | Required unless --body gives it. Contact email; the confirmation is sent here. |
--phone <phone> | contact.phone | Required unless --body gives it. Contact phone number, with country code. |
--special-requests <english text> | items.hotel.specialRequests | Requests for the hotel, in English. Not guaranteed. |
--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 Order object. Errors go to stderr with an exit code.