Overview

The WebHotelier Web Services API consists of a set of callable API endpoints. To perform an action using the WebHotelier API, you need to send a request to its endpoint specifying a method and some arguments, and will receive a formatted response. The arguments, responses and error codes for each method are listed on the method's spec page.

The API is entirely HTTP-based

Methods that retrieve data from the WebHotelier API require a GET request. Methods that submit, change, or destroy data require a POST. A DELETE request is also accepted for methods that destroy data. API Methods that require a particular HTTP method will return an error if you do not make your request with the correct method. HTTP Response Codes are meaningful.

The API is a RESTful resource

The WebHotelier API attempts to conform to the design principles of Representational State Transfer (REST). Simply change the Accept header in your request to get results in the format of your choice. The documentation notes which formats are available for each method. The API presently supports the following data formats: XML and JSON.

Terms of Service

By using our API you are accepting our terms of service. These terms outline your rights and responsibilities when using our APIs, so read them carefully.

Endpoints

All API methods follow the following format:

http[s]://rest.reserve-online.net{method_endpoint}

Example endpoint for Single-Property Availability method:

https://rest.reserve-online.net/availability/DEMO

Follow endpoint instructions for each method to construct the URL endpoint.

Unless specified otherwise, API methods are only accessible using a GET request.

Authentication

All methods require the user to be logged in. At present, the only way to accomplish this is via Basic HTTP access authentication. If you don't already have your credentials for a particular method, please contact us. API accounts can also be restricted by IP address, as described below.

Authorization: Basic [username:password] Base64 encoded

IP Restriction

API accounts can be restricted so that they only accept requests from specific IP addresses or ranges. Requests from any other address are rejected with HTTP 403 and the IP_NOT_ALLOWED error code, even when the credentials are correct.

Required for sensitive access

IP restriction is required for every API account that:

  • retrieves reservations or guest data,
  • makes changes to a property (availability, rates, restrictions, bookings or settings), or
  • reads any other non-public information.

Such accounts are not activated without an IP allowlist.

Highly recommended for all other accounts

For accounts that only read public information, such as availability and pricing for display, IP restriction is still highly recommended: if your credentials are leaked, they cannot be used from outside your own infrastructure.

To set it up, send us the static public IP addresses or ranges your servers use to call the API. Let us know in advance if they change, otherwise your requests will be rejected.

Response Formats

Unless otherwise noted, all the methods support the following output formats:

TYPE ACCEPTS HEADER ENCODING NOTE
XML application/xml, text/xml UTF-8 DEFAULT
JSON application/json UTF-8 RECOMMENDED

To select a format you need to send an Accept header, for example:

Accept: application/json

Always request XML or JSON explicitly. Behavior for other Accept values, such as text/html or text/plain, depends on the method, and some methods return an empty response body.

Internationalization

All the methods can return translated data in a language of your choice. If the language requested is not supported by our system or the data is not translated yet, the system will always fallback to English. To select a language you must send an Accept-Language header with the language code or/and locale combination you want.

Accept-Language: el, en-gb