Search individual bookings (no groups)

Bookings

get/api/v2/bookings/{pcode}/search/only-singlex-api-key

Same filters, same rules and same response shape as /search (read its description: the exact-ID shortcut, the 36-month window and the shared cancelled / no-show filter apply here too), but it leaves group bookings out: only reservations of a single room. Use it when a group of ten rooms would otherwise flood the results with ten entries that belong together. data holds up to **15 bookings** per page — a different page size from /search, so do not reuse the same paging step.

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

gethttps://uni-api.hotelgest.com/api/v2/bookings/123456/search/only-single

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

pcode
number

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

value
string

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

roomTypeId
number

Filter by room type ID

status
enum

Filter by one or more booking statuses. cancelled and no-show select the same bookings: either one returns both kinds. Default: every status, blocks excluded

One of:readytentativecancelledno-showtemporary-cancelled

offset
number

Pagination offset — number of records to skip. Default is 0

end
string

Filter bookings whose check-out date matches this exact date (YYYY-MM-DD)

start
string

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

GetBookingResponseDto[]

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

total
number

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

Example response
1{
2 "data": [
3 {
4 "id": 789,
5 "pcode": 123456,
6 "groupId": 4521,
7 "groupPrice": 200,
8 "groupQuantity": 2,
9 "start": "2026-10-01",
10 "end": "2026-10-05",
11 "arrivalHour": "14:00",
12 "departureHour": "12:00",
13 "nights": 4,
14 "appUrl": "https://guest.hotelgest.com/?t=AbCdEf123",
15 "createdAt": "2026-09-30",
16 "resource": "1_12",
17 "price": 100,
18 "accommodationPrice": 100,
19 "paid": 100,
20 "totalExtras": 20,
21 "canceledCost": 45,
22 "earlyDepartureOriginalEnd": "2026-10-07",
23 "cancelledAt": "2026-09-21T08:00:00.000Z",
24 "locked": false,
25 "color": "#FF5733",
26 "imported": false,
27 "board": {},
28 "policy": "4",
29 "room": {
30 "id": 12,
31 "roomTypeId": 1,
32 "originalRoomTypeId": 1
33 },
34 "locator": "HG-4F7A2C",
35 "packId": 7,
36 "packInfo": {
37 "id": 7,
38 "translations": {
39 "en": {
40 "name": "Romantic getaway",
41 "description": "Two nights with dinner included"
42 }
43 },
44 "dtype": -1,
45 "value": 10,
46 "price": 0,
47 "weekday": [
48 "Fri",
49 "Sat"
50 ],
51 "products": [
52 {
53 "productId": 15,
54 "value": 30
55 }
56 ]
57 },
58 "customer": {
59 "id": 1234,
60 "name": "John",
61 "surname": "Doe",
62 "documentType": "D",
63 "documentNumber": "A12345678",
64 "address": "123 Main St",
65 "city": "New York",
66 "postalCode": "10001",
67 "country": "ESP",
68 "province": "madrid",
69 "email": "john.doe@example.com",
70 "phone": "+1 (555) 123-4567",
71 "language": "es",
72 "documentPortrait": "/document-portrait/MTIzNA==.jpg",
73 "documentFront": "/document-front/MTIzNA==.jpg",
74 "documentBack": "/document-back/MTIzNA==.jpg",
75 "documentPortraitImagePath": "/api/bookings/123456/customer-image/Nzg5OmRvY3VtZW50LXBvcnRyYWl0OjEyMzQ",
76 "documentFrontImagePath": "/api/bookings/123456/customer-image/Nzg5OmRvY3VtZW50LWZyb250OjEyMzQ",
77 "documentBackImagePath": "/api/bookings/123456/customer-image/Nzg5OmRvY3VtZW50LWJhY2s6MTIzNA",
78 "notes": "VIP customer",
79 "bookingId": 789,
80 "loyalty": "GOLD-123"
81 },
82 "companyId": 12,
83 "notes": {
84 "request": "Late check-in, extra pillow",
85 "internal": "Guest prefers a quiet room",
86 "flat": "No special requests"
87 },
88 "occupancy": {
89 "adults": 2,
90 "children": 2,
91 "babies": 1,
92 "total": 5
93 },
94 "groupOccupancy": {
95 "adults": 2,
96 "children": 2,
97 "babies": 1,
98 "total": 5
99 },
100 "otaId": 3,
101 "checkInStatus": "checked-in",
102 "bookingStatus": "ready",
103 "releaseDateTentative": "2026-10-01 18:00",
104 "virtualPayment": {
105 "type": {},
106 "amount": 100
107 },
108 "paymentStatus": {},
109 "invoiceStatus": {},
110 "bookingType": {
111 "label": "Painting",
112 "type": "bloqued-out-order",
113 "typeV2": {}
114 },
115 "toDos": {
116 "data": [
117 {
118 "id": 1,
119 "pcode": 123456,
120 "name": "Prepare welcome gift",
121 "active": "2026-01-01",
122 "start": "2026-01-01",
123 "end": "2026-01-02",
124 "bookingId": 1,
125 "checked": true
126 }
127 ],
128 "pendings": 5,
129 "total": 10
130 },
131 "guests": [
132 {
133 "id": 1234,
134 "name": "John",
135 "surname": "Doe",
136 "documentType": "D",
137 "documentNumber": "A12345678",
138 "address": "123 Main St",
139 "city": "New York",
140 "postalCode": "10001",
141 "country": "ESP",
142 "province": "madrid",
143 "email": "john.doe@example.com",
144 "phone": "+1 (555) 123-4567",
145 "language": "es",
146 "documentPortrait": "/document-portrait/MTIzNA==.jpg",
147 "documentFront": "/document-front/MTIzNA==.jpg",
148 "documentBack": "/document-back/MTIzNA==.jpg",
149 "documentPortraitImagePath": "/api/bookings/123456/customer-image/Nzg5OmRvY3VtZW50LXBvcnRyYWl0OjEyMzQ",
150 "documentFrontImagePath": "/api/bookings/123456/customer-image/Nzg5OmRvY3VtZW50LWZyb250OjEyMzQ",
151 "documentBackImagePath": "/api/bookings/123456/customer-image/Nzg5OmRvY3VtZW50LWJhY2s6MTIzNA",
152 "notes": "VIP customer",
153 "bookingId": 789,
154 "sex": "M",
155 "nationality": "ESP",
156 "issuingState": "ESP",
157 "birthDate": "1985-04-12",
158 "placeOfBirth": "Barcelona",
159 "expirationDate": "2030-04-12",
160 "issueDate": "2020-04-12",
161 "municipality": "barcelona",
162 "placeOfOrigin": "Madrid",
163 "destinationPlace": "Valencia",
164 "position": 1,
165 "documentSupport": "BAA123456",
166 "relationship": "HJ",
167 "signatureImagePath": "/api/bookings/123456/customer-image/Nzg5OnNpZ25hdHVyZToxMjM0"
168 }
169 ],
170 "isSaleDirect": true,
171 "housekeeping": {
172 "dateToClean": "2026-10-01",
173 "quantityNightsClean": 2,
174 "weekDaysClean": {
175 "mon": true,
176 "tue": true,
177 "wed": true,
178 "thu": true,
179 "fri": true,
180 "sat": true,
181 "sun": true
182 }
183 },
184 "segmentsOnBooking": [
185 {
186 "id": 3,
187 "name": "Corporate"
188 }
189 ],
190 "segmentsOnCustomer": [
191 {
192 "id": 3,
193 "name": "Corporate"
194 }
195 ],
196 "segmentApplyScope": "booking"
197 }
198 ],
199 "total": 10
200}

What is a pcode?

The property code. Every endpoint is scoped to one property, and your API key only works for the property it was issued for.

Pagination

Search endpoints return a fixed page per endpoint; move with offset by the length of data until you reach total.

Webhooks beat polling

If you are polling a search endpoint on a timer, subscribe to a webhook instead. It is faster for you and much cheaper for the API.

Rate limits

100 requests per minute per source IP, 120 per API key and 300 per property, each counted across every endpoint together — not per endpoint. Over any of them you get a 429 with the seconds to wait in Retry-After-<limit> (apikey-ip, apikey or apikey-pcode): stop and wait it out. Repeat offences on a key or a property are blocked for longer each time, up to 7 days.