Search bookings
Bookings
Search and filter bookings for a property. Returns individual and group bookings together, one entry per booking, each with the same shape as the booking detail minus what only the detail reads. Every filter is optional: free text, room type, exact arrival date, exact departure date and status. Without status it returns ready, tentative, cancelled, no-show and temporary-cancelled bookings, never blocks. Results are ordered by booking ID, newest created first. How the free text (value) matches: name, surname, full name, email and locator by prefix, and the phone by its end; a term made only of digits matches a booking ID or locator that contains it and, failing that, the end of a phone number. A term that is not numeric and is shorter than 2 characters returns nothing. Three exceptions to keep in mind. First, a term made only of digits that is exactly a booking ID or a locator returns that single booking with total: 1, ignoring the room type, the dates and offset. Second, a text search looks first only at bookings that departed in the last 36 months, and goes through the whole history only when that finds nothing, no date filter was sent and the term has at least 3 characters or is numeric; a name search also considers at most 150 matching customers, so total can fall short of every possible match. Third, the cancelled and no-show status filters are the same filter: either of them returns both kinds. The response is { data, total }: data holds up to **20 bookings** and total counts the matches ignoring pagination — walk the pages by adding 20 to offset until you have read total of them. To search only one kind, use /search/only-single or /search/only-groups.
Console
Runs against the API from your browser, with the same request your server will send.
Environment
Production
https://uni-api.hotelgest.com
Calls hit live data with your own API key. A POST, PUT, PATCH or DELETE here changes a real property.
Credentials
The API key, sent on every request. A property admin creates it in the PMS under Settings → API keys; a partner receives one per property when the property activates its integration. It works only for the property it was issued for, and only on the endpoints granted to it.
This endpoint needs a credential. Without it you will get a 401.
Stored in this browser only. Never sent anywhere but the API host above.
Path parameters
Query parameters
Send the request to see the real response here.
Nothing is mocked. What comes back is what the API returned.
Requests go straight from your browser to the API host above — nothing is proxied through this site.
Path parameters
Property code. Identifies the property (hotel, apartment building, hostel) the request applies to. It must match the property your API key was issued for.
Query parameters
Free-text search: holder name, surname, email and locator (by prefix), phone (by its end) and booking ID. See the endpoint description for how it matches
Filter by room type ID. Get available room types from the GET /api/rooms/:pcode/types endpoint
Filter by one or more booking statuses (ready, tentative, cancelled, no-show, temporary-cancelled). Send multiple values to combine (e.g. status=ready&status=tentative). cancelled and no-show select the same bookings: either one returns both kinds. Default: every status, blocks excluded
One of:readytentativecancelledno-showtemporary-cancelled
Pagination offset — number of records to skip. Default is 0
Filter bookings whose check-out date matches this exact date (YYYY-MM-DD)
Filter bookings whose check-in date matches this exact date (YYYY-MM-DD)
Responses
Ok. If your API key answers encrypted — every key issued now does, and every partner credential — this body arrives as the encryption envelope ({ crypto, protected, wrappedKey, iv, payload, tag }, a compact JWE), and the schema below is what its payload decrypts to. See https://public-api.hotelgest.com/public/guides/encryption
Bookings of this page, newest created first. Same shape as the booking detail, without what only the detail reads: no packId, packInfo, segments, earlyDepartureOriginalEnd nor the holder loyalty, and housekeeping.dateToClean is only the booking's own date. Empty when nothing matches
Number of bookings matching the search, ignoring pagination. With a free-text search it can fall short of every possible match (see the endpoint description); an exact booking ID or locator answers 1
What is a pcode?
Pagination
Webhooks beat polling
Rate limits