Get room availability
Rooms
Which rooms are free for a date range. The answer comes in two maps, both keyed by roomTypeId: availables holds the types with rooms still free, each listing the rooms themselves, and notAvailables holds the types that are fully booked. A type appears in one or the other, never both; a type with no physical rooms appears in neither. It is availability by physical room: a booking occupies the room it is assigned to, so a booking with no room assigned yet takes nothing here, and a room whose only bookings in the range are out-of-order blocks is listed with locked: true — present, but not bookable. Dates work the way a hotel night does: a room whose guest leaves on your arrival date, or arrives on your departure date, counts as free — so a stay never blocks the day it ends. Pass bookingId when you are changing an existing booking, so its own room is not counted as occupied by itself and shows up as available. Availability is a snapshot and can change between this call and creating the booking; the creation endpoint checks it again — the room, and the units sold per night, which also counts bookings with no room assigned — and rejects the request if it no longer fits.
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
Exclude this booking's room from the occupied count. Useful when modifying an existing reservation to see which rooms are still available
Check-out date (YYYY-MM-DD). A room occupied by a guest checking in on this day is considered available
Check-in date (YYYY-MM-DD). A room occupied by a guest checking out on this day is considered available
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
Room types with at least one room that is not taken by a booking in the range, keyed by roomTypeId. Each entry lists those rooms; a room with locked: true is blocked out of order and cannot be booked, so a type can be here with nothing bookable. Empty object when there is none
Room types whose every room is taken by a booking in the requested date range, keyed by roomTypeId. Empty object when there is none
What is a pcode?
Rate limits