Spider-Booking 4 integration

The integration of Spider-Booking 4 is very simple as all the parameters are in the query string (GET HTTP method)

The base URL where you have to redirect visitors is https://reservations.hotel-spider.com?hotelId=HOTEL_ID  

The value of HOTEL_ID can be provided by the hotel.

Given the parameters you have about what the visitor is looking for, the following parameters are supported:

ParameterTypeCommentDefault value
(when not supplied)
hotelId

MANDATORY string

The ID of the hotel as supplied by Hotel-Spider.N/A
checkInISO 8601 formatted date
e.g. 2018-04-18
The arrival dateThe current date
(or 1 day before checkOut date if provided)
checkOutISO 8601 formatted date
e.g. 2018-04-18
The departure dateThe day after the current date
(or 1 day after the checkIn date if provided)
nbAdultsintegerThe number of adults for the stay1
nbChildrenintegerThe number of children0
nbInfantsintegerThe number of infants0
langstring

The requested language code.

Accepted values: "ar", "bn", "cs", "da", "de", "el", "en", "es", "fr", "gu", "he", "hi", "hr", "hu", "it", "ja", "ko", "mr", "nl", "no", "pl", "pt", "ro", "ru", "sk", "sl", "sv", "ta", "te", "th", "zh"

The default language of the hotel

currencystring

The requested currency.

Accepted values: "EUR", "USD", "GBP", "CHF",  "AED", "ARS", "AUD", "BHD", "BRL", "CAD", "CLP", "CNY", "COP", "CZK", "DKK", "HUF", "ILS", "INR", "JOD", "JPY", "KRW", "KWD", "MXN", "NOK", "OMR", "PLN", "QAR", "RON", "RUB", "SAR", "SEK", "THB", "ZAR"

The default currency of the hotel
promoCodestringA predefined promotion codenone

All parameters are optional.

If you are redirecting to Spider-Booking 4 from a HTML form, you should set the provided hotelId in a hidden input element:

<input type="hidden" name="hotelId" value="HOTEL_ID">

Examples:

Redirect user to a specific room

It is possible to redirect the user to a specific room among the results by specifying the base route like this: https://reservations.hotel-spider.com/#/HOTEL_ID/room/ROOM_ID

All other parameters are still usable.

For example: https://reservations.hotel-spider.com/#/HOTEL_ID/room/ROOM_ID?checkIn=2018-06-01&checkOut=2018-06-03&nbAdults=2&nbInfants=1 

Note: if the room is not available with the specified parameters (dates and/or occupancy), the user will be redirected to the default results list.

The URL for the cancellation form, prefilled with the booking number, is formatted as follow: https://reservations.hotel-spider.com/#/HOTEL_ID/cancel/RESERVATION_ID

The format of Spider-Booking 4 reservation IDs is SB4-XXXXXXXX


jQuery plugin

A jQuery plugin is available for an easy integration in the hotel's website. See here for more info:
https://wbe-static.hotel-spider.com/widget-doc/index.html?hotelId=00F561cc11232b52