Skip to main content
POST
Call this endpoint after the customer selects a hotel. Send the same dates, occupancy, and nationality used for hotel search. Unifystays calls the active suppliers in parallel and normalizes their room options.

Request Example

Use the Response

The response contains the static room catalogue, supplier options, and a stream_id with sse_stream_url for progressive provider results. Every bookable option includes a short signed booking_token required by Prebook a Room.
  • An option can have our_room: null and still be bookable.
  • Keep the selected option’s booking_token only for the immediate prebook step; it is time-sensitive.
  • Use the room stream when your product needs to render options as providers return them. See Stream Room Updates.
  • Request fresh room options if the stay dates, guest mix, nationality, or selected hotel changes.
Do not cache room options or reuse their booking tokens as a checkout guarantee. Supplier-backed availability and price can change.
The OpenAPI section below provides the complete request body and response fields, including room options and stream identifiers.

Authorizations

x-api-key
string
header
required

Environment-specific API key created in the Unifystays portal

Headers

Path Parameters

hotel_id
string
required

Internal hotel ID (bigint as string)

Example:

"123456"

Body

application/json
check_in
string
required

Check-in date in YYYY-MM-DD format. Must be today or a future date.

Example:

"2026-07-01"

check_out
string
required

Check-out date in YYYY-MM-DD format. Must be after check_in.

Example:

"2026-07-04"

rooms
object[]
required

Room configurations — 1 to 5 rooms. Each room specifies adults and optional child ages.

Required array length: 1 - 5 elements
Example:
nationality
string
default:IN

Guest nationality — ISO alpha-2 code (e.g. IN, AE, US). Defaults to IN.

Example:

"IN"

Response

success
boolean
required
Example:

true

message
string
required
Example:

"Rooms fetched successfully"

data
object
required