Search & hotels
Prebook a Room
Verify the selected room’s current availability and price immediately before booking.
POST
Prebook is the final supplier-backed availability and price check before
creating a booking. Send only the
The prebook response also includes hotel details, cancellation information,
important notes, and compliance requirements. Some suppliers can require
additional guest documents for particular stays or nationalities; collect and
send those details when the response and booking contract require them.
The OpenAPI section below provides the exact prebook request, availability and
price fields, cancellation data, compliance data, and response schema.
booking_token from the selected room option;
Unifystays resolves supplier-specific booking codes and prebook context
server-side.
Request Example
Handle the Result
1
Check availability
Continue only when
data.status is AVAILABLE. When it is SOLDOUT,
return the customer to live room options.2
Check the price
Inspect
data.price_status and data.pricing. Show any new price or
pricing condition to the customer before booking.3
Keep booking inputs
Store
data.unifystays_prebooking_id, the returned rooms and their
room_ref values, and any applicable compliance requirements.4
Create the booking
Send the prebooking ID and room-wise guest details to
Create Booking.
Authorizations
Environment-specific API key created in the Unifystays portal
Headers
Body
application/json
Short signed booking token from rooms API option (booking_token). Provider routing and prebook context are resolved server-side from Postgres context.
Example:
"bq1.Y0QxTmtKc21Wbmk.3.6zI4D6fUEw2jVv7KQdM4Kw"