Consultar los cargos de una reserva

Reservas

get/api/v2/bookings/{pcode}/products/{bookingId}x-api-key

Devuelve todo lo cargado a una reserva, más un desglose de lo reservado. Si la reserva forma parte de un grupo, llegan los cargos de todas las reservas del grupo, un juego de entradas por reserva, también de reservas de otros establecimientos cuando el grupo abarca varios. breakdown resume un grupo por tipo de habitación (cuántas habitaciones y con qué ocupación) y es un array vacío en una reserva suelta. items trae los cargos en sí, agrupados por su procedencia: cada entrada tiene exactamente una clave, booking para las líneas que genera el PMS (el alojamiento, la tasa turística y los extras), experticket para las entradas vendidas con la integración de Experticket, o revo, agora, spalopia o ticksy para los cargos importados de la integración de TPV correspondiente. Las líneas devueltas por un abono se quedan fuera de booking y se mantienen en los grupos de TPV; las líneas de la antigua integración de Tiller no se devuelven. La entrada experticket de una reserva va justo después de su entrada booking, y sus líneas ya no suman en booking.total. Cada línea de entradas lleva su venta en experticket; si la petición se autentica con una API key, el enlace al PDF de las entradas (sale.documentUrl), los códigos de acceso (sale.accessCode, sale.tickets[].accessCode) y los códigos de facturación (sale.tickets[].billingCode) llegan a null, y las respuestas del huésped (answers) se omiten. Una línea ya facturada lleva el invoiceId de su factura; una línea aún pendiente de facturar no lleva ninguno.

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

gethttps://uni-api.hotelgest.com/api/v2/bookings/123456/products/789

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.

bookingId
number

Booking ID. Obtained from the search endpoints (GET /api/v2/bookings/{pcode}/search) or returned by the booking creation endpoint.

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

gbpBreakdownDto[]

What was booked, grouped by room type: how many rooms of each type and the occupancy they were priced for. Filled only for a booking that is part of a group; an empty array for a booking on its own

gbpItemDto[]

Charge groups. Each entry has exactly one key, naming where the charges came from: booking for the accommodation itself, experticket for the tickets sold through Experticket, or one of the POS integrations. In a group, there is one set of entries per booking of the group, which may belong to other properties when the group spans several. Lines of the retired Tiller integration (none since 2022) are not returned

