Fortrip

Create order

Create an unpaid order for an offer, with a payment link.

MCP: create_order

Usage

fortrip orders create [options]

Options

FlagFieldDescription
--offer <off_>items.offerIdRequired unless --body gives it. The offer to order, by offerId from hotels offers.
--guest <room>:<first>:<last>...items.hotel.rooms.guestsRequired unless --body gives it. 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).
--name <name>contact.nameRequired unless --body gives it. Contact person's full name, in any script, at most 119 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