Fortrip

Cancel order

Cancel an order under its terms, for the penalty the user agreed to.

MCP: cancel_order

Usage

fortrip orders cancel <orderId> --max-penalty <amount>

Options

FlagFieldDescription
<orderId>orderIdThe orderId of the order to cancel.
--max-penalty <amount>maximumPenaltyThe penalty the user agreed to, exactly as orders get shows it, in the order's currency, e.g. 12.50. Without it, the command cancels nothing: it shows the penalty and the refund.

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 (cancel) object. Errors go to stderr with an exit code.

On this page