Book and pay for a ride
book_and_pay_transferBook an airport transfer and pay for it now with a Stripe shared payment token (spt_...) the traveller approved, for example from their Link wallet. CHARGES the traveller. Before calling: get the exact price with get_transfer_quote, tell the traveller the price and the cancellation terms (get_booking_terms), and get their explicit yes; pass that price as approved_total_usd. Needs every flight number and time the ride has, and the traveller's name, email and phone. An identical ride that is already paid is reported, never charged twice. Returns the booking reference; the confirmation email follows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guest | Yes | The traveller the booking is for | |
| direction | No | Required for a one-way | |
| trip_type | Yes | ||
| arrival_at | No | Flight arrival at MBJ, "YYYY-MM-DDTHH:MM" Jamaica time | |
| passengers | Yes | ||
| destination | Yes | Hotel or villa name, or id from find_transfer_destination | |
| departure_at | No | Hotel pickup for the flight home, "YYYY-MM-DDTHH:MM" Jamaica time. If you only know the flight time, pass departure_flight_at instead | |
| arrival_flight | No | Arrival flight number, e.g. AA1234 | |
| departure_flight | No | Departure flight number | |
| special_requests | No | Optional note for the driver, e.g. a car seat | |
| approved_total_usd | Yes | The total in USD the traveller approved; must equal the price from get_transfer_quote | |
| departure_flight_at | No | Flight home departs MBJ, "YYYY-MM-DDTHH:MM" Jamaica time; pickup is set 3 hours 30 minutes earlier | |
| shared_payment_token | Yes | Stripe shared payment token (spt_...) granted to MAPL Tours Jamaica for at least this amount in USD |