hotel-bookings

Prebook

Hold an offer and report what it will actually cost.

Failure modes worth handling in the UI, by error.kind:

  • offer_unavailable — the commonest one (4 of 18 fresh offers measured). This offer cannot be sold; the room is gone, not the hotel.
  • offer_expired — re-search and re-prebook.
post/hotel-bookings/prebook

Request body

offer_idstring required
hotel_idstring required
quoted_all_in_totalnumber required
currencystring
hotel_namestring nullable
trip_idstring uuid nullable
conversation_idstring uuid nullable
booking_intent_idstring nullable
use_payment_sdkboolean

Response

Successful Response

booking_idstring uuid required
prebook_idstring required
statusstring required
hotel_idstring required
checkinstring date required
checkoutstring date required
rooms_pricedinteger required
refundable_tagstring nullable required
cancellation_policyobject nullable required
roomsobject[] required
sandboxboolean required

Changes

No recorded changes to this endpoint across all 1 revision of this API.