Skip to main content
GET
If a Create Booking call times out, or your system fails before saving data.booking_id, look the booking up with the same Idempotency-Key you sent on the create call. The response has the same shape as Get Booking Status.

Request Example

Reading the result

  • 200: a booking exists for the key. Save data.booking_id and continue with the normal polling or webhook flow.
  • 404 BOOKING_NOT_FOUND: no booking was created with the key. Retrying Create Booking with the same key and payload is safe; if the original request is still in flight, the retry returns that same booking instead of creating a second one.
The lookup is scoped to your organization and never creates, replays or changes a booking.

Authorizations

x-api-key
string
header
required

Environment-specific API key created in the Unifystays portal

Headers

Idempotency-Key
string
required

The key sent on the original POST /hotels/book.

X-Unifystays-Contract-Version
enum<string>
default:1

Hotel API contract version. Missing defaults to v1.

Available options:
1

Response

contract_version
string
required
Example:

"1"

success
boolean
required
Example:

true

message
string
required
Example:

"Booking request accepted and is being processed."

data
object
required