Orders
Pay order
Pay an order with a shared payment token instead of its link.
Usage
fortrip orders pay <orderId> --token <spt_…> --total <USD decimal>Options
| Flag | Field | Description |
|---|---|---|
<orderId> | orderId | orderId of the order to pay, from create order or get order. |
--token <spt_…> | sharedPaymentToken | The shared payment token the user's wallet granted for this order, with the order's credential limits. |
--total <USD decimal> | total | The total the user approved, exactly as orders get shows it, in USD, e.g. 125.00. |
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 (pay) object. Errors go to stderr with an exit code.