Confirm Hotel Booking
confirm_bookingConfirms and finalizes a booking using a B2B credit line — PARTNER ACCOUNTS ONLY. Guests cannot use this; ordinary consumers must instead pay via create_checkout (recommended) or get_payment_url. Required: bookingInternalId and quoteId (both from prepare_booking); paymentMethod defaults to CREDIT_LINE. REQUIRES A B2B PARTNER SESSION with a credit line; a guest_login session has no credit line and is rejected. Returns accepted and message, plus a voucherUrl on success. On accepted:false, READ serviceUnavailable: if it is absent the credit-line service gave a real verdict (insufficient balance, inactive line) and the answer will NOT change on retry — tell the user and stop; if it is true the credit-line service was unreachable, which is a system fault and not a decision about their credit. Even then do NOT blindly retry: the reservation may already have been applied — re-read the booking with get_booking_details first. Note also that accepted:true means the credit line was charged and the booking accepted, but the supplier reservation is completed asynchronously afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quoteId | Yes | Quote ID used in prepare_booking | |
| sessionToken | No | Optional guest-checkout token returned by `guest_login`. | |
| paymentMethod | No | Payment method (default: CREDIT_LINE for B2B) | |
| bookingInternalId | Yes | Booking ID from prepare_booking |