Consultar las entregas de un webhook
Webhooks
El historial de entregas de un webhook, de la más reciente a la más antigua: por cada intento, el evento, el payload que se envió (las claves que faltaban al enviarlo se guardan como null), el resultado, cuánto tardó y el error si lo hubo. Cualquier 2xx se anota como 200; una entrega que nunca obtuvo respuesta —error de red, o una URL rechazada porque resuelve a una red privada— se anota como 500 con el motivo en el mensaje. Este es el sitio donde mirar cuando un evento que esperabas no llegó y, como los fallos no se reintentan, el único registro de que se intentó. **Las entradas se conservan 30 días** y luego se borran solas, así que descarga lo que necesites guardar antes.
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.
Webhook ID, as returned by GET /api/webhooks/{pcode}.
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
Unique identifier of the log entry (a 24-character hex id)
Property code
ID of the webhook this delivery belongs to
URL the delivery was sent to, as the webhook had it at that moment
Event type that triggered the delivery
Uno de:bookings-added
The JSON body POSTed to your URL: { "eventType": "bookings-added", "data": { "bookings": [ … ] } }. Each item of data.bookings has the shape GET /api/bookings/{pcode}/detail/{bookingId} answers. Keys whose value was missing when it was sent can hold null here.
Outcome of the delivery as Hotelgest records it: 200 for any 2xx answer from your endpoint (the exact 2xx is not kept), the status your endpoint answered for any other response (redirects are not followed, so a 3xx is recorded as is), and 500 when there was no response at all — a network error, a TLS failure, or a URL refused because it resolves to a private network. In that last case the 500 is Hotelgest's, not your endpoint's.
Why the delivery failed: the HTTP client's message (e.g. Request failed with status code 404, connect ECONNREFUSED 203.0.113.10:443) or the reason the URL was refused. null or absent when the delivery succeeded.
Duration of the delivery in milliseconds
When the delivery was made (ISO 8601). Entries are deleted 30 days after it
¿Qué es un pcode?
Límites de uso