Create Checkout
create_checkoutCreates a hosted Revolut payment link for a prepared booking — the RECOMMENDED way for ordinary consumers (no credit line) to pay. Required: bookingId (the preparedBookingId from prepare_booking) and currency (3-letter); optional backUrl and successUrl. REQUIRES A SESSION: pass the token returned by guest_login as the sessionToken argument. Returns a checkoutUrl (valid ~20 minutes), a checkoutToken, and a message. Share the checkoutUrl with the guest to complete payment — the booking is confirmed automatically by webhook once payment succeeds (do not call confirm_booking, which is B2B-only).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backUrl | No | Cancel/back redirect URL (optional, defaults to locktrip.com) | |
| currency | Yes | 3-letter currency code (e.g. USD, EUR, GBP) | |
| bookingId | Yes | Booking ID from prepare_booking (preparedBookingId) | |
| successUrl | No | Success redirect URL (optional) | |
| sessionToken | No | Optional guest-checkout token returned by `guest_login`. |