WebHotelier supports launching the booking retrieval process from an external website. The process starts by submitting a form with fields as described below.
If the booking retrieval process succeeds, the booking summary is displayed. If the parameters are invalid or a booking matching those parameters is not found, the booking retrieval form in the booking engine is loaded and an error message is displayed.
It is recommended to validate the form parameters before submitting the form (see below).
It is possible to launch the booking retrieval form in the booking engine without submitting a form, by using just a link. See the Open View API for more.
NAME | TYPE | RANGE | REQUIRED | EXAMPLE | NOTES |
---|---|---|---|---|---|
res_id | numeric | 10000000 — 231-1 | YES | res_id=10001235 | Label should be named “Booking Confirmation No.” |
varchar(128) | YES | email=john.smith@yahoo.gr | This field should be validated before submitting the form. | ||
modify | flag | — | NO | modify | Opens the panel that contains the options to modify the booking. |
Do not forget to replace example.reserve-online.net
in the examples below with the real booking engine
hostname.
If you don't know the hostname yet, please contact WebHotelier support.
<form action="https://example.reserve-online.net/" method="post"> <label>Booking Confirmation No.</label> <input type="text" name="res_id" size="20" /> <label>Email</label> <input type="text" name="email" size="20" maxlength="128" /> <button type="submit">Find Booking</button> </form>