Fortrip

Create order

Order an offer: an unpaid order with a payment link.

MCP: book_hotel

Usage

fortrip hotels book [options]

Options

FlagFieldDescription
--offer <off_>items.offerIdThe offer to order, by offerId from hotels offers.
--guest <room>:<first>:<last>...items.hotel.rooms.guestsA 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.firstNameRequired unless --body gives it. Contact person's first name, at most 59 characters.
--last-name <name>contact.lastNameRequired unless --body gives it. Contact person's last name, at most 59 characters.
--email <email>contact.emailRequired unless --body gives it. Contact email; the confirmation is sent here.
--phone <phone>contact.phoneRequired unless --body gives it. Contact phone number, with country code.
--special-requests <english text>items.hotel.specialRequestsRequests 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.

On this page