WebHotelier supports voucher codes. Voucher codes unlock hidden special offers and packages.

Table of Contents
  1. Parameters
  2. Usage
  3. Examples of POST requests
  4. Examples of GET requests

Parameters

NAME TYPE RANGE REQUIRED DEFAULT EXAMPLE NOTES
voucher string varchar(255) YES voucher=SPECIALOFFER  

Usage

If no special offer or package is found the using the supplied voucher code or the offer has expired, the code is ignored.

The voucher parameter can be combined with Availability parameters in order to apply a voucher code and search for available rates at the same time.

⛔ CAUTION ⛔

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.

Example of POST request using a standard HTML form

<form action="https://example.reserve-online.net/" method="post">

	<label>Booking Code</label>
	<input type="text" name="voucher" size="20" maxlength="255" />

	<button type="submit">Check Rates</button>
</form>

Examples of GET requests

https://example.reserve-online.net/?voucher=EXAMPLE
https://example.reserve-online.net/?voucher=EXAMPLE&checkin=208-05-15&checkout=2008-05-17&adults=2