Test webhook
Webhooks
Send a sample delivery to the URL of a webhook you already created — the body names it by id — and report back what happened: the outcome Hotelgest recorded, how long it took, and the error if it failed. Any 2xx comes back as 200; no response at all (network error, or a URL refused because it resolves to a private network) comes back as 500 with the reason in errorMessage. The body is the same envelope a real delivery has, with a fixed sample booking, so your endpoint can be tested against the real shape. The webhook is tested whether it is enabled or not. A test does not appear in the delivery log. An unknown id answers 404.
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
Body
Arm production
Writing methods are locked until you arm them. This is live hotel data.
POST is locked on production. Arm it above if you mean it.
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
Property code. Identifies the property (hotel, apartment building, hostel) the request applies to. It must match the property your API key was issued for.
Request body
Webhook ID
Webhook Event Type
One of:bookings-added
1{2 "id": "60d21b4667d0d8992e610c85",3 "eventType": "bookings-added"4}
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
Property code
ID of the webhook that was tested
URL the test delivery was sent to: the one configured on the webhook
Event type of the sample payload
One of: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. For a test, the bookings are a fixed sample, not real ones.
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 test delivery in milliseconds
What is a pcode?
Rate limits