Skip to main content
GET
Use this endpoint for booking history, operational views, customer service, and finance reconciliation. It returns paginated bookings belonging to the current organization.

Request Example

Filter and Sort

The API supports free-text search across booking identifiers and hotel context, along with filters for:
  • Booking status and terminal state.
  • Hotel, city, and provider.
  • Stay dates and booking creation dates.
  • Sort field, sort direction, page, and limit.
Use the returned data.meta for pagination and data.summary for aggregate counts. For one booking’s current state, call Get Booking Status. For a full itinerary or support record, call Get Booking Details.
A list result is ideal for dashboards and support screens. Do not use a cached list row as the final truth for a booking that is currently processing or being cancelled; retrieve its latest status instead.
The OpenAPI section below provides the complete filtering, sorting, pagination, and response field reference.

Authorizations

x-api-key
string
header
required

Environment-specific API key created in the Unifystays portal

Headers

Query Parameters

Free-text search across booking ids/codes, HCN, hotel name, city, and country (case-insensitive).

Example:

"ubk_"

status
enum<string>[]

Filter by status. Accepts repeated values or CSV, e.g. status=CONFIRMED&status=ON_HOLD or status=CONFIRMED,ON_HOLD.

Available options:
PROCESSING,
CONFIRMED,
ON_HOLD,
FAILED,
CANCELLATION_PENDING,
CANCELLED
Example:
hotel_id
string

Filter by hotel id.

Example:

"13553916"

city
string

Filter by city (case-insensitive exact).

Example:

"Dubai"

provider_code
string

Filter by provider code.

Example:

"TRIPJACK"

check_in_from
string

Check-in date >= (YYYY-MM-DD).

Example:

"2026-05-01"

check_in_to
string

Check-in date <= (YYYY-MM-DD).

Example:

"2026-05-31"

created_from
string

Created date >= (ISO 8601).

Example:

"2026-04-01T00:00:00Z"

created_to
string

Created date <= (ISO 8601).

Example:

"2026-04-30T23:59:59Z"

is_terminal
boolean

Only return terminal (true) or non-terminal (false) bookings.

Example:

false

sort_by
enum<string>
default:created_at

Field to sort by.

Available options:
created_at,
check_in,
check_out,
total_payable_now,
status
sort_order
enum<string>
default:DESC

Sort direction.

Available options:
ASC,
DESC
page
number
default:1

Page number (1-based).

Required range: x >= 1
Example:

1

limit
number
default:20

Results per page.

Required range: 1 <= x <= 100
Example:

20

Response

200 - application/json
success
boolean
required
Example:

true

message
string
required
Example:

"Bookings fetched successfully."

data
object
required