Orders
Cancel order
Cancel an order under its terms, for the penalty the user agreed to.
Usage
fortrip orders cancel <orderId> --max-penalty <amount>Options
| Flag | Field | Description |
|---|---|---|
<orderId> | orderId | orderId of the order to cancel, from get order or list orders. |
--max-penalty <amount> | maximumPenalty | The 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.