Step 1 of 2 in the booking flow. Create a prebook session to check the availability of a rate and get final pricing before payment. This prebookId needed to complete the booking.
usePaymentSdk=true to use client-side payment formsProvide the offerId from your hotel rates search and set usePaymentSdk (true/false). Returns a prebookId to use in the next step.
Next Step: Use the prebookId with /rates/book to complete the booking.
Optional flag to include credit line information in the response. When set to true, credit line details will be returned if the user has a credit line available. This can also be provided in the request body as includeCreditBalance.
The unique identifier of the selected offer from the search results.
Specifies whether the fields needed to call the payment processing SDK are returned. Set to true if using the SDK for payment processing.
An optional voucher code to apply discounts to the booking. The vouchers API allows creation of these discounts
A list of additional services or extras that can be added to the booking. For example, adding an Uber voucher or an esim card. The final booking amount is the sum of the offer's total price and the cost of any addons. Each addon's price is added individually to reflect all extras in the billed total.
An optional array of bed type IDs to specify preferred bed configurations for the rooms being booked. The availability of specific bed types depends on the hotel's inventory.
Optional flag to include credit line information in the response. When set to true, credit line details will be returned if the user has a credit line available.
false