Get booking details
Bookings
Retrieve everything the PMS holds about one booking: holder and guests, assigned room, dates and times, price and amounts, board and cancellation policy, occupancy, source channel, notes, housekeeping, tasks, the pack it was sold with and its segments. Money is always in the property's own currency. A cancelled booking says when it was cancelled in cancelledAt, read from its history. The ID of a block (a room closed by the staff) also answers here: it comes with bookingType, no customer, bookingStatus cancelled and cancelledAt null. What it does NOT include, because each has its own endpoint: the charge breakdown (/products), payments, invoices, proformas and deposits. Booking IDs come from the search endpoints or from the response of the creation endpoint.
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
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.
Booking ID. Obtained from the search endpoints (GET /api/v2/bookings/{pcode}/search) or returned by the booking creation endpoint.
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
Unique booking ID
Property code (identifies which hotel/property this booking belongs to)
Group ID if this booking is part of a multi-room group reservation. All bookings in the same group share this ID. Absent for an individual booking
Total of the whole group reservation, extras included, as the legacy stores it on each member. Only on group bookings
Number of rooms in the group reservation. Only on group bookings
Check-in date (YYYY-MM-DD)
Check-out date (YYYY-MM-DD)
Expected arrival time as the guest or channel wrote it. Usually HH:mm, but it is free text: it may be H:mm, HH:mm:ss or a sentence that contains a time. Absent when the field holds no time at all
Expected departure time, same rules as arrivalHour. Absent when the field holds no time at all
Total number of nights for the stay
Deprecated: the link to the previous guest web app, retired in November 2026. It no longer opens the booking: it leads to a page that offers the guest, once verified, the link to the new guest web app by email. It will be removed. The new link carries access to the stay, so no API hands it out: the property sends it to the guest.
Date the booking was received (YYYY-MM-DD), without time
Internal planning key, <roomTypeId>_<roomId>, or <roomTypeId>_PLAYGROUND when no room is assigned. Read room instead
Price of this booking. For an individual booking it is the booking total as the legacy stores it (accommodation plus extras and taxes); for a member of a group it is the accommodation of this room. Use accommodationPrice for the accommodation alone
Accommodation price of this booking, without extras, for both individual and group bookings. Null when the legacy holds no amount
Amount already paid. On a group booking it is the paid amount of the whole group, repeated on every member. Null when the legacy holds no value
Total of the extra services/products. On a group booking it is the total of the whole group, repeated on every member
Amount the hotel keeps from a cancelled or no-show booking, or from an early departure (a confirmed booking with a value above 0). Absent when the booking has none
Departure date (YYYY-MM-DD) the booking had before an early departure shortened it. Only in the booking detail, and only for a confirmed booking with a retained amount whose history records it
When the booking was cancelled, ISO 8601 in UTC; on a cancelled, no-show or temporary-cancelled booking; null on any other, and on a block, although a block reads bookingStatus cancelled. When it entered the cancellation it is in now: the first cancellation its history records after the last status change that brought it back, so a cancellation recorded again later (a channel manager notifying it twice) does not move it; never later than the last change of the booking. A booking whose history records no cancellation (some imported or very old ones) gives its last change instead, which any edit after the cancellation moves. Only in the booking detail
Whether the booking is locked (prevents modifications)
Display color for this booking in the calendar view (hex code). Absent when not set
Whether this booking was imported from an external system or channel manager
Meal plan / board type: nb (no board), bb (bed & breakfast), hb (half board), fb (full board), ai (all inclusive). A booking the legacy recorded as sold inside a pack may carry pack instead
Cancellation policy ID, as a string: 4 (flexible cancellation) and 6 (non-refundable) are the built-in ones; any other value is a custom policy of the property (see GET /api/properties/{pcode}/settings/custom-policies). Absent when the booking has none
Room assignment details (room ID, room type ID)
Booking locator / confirmation code — the channel reservation code shared with the guest and OTAs. Absent when there is none
ID of the pack the booking was sold with. Only in the booking detail and in /search/only-groups; never in /search or /search/only-single
The pack the booking was sold with. Only in the booking detail, and only when packId points to a pack that still exists
Main guest / booking holder. Absent on a block (see bookingType)
ID of the company associated with this booking (for corporate/business bookings). Absent when there is none
Notes associated with the booking (guest requests, internal notes)
Number of guests for this individual room (adults, children, babies)
Total occupancy across all rooms in the group. Only on group bookings
OTA / channel the booking came from. Use the GET /api/otas endpoint to get its name. Null when the legacy holds no channel
Check-in status: waiting-check-in, checked-in, checked-out, or cancelled (every booking whose bookingStatus is cancelled, blocks included)
Booking status: ready (confirmed), tentative (held until its release date), cancelled, no-show, or temporary-cancelled. A block (see bookingType) also reads cancelled
Date and time (YYYY-MM-DD HH:mm) at which a tentative booking is released if not confirmed. Only on tentative bookings
Virtual payment details (e.g. virtual credit card from an OTA). Absent when the booking has none
Overall payment status: no-paid, parcial-paid, paid, or over-paid
Invoice status: no-invoiced, parcial-invoiced, or invoiced
Present only on a block — a room closed by the staff, not a sale. Absent on every booking
Tasks/to-do items linked to this booking (e.g. prepare welcome gift, arrange transfer)
Guests registered on this booking, sorted by position. Empty when there are none. Each one carries personal data from the identity document
Whether this is a direct sale (booked directly with the hotel, not through an OTA)
Housekeeping schedule and cleaning configuration for this booking
Segments assigned to the booking itself. Only in the booking detail
Segments assigned to the holder and guests of the booking. Only in the booking detail
Where the segments of the booking apply: booking, customer or both. Only in the booking detail, where it is null when the booking has no segments
One of:bookingcustomerboth
What is a pcode?
Rate limits