Real-time reservation notifications for WebHotelier bookings.

Table of Contents
  1. Endpoint Registration
  2. PING mode
  3. PUSH mode

Whenever a new WebHotelier reservation, modification, or cancellation is made our system can call a 3rd-party endpoint in real-time.

The endpoint is registered in WebHotelier's API account settings.

Endpoint Registration

To enable real-time notifications you need to provide us with the following:

endpoint Internet accessible URL YES A secure ( HTTPS ) endpoint is required
mode PUSH or PING YES explained below
format JSON or XML YES JSON is recommended
username NO HTTP Authentication
password NO HTTP Authentication

Only required when mode is PUSH.

PING mode

This is a simple GET request. We register your endpoint and call it. Your URL may contain query parameters ( e.g. the property code if you're using the same endpoint for multiple API accounts ). We do not pass any additional query parameters or custom headers.

You are responsible for calling /reservation/new, retrieve new records and mark them as synced.

The process is as follows:


The entire mode of operation MUST be asynchronous.
If your system repeatedly delays to respond to the GET requests, your account may be banned.


Because of its asynchronous nature, this mode of operation is recommended for general use.

PUSH mode

In PUSH mode, WebHotelier pushes the entire reservation body to your endpoint URL. We support both JSON and XML.

Your system must store the reservation body and return "200 OK". Any other response code is assumed an error.


Your system must store and acknowledge retrieval as soon as possible.

All post-processing actions on your side must be deferred.

Any long delays will be investigated.

As soon as we receive a "200 OK" we mark the reservation as synced on our system. No other action is required from your side.

Sample JSON response

  "id": INTEGER, // WebHotelier Confirmation Number
  "type": STRING, // "new" or "update" or "cancel"
  "data": OBJECT // the data element as returned from /reservation/{res_id}

Sample XML response

  <id>INTEGER</id> // WebHotelier Confirmation Number
  <type>STRING</type> // "new" or "update" or "cancel"
  <data>XML</data> // the data element as returned from /reservation/{res_id}

Note about cancellations

For both formats, when type is "cancel", the data element is NOT returned.

Partial cancellations are not supported by WebHotelier. The entire reservation is cancelled as a whole.

Changes in rooms amount are sent as modifications.


If your system can quickly store the reservation body in a queue, defer and reply immediately you should prefer this mode of operation instead of PING ( requires only 1, instead of 3 HTTP roundtrips ).

Deduplication Warning

WebHotelier confirmation numbers are unique.

Under no circumstances your system must accept a "new" reservation with a previously imported confirmation number ( id )