Listar las tarifas a las que puedes enviar
RMS
Todas las tarifas del establecimiento que un envío puede nombrar: la base de su venta propia (main), la base de cada canal (mainchannel) y las tarifas de canal (planchannel), con su tipo de habitación, canal, régimen, política y huéspedes. Los modificadores de precio no salen: derivan de una de estas, así que se envía aquella de la que derivan. Las tarifas inactivas salen y se pueden enviar, como en el canal del legacy.
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
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
Property code. Identifies the property (hotel, apartment building, hostel) the request applies to. It must match the property your API key was issued for.
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
The rate id: what a push names in rateId
Room type of the rate
Channel the rate sells on, by the name the channel list gives it. The property’s own sale is channel 0, which comes with its name in that list (Recepcion); direct only when the channel is not in the list
Channel id; 0 is the property’s own sale
nb room only, bb breakfast, hb half board, fb full board, ai all inclusive
Cancellation policy id
Channel manager the rate is mapped through, as stored (wubook, SiteMinder, YieldPlanet, Channex, Neobookings, Pghc); wubook unless the property set another
main is the base rate of the property’s own sale, mainchannel a channel’s own base rate and planchannel a channel rate
Uno de:mainmainchannelplanchannel
Room type id (roomTypeId elsewhere). Not in the legacy /panel/channel/rate
Guests the price is for. Not in the legacy answer
Whether the rate is on sale. Not in the legacy answer
0 when the rate sets its own price; otherwise the id of the rate it follows, because the hotel linked it to that one (the same anchored the legacy /v1/booking/price gave in rateChannel). Any type can be linked, planchannel included. A linked rate can still be pushed, but a pushed price gives it a price of its own for those days and it stops following its rate there; to keep the hotel’s link, push to the rate it follows
1[2 {3 "id": 48122,4 "roomName": "Double room",5 "ota": "Booking.com",6 "otaId": 0,7 "board": "bb",8 "policy": "4",9 "typechannel": "wubook",10 "type": "main",11 "roomTypeId": 101,12 "occupancy": 2,13 "active": true,14 "anchored": 015 }16]
¿Qué es un pcode?
Límites de uso