Swap one item of a Trip720 trip
swap_trip_itemReplaces one line of an option with one of the numbered choices from trip_alternatives, and re-prices the whole trip as the website does. Returns the updated option and its Safe Trip Total before and after. Side effect: the trip saved on Trip720 changes; the previous choice can be chosen again the same way. Nothing is booked or paid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| choice | Yes | The number of the choice from trip_alternatives. | |
| lineId | Yes | ||
| tripId | Yes | ||
| optionId | Yes |