Listar las tarifas a las que puedes enviar

RMS

get/api/integrations/{pcode}/rms/ratesx-api-key

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

gethttps://uni-api.hotelgest.com/api/integrations/123456/rms/rates

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.

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

id
number

The rate id: what a push names in rateId

roomName
string

Room type of the rate

ota
string

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

otaId
number

Channel id; 0 is the property’s own sale

board
string

nb room only, bb breakfast, hb half board, fb full board, ai all inclusive

policy
string

Cancellation policy id

typechannel
string

Channel manager the rate is mapped through, as stored (wubook, SiteMinder, YieldPlanet, Channex, Neobookings, Pghc); wubook unless the property set another

type
enum

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

roomTypeId
number

Room type id (roomTypeId elsewhere). Not in the legacy /panel/channel/rate

occupancy
number

Guests the price is for. Not in the legacy answer

active
boolean

Whether the rate is on sale. Not in the legacy answer

anchored
number

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

Respuesta de ejemplo
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": 0
15 }
16]

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