Buscar solo reservas individuales

Reservas

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

Mismos filtros, mismas reglas y misma forma de respuesta que /search (lee su descripción: el atajo del ID exacto, la ventana de 36 meses y el filtro compartido de cancelled / no-show también valen aquí), pero dejando fuera las reservas de grupo: solo reservas de una habitación. Úsalo cuando un grupo de diez habitaciones inundaría los resultados con diez entradas que van juntas. data trae hasta **15 reservas** por página, un tamaño distinto al de /search, así que no reutilices el mismo salto de paginación.

Consola

Llama a la API desde tu navegador, con la misma petición que enviará tu servidor.

Entorno

Producción

https://uni-api.hotelgest.com

Las llamadas van contra datos reales con tu propia clave. Un POST, PUT, PATCH o DELETE aquí modifica un establecimiento de verdad.

Credenciales

La clave de API, en cada petición. La crea un administrador del establecimiento en el PMS, en Configuración → Claves de API; un partner recibe una por establecimiento cuando este activa su integración. Solo funciona con el establecimiento para el que se emitió y con los endpoints que tiene concedidos.

Este endpoint necesita una credencial. Sin ella recibirás un 401.

Se guarda solo en este navegador. No se envía a ningún sitio que no sea el host de la API de arriba.

Parámetros de ruta

Parámetros de consulta

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

Envía la petición y aquí verás la respuesta real.

No hay nada simulado. Lo que aparezca es lo que devolvió la API.

Las peticiones salen directamente de tu navegador al host de la API de arriba: esta web no hace de intermediaria.

Parámetros de ruta

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.

Parámetros de consulta

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

Uno de: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)

Respuestas

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

Respuesta de ejemplo
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}

¿Qué es un pcode?

El código de propiedad. Cada endpoint está limitado a un establecimiento, y tu clave de API solo funciona con el establecimiento para el que se emitió.

Paginación

Los endpoints de búsqueda devuelven una página fija por endpoint; avanza con offset según la longitud de data hasta llegar a total.

Mejor webhooks que sondeo

Si estás consultando un endpoint de búsqueda cada X minutos, suscríbete a un webhook. Es más rápido para ti y mucho más barato para la API.

Límites de uso

100 peticiones por minuto por IP de origen, 120 por clave de API y 300 por establecimiento, cada una contada entre todos los endpoints a la vez, no por endpoint. Al pasarte de cualquiera recibes un 429 con los segundos de espera en Retry-After-<límite> (apikey-ip, apikey o apikey-pcode): para y espera. Cada reincidencia en una clave o un establecimiento se bloquea más tiempo, hasta 7 días.