Respuesta de ejemplo
1{
2 "breakdown": [
3 {
4 "quantity": 2,
5 "roomTypeId": 101,
6 "occupancy": {
7 "total": 3,
8 "adults": 2,
9 "children": 1,
10 "babies": 0
11 }
12 }
13 ],
14 "items": [
15 {
16 "booking": {
17 "values": {
18 "id": 789,
19 "pcode": 123456,
20 "groupId": 4521,
21 "groupPrice": 200,
22 "groupQuantity": 2,
23 "start": "2026-10-01",
24 "end": "2026-10-05",
25 "arrivalHour": "14:00",
26 "departureHour": "12:00",
27 "nights": 4,
28 "appUrl": "https://guest.hotelgest.com/?t=AbCdEf123",
29 "createdAt": "2026-09-30",
30 "resource": "1_12",
31 "price": 100,
32 "accommodationPrice": 100,
33 "paid": 100,
34 "totalExtras": 20,
35 "canceledCost": 45,
36 "earlyDepartureOriginalEnd": "2026-10-07",
37 "cancelledAt": "2026-09-21T08:00:00.000Z",
38 "locked": false,
39 "color": "#FF5733",
40 "imported": false,
41 "board": {},
42 "policy": "4",
43 "room": {
44 "id": 12,
45 "roomTypeId": 1,
46 "originalRoomTypeId": 1
47 },
48 "locator": "HG-4F7A2C",
49 "packId": 7,
50 "packInfo": {
51 "id": 7,
52 "translations": {
53 "en": {
54 "name": "Romantic getaway",
55 "description": "Two nights with dinner included"
56 }
57 },
58 "dtype": -1,
59 "value": 10,
60 "price": 0,
61 "weekday": [
62 "Fri",
63 "Sat"
64 ],
65 "products": []
66 },
67 "customer": {
68 "id": 1234,
69 "name": "John",
70 "surname": "Doe",
71 "documentType": "D",
72 "documentNumber": "A12345678",
73 "address": "123 Main St",
74 "city": "New York",
75 "postalCode": "10001",
76 "country": "ESP",
77 "province": "madrid",
78 "email": "john.doe@example.com",
79 "phone": "+1 (555) 123-4567",
80 "language": "es",
81 "documentPortrait": "/document-portrait/MTIzNA==.jpg",
82 "documentFront": "/document-front/MTIzNA==.jpg",
83 "documentBack": "/document-back/MTIzNA==.jpg",
84 "documentPortraitImagePath": "/api/bookings/123456/customer-image/Nzg5OmRvY3VtZW50LXBvcnRyYWl0OjEyMzQ",
85 "documentFrontImagePath": "/api/bookings/123456/customer-image/Nzg5OmRvY3VtZW50LWZyb250OjEyMzQ",
86 "documentBackImagePath": "/api/bookings/123456/customer-image/Nzg5OmRvY3VtZW50LWJhY2s6MTIzNA",
87 "notes": "VIP customer",
88 "bookingId": 789,
89 "loyalty": "GOLD-123"
90 },
91 "companyId": 12,
92 "notes": {
93 "request": "Late check-in, extra pillow",
94 "internal": "Guest prefers a quiet room",
95 "flat": "No special requests"
96 },
97 "occupancy": {
98 "adults": 2,
99 "children": 2,
100 "babies": 1,
101 "total": 5
102 },
103 "groupOccupancy": {
104 "adults": 2,
105 "children": 2,
106 "babies": 1,
107 "total": 5
108 },
109 "otaId": 3,
110 "checkInStatus": "checked-in",
111 "bookingStatus": "ready",
112 "releaseDateTentative": "2026-10-01 18:00",
113 "virtualPayment": {
114 "type": {},
115 "amount": 100
116 },
117 "paymentStatus": {},
118 "invoiceStatus": {},
119 "bookingType": {
120 "label": "Painting",
121 "type": "bloqued-out-order",
122 "typeV2": {}
123 },
124 "toDos": {
125 "data": [],
126 "pendings": 5,
127 "total": 10
128 },
129 "guests": [
130 {
131 "id": null,
132 "name": null,
133 "surname": null,
134 "documentType": null,
135 "documentNumber": null,
136 "address": null,
137 "city": null,
138 "postalCode": null,
139 "country": null,
140 "province": null,
141 "email": null,
142 "phone": null,
143 "language": null,
144 "documentPortrait": null,
145 "documentFront": null,
146 "documentBack": null,
147 "documentPortraitImagePath": null,
148 "documentFrontImagePath": null,
149 "documentBackImagePath": null,
150 "notes": null,
151 "bookingId": null,
152 "sex": null,
153 "nationality": null,
154 "issuingState": null,
155 "birthDate": null,
156 "placeOfBirth": null,
157 "expirationDate": null,
158 "issueDate": null,
159 "municipality": null,
160 "placeOfOrigin": null,
161 "destinationPlace": null,
162 "position": null,
163 "documentSupport": null,
164 "relationship": null,
165 "signatureImagePath": null
166 }
167 ],
168 "isSaleDirect": true,
169 "housekeeping": {
170 "dateToClean": "2026-10-01",
171 "quantityNightsClean": 2,
172 "weekDaysClean": {
173 "mon": null,
174 "tue": null,
175 "wed": null,
176 "thu": null,
177 "fri": null,
178 "sat": null,
179 "sun": null
180 }
181 },
182 "segmentsOnBooking": [
183 {
184 "id": null,
185 "name": null
186 }
187 ],
188 "segmentsOnCustomer": [
189 {
190 "id": null,
191 "name": null
192 }
193 ],
194 "segmentApplyScope": "booking"
195 },
196 "bookingId": 789,
197 "customer": {
198 "name": "John",
199 "surname": "Doe"
200 },
201 "companyId": 12,
202 "guests": [
203 {
204 "id": 1234,
205 "name": "John",
206 "surname": "Doe",
207 "documentType": "D",
208 "documentNumber": "A12345678",
209 "address": "123 Main St",
210 "city": "New York",
211 "postalCode": "10001",
212 "country": "ESP",
213 "province": "madrid",
214 "email": "john.doe@example.com",
215 "phone": "+1 (555) 123-4567",
216 "language": "es",
217 "documentPortrait": "/document-portrait/MTIzNA==.jpg",
218 "documentFront": "/document-front/MTIzNA==.jpg",
219 "documentBack": "/document-back/MTIzNA==.jpg",
220 "documentPortraitImagePath": "/api/bookings/123456/customer-image/Nzg5OmRvY3VtZW50LXBvcnRyYWl0OjEyMzQ",
221 "documentFrontImagePath": "/api/bookings/123456/customer-image/Nzg5OmRvY3VtZW50LWZyb250OjEyMzQ",
222 "documentBackImagePath": "/api/bookings/123456/customer-image/Nzg5OmRvY3VtZW50LWJhY2s6MTIzNA",
223 "notes": "VIP customer",
224 "bookingId": 789,
225 "sex": "M",
226 "nationality": "ESP",
227 "issuingState": "ESP",
228 "birthDate": "1985-04-12",
229 "placeOfBirth": "Barcelona",
230 "expirationDate": "2030-04-12",
231 "issueDate": "2020-04-12",
232 "municipality": "barcelona",
233 "placeOfOrigin": "Madrid",
234 "destinationPlace": "Valencia",
235 "position": 1,
236 "documentSupport": "BAA123456",
237 "relationship": "HJ",
238 "signatureImagePath": "/api/bookings/123456/customer-image/Nzg5OnNpZ25hdHVyZToxMjM0"
239 }
240 ],
241 "data": [
242 {
243 "id": 15342,
244 "quantity": 1,
245 "room": {
246 "id": null,
247 "name": null,
248 "doorNum": null,
249 "roomTypeId": null,
250 "floor": null,
251 "position": null
252 },
253 "pack": {
254 "id": null,
255 "room": null,
256 "name": null,
257 "text": null
258 },
259 "occupancy": {
260 "total": null,
261 "adults": null,
262 "children": null,
263 "babies": null
264 },
265 "board": "bb",
266 "policy": "4",
267 "invoiceId": 3021,
268 "start": "2026-01-10",
269 "end": "2026-01-12",
270 "prices": [],
271 "product": {
272 "id": null,
273 "name": null,
274 "translate": null,
275 "price": null,
276 "tax": null,
277 "isTuristicTax": null,
278 "start": null,
279 "end": null,
280 "startTime": null,
281 "endTime": null,
282 "discount": null
283 },
284 "discount": {
285 "originalTotal": null,
286 "type": null,
287 "value": null,
288 "code": null
289 },
290 "createdAt": "2026-01-08 12:00:00",
291 "externalOrder": "A/000123",
292 "parentItemId": 15340,
293 "refundInvoiceId": 3022,
294 "experticket": {
295 "productId": null,
296 "providerId": null,
297 "providerName": null,
298 "productName": null,
299 "sessionId": null,
300 "sessionTime": null,
301 "answers": null,
302 "sale": null
303 },
304 "paymentId": 101,
305 "itemType": "prePay",
306 "accountUnassigned": true,
307 "invoiceItems": [],
308 "total": 25
309 }
310 ],
311 "total": 240,
312 "invoicedStayDifference": 35.5
313 },
314 "experticket": {
315 "bookingId": 789,
316 "data": [
317 {
318 "id": 15342,
319 "quantity": 1,
320 "room": {
321 "id": null,
322 "name": null,
323 "doorNum": null,
324 "roomTypeId": null,
325 "floor": null,
326 "position": null
327 },
328 "pack": {
329 "id": null,
330 "room": null,
331 "name": null,
332 "text": null
333 },
334 "occupancy": {
335 "total": null,
336 "adults": null,
337 "children": null,
338 "babies": null
339 },
340 "board": "bb",
341 "policy": "4",
342 "invoiceId": 3021,
343 "start": "2026-01-10",
344 "end": "2026-01-12",
345 "prices": [],
346 "product": {
347 "id": null,
348 "name": null,
349 "translate": null,
350 "price": null,
351 "tax": null,
352 "isTuristicTax": null,
353 "start": null,
354 "end": null,
355 "startTime": null,
356 "endTime": null,
357 "discount": null
358 },
359 "discount": {
360 "originalTotal": null,
361 "type": null,
362 "value": null,
363 "code": null
364 },
365 "createdAt": "2026-01-08 12:00:00",
366 "externalOrder": "A/000123",
367 "parentItemId": 15340,
368 "refundInvoiceId": 3022,
369 "experticket": {
370 "productId": null,
371 "providerId": null,
372 "providerName": null,
373 "productName": null,
374 "sessionId": null,
375 "sessionTime": null,
376 "answers": null,
377 "sale": null
378 },
379 "paymentId": 101,
380 "itemType": "prePay",
381 "accountUnassigned": true,
382 "invoiceItems": [],
383 "total": 25
384 }
385 ],
386 "total": 74.3
387 },
388 "revo": {
389 "bookingId": 789,
390 "data": [
391 {
392 "id": 15342,
393 "quantity": 1,
394 "room": {
395 "id": null,
396 "name": null,
397 "doorNum": null,
398 "roomTypeId": null,
399 "floor": null,
400 "position": null
401 },
402 "pack": {
403 "id": null,
404 "room": null,
405 "name": null,
406 "text": null
407 },
408 "occupancy": {
409 "total": null,
410 "adults": null,
411 "children": null,
412 "babies": null
413 },
414 "board": "bb",
415 "policy": "4",
416 "invoiceId": 3021,
417 "start": "2026-01-10",
418 "end": "2026-01-12",
419 "prices": [],
420 "product": {
421 "id": null,
422 "name": null,
423 "translate": null,
424 "price": null,
425 "tax": null,
426 "isTuristicTax": null,
427 "start": null,
428 "end": null,
429 "startTime": null,
430 "endTime": null,
431 "discount": null
432 },
433 "discount": {
434 "originalTotal": null,
435 "type": null,
436 "value": null,
437 "code": null
438 },
439 "createdAt": "2026-01-08 12:00:00",
440 "externalOrder": "A/000123",
441 "parentItemId": 15340,
442 "refundInvoiceId": 3022,
443 "experticket": {
444 "productId": null,
445 "providerId": null,
446 "providerName": null,
447 "productName": null,
448 "sessionId": null,
449 "sessionTime": null,
450 "answers": null,
451 "sale": null
452 },
453 "paymentId": 101,
454 "itemType": "prePay",
455 "accountUnassigned": true,
456 "invoiceItems": [],
457 "total": 25
458 }
459 ],
460 "total": 74.3
461 },
462 "agora": {
463 "bookingId": 789,
464 "data": [
465 {
466 "id": 15342,
467 "quantity": 1,
468 "room": {
469 "id": null,
470 "name": null,
471 "doorNum": null,
472 "roomTypeId": null,
473 "floor": null,
474 "position": null
475 },
476 "pack": {
477 "id": null,
478 "room": null,
479 "name": null,
480 "text": null
481 },
482 "occupancy": {
483 "total": null,
484 "adults": null,
485 "children": null,
486 "babies": null
487 },
488 "board": "bb",
489 "policy": "4",
490 "invoiceId": 3021,
491 "start": "2026-01-10",
492 "end": "2026-01-12",
493 "prices": [],
494 "product": {
495 "id": null,
496 "name": null,
497 "translate": null,
498 "price": null,
499 "tax": null,
500 "isTuristicTax": null,
501 "start": null,
502 "end": null,
503 "startTime": null,
504 "endTime": null,
505 "discount": null
506 },
507 "discount": {
508 "originalTotal": null,
509 "type": null,
510 "value": null,
511 "code": null
512 },
513 "createdAt": "2026-01-08 12:00:00",
514 "externalOrder": "A/000123",
515 "parentItemId": 15340,
516 "refundInvoiceId": 3022,
517 "experticket": {
518 "productId": null,
519 "providerId": null,
520 "providerName": null,
521 "productName": null,
522 "sessionId": null,
523 "sessionTime": null,
524 "answers": null,
525 "sale": null
526 },
527 "paymentId": 101,
528 "itemType": "prePay",
529 "accountUnassigned": true,
530 "invoiceItems": [],
531 "total": 25
532 }
533 ],
534 "total": 74.3
535 },
536 "spalopia": {
537 "bookingId": 789,
538 "data": [
539 {
540 "id": 15342,
541 "quantity": 1,
542 "room": {
543 "id": null,
544 "name": null,
545 "doorNum": null,
546 "roomTypeId": null,
547 "floor": null,
548 "position": null
549 },
550 "pack": {
551 "id": null,
552 "room": null,
553 "name": null,
554 "text": null
555 },
556 "occupancy": {
557 "total": null,
558 "adults": null,
559 "children": null,
560 "babies": null
561 },
562 "board": "bb",
563 "policy": "4",
564 "invoiceId": 3021,
565 "start": "2026-01-10",
566 "end": "2026-01-12",
567 "prices": [],
568 "product": {
569 "id": null,
570 "name": null,
571 "translate": null,
572 "price": null,
573 "tax": null,
574 "isTuristicTax": null,
575 "start": null,
576 "end": null,
577 "startTime": null,
578 "endTime": null,
579 "discount": null
580 },
581 "discount": {
582 "originalTotal": null,
583 "type": null,
584 "value": null,
585 "code": null
586 },
587 "createdAt": "2026-01-08 12:00:00",
588 "externalOrder": "A/000123",
589 "parentItemId": 15340,
590 "refundInvoiceId": 3022,
591 "experticket": {
592 "productId": null,
593 "providerId": null,
594 "providerName": null,
595 "productName": null,
596 "sessionId": null,
597 "sessionTime": null,
598 "answers": null,
599 "sale": null
600 },
601 "paymentId": 101,
602 "itemType": "prePay",
603 "accountUnassigned": true,
604 "invoiceItems": [],
605 "total": 25
606 }
607 ],
608 "total": 74.3
609 },
610 "ticksy": {
611 "bookingId": 789,
612 "data": [
613 {
614 "id": 15342,
615 "quantity": 1,
616 "room": {
617 "id": null,
618 "name": null,
619 "doorNum": null,
620 "roomTypeId": null,
621 "floor": null,
622 "position": null
623 },
624 "pack": {
625 "id": null,
626 "room": null,
627 "name": null,
628 "text": null
629 },
630 "occupancy": {
631 "total": null,
632 "adults": null,
633 "children": null,
634 "babies": null
635 },
636 "board": "bb",
637 "policy": "4",
638 "invoiceId": 3021,
639 "start": "2026-01-10",
640 "end": "2026-01-12",
641 "prices": [],
642 "product": {
643 "id": null,
644 "name": null,
645 "translate": null,
646 "price": null,
647 "tax": null,
648 "isTuristicTax": null,
649 "start": null,
650 "end": null,
651 "startTime": null,
652 "endTime": null,
653 "discount": null
654 },
655 "discount": {
656 "originalTotal": null,
657 "type": null,
658 "value": null,
659 "code": null
660 },
661 "createdAt": "2026-01-08 12:00:00",
662 "externalOrder": "A/000123",
663 "parentItemId": 15340,
664 "refundInvoiceId": 3022,
665 "experticket": {
666 "productId": null,
667 "providerId": null,
668 "providerName": null,
669 "productName": null,
670 "sessionId": null,
671 "sessionTime": null,
672 "answers": null,
673 "sale": null
674 },
675 "paymentId": 101,
676 "itemType": "prePay",
677 "accountUnassigned": true,
678 "invoiceItems": [],
679 "total": 25
680 }
681 ],
682 "total": 74.3
683 }
684 }
685 ]
686}

¿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ó.

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.