Get what the property has sold and has left

RMS

get/api/integrations/{pcode}/rms/on-the-booksx-api-key

What an RMS reads to know how the property is doing, in the shape of the legacy export (/panel/thirdPart/revbell), field names included. rsvList holds the bookings — with dfrom and dto, those arriving in the range; with dfrom alone, those received that day — each with its nights and their prices in PrecioNoche, channel, segment, country, age and status; cancelled, no-show and tentative ones included, each with its bookingStatus, and a cancelled one with when it was cancelled in Fecha_Anulacion; blocked ones not, nor a booking whose room type is not sold on the booking engine or no longer exists, nor one with no priced night. capList holds each day and room type sold on the booking engine: rooms sold (confirmed bookings only: a tentative one is neither sold nor taken from the free rooms), blocked, free and in total, one row per room type name, so two room types with the same name come as one row. With article, productionList holds the articles sold: one row per invoice line, its units and amounts prorated to the days inside the range. dto at most 366 days after dfrom. Unlike the legacy, a call without dates is refused: there it matched almost nothing; and Fecha_Anulacion is when the booking was cancelled, read from its history, where the legacy gave its last change.

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/integrations/123456/rms/on-the-books

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

dfrom
string

With dto, the first arrival date of the bookings and the first day of the capacity. Alone, the day the bookings were received on, and the one day of capacity

dto
string

Last arrival date and last day of capacity, at most 366 days after dfrom

article
boolean

Also return productionList: the articles sold day by day in the same range

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

RmsOnTheBooksBookingDto[]

The bookings

RmsOnTheBooksCapacityDto[]

Capacity per day and room type

RmsOnTheBooksProductionDto[]

Articles sold, one row per invoice line with its units and amounts prorated to the days inside the range; only when article is asked for

Example response
1{
2 "rsvList": [
3 {
4 "Fecha_Estancia": "2026-10-05",
5 "Importe": 185,
6 "PrecioNoche": [
7 {
8 "day": "2026-10-05",
9 "price": 92.5,
10 "board": "bb",
11 "extras_excl_tax": "0.0000",
12 "extras": "0.0000",
13 "netPrice": 84.09
14 }
15 ],
16 "Hotel": "Hotel Demo",
17 "pcode": 1234,
18 "Reserva_ID": 100684613,
19 "Fecha_Reserva": "2026-09-20",
20 "Fecha_Llegada": "2026-10-05",
21 "Fecha_Salida": "2026-10-07",
22 "Fecha_Anulacion": "",
23 "Pension": "bb",
24 "Provincia": "Madrid",
25 "Adultos": 2,
26 "Ninos": 0,
27 "Estado": "confirmada",
28 "Habitacion": "Double room",
29 "Agencia": "Booking.com",
30 "Segmento": "Leisure",
31 "Customer_type": "individuales",
32 "Pais": "ES",
33 "Edad": "41",
34 "Rate_Code": 48123,
35 "roomTypeId": 1551809814,
36 "currency": "EUR",
37 "commission": 33.3,
38 "taxRate": 10,
39 "extras": [
40 {
41 "id": 512340,
42 "productId": 87,
43 "name": "Parking",
44 "category": "Services",
45 "dateFrom": "2026-10-05",
46 "dateTo": "2026-10-07",
47 "units": 2,
48 "unitPrice": 10,
49 "netPrice": 20,
50 "pvpPrice": 24.2,
51 "taxRate": 21
52 }
53 ],
54 "bookingStatus": "ready"
55 }
56 ],
57 "capList": [
58 {
59 "Hotel": "Hotel Demo",
60 "pcode": 1234,
61 "Fecha": "2026-10-05",
62 "Habitacion": "Double room",
63 "Codigo_habitacion": "101",
64 "Vendidas": "7",
65 "Bloqueadas": "1",
66 "Disponibles": "2",
67 "Total_fisicas": "10"
68 }
69 ],
70 "productionList": [
71 {
72 "invoiceRef": "F2026-0012",
73 "category": "Restaurant",
74 "name": "Dinner",
75 "type": "product",
76 "reservation_ID": "100684613",
77 "refound": 0,
78 "issue_date": "2026-10-07",
79 "created_at": "2026-10-05",
80 "date_service": "2026-10-05",
81 "date_service_end": "",
82 "units_sold": 2,
83 "base": 40,
84 "taxes": 4,
85 "type_tax": 10,
86 "total": 44,
87 "account": 70500000,
88 "id": 5521
89 }
90 ]
91}

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.

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.