Returns best available rate for a single day.

Table of Contents
  1. URL Endpoint
  2. Method Parameters
  3. JSONP mode

URL Endpoint

/bar/{propertycode}

Warning

Availability information may not be guaranteed. This method might not apply dynamic pricing rules that alter availability or pricing as it would happen in an actual availability request.

Method Parameters

NAME TYPE RANGE / SET REQUIRED DEFAULT EXAMPLE NOTES
date date (ISO 8601) from today
to (today + 2 years)
NO today &date=2017-03-21  
per string room NO &per=room Returns BAR per room type
rm_type string varchar(6) NO &rm_type=DBL Computes BAR for specified room type
adults integer 1 – max capacity NO 2 &adults=2 The value is PER ROOM. Maximum value is automatically calculated based on the property's maximum possible room capacity.
children integer 0 – (max capacity-1) NO 0 &children=1 The value is PER ROOM. Maximum value equals (maximum capacity - 1).
infants integer 0 – (max capacity-1) NO 0 &infants=1 The value is PER ROOM. Maximum value equals (maximum capacity - 1).

JSONP Mode

This API method is available via JavaScript utilizing the JSONP technique.

https://rest.reserve-online.net/bar/{propertycode}.js

Example

<script src="https://rest.reserve-online.net/bar/HOTELCODE.js?callback=myCallbackFunction" async></script>

The following additional parameters are supported:

JSONP Parameters

NAME TYPE RANGE / SET REQUIRED DEFAULT EXAMPLE NOTES
callback string JavaScript Function NO &callback=renderBar The function should be globally accessible
container string HTML id global attribute NO &container=bar The script will populate container element with the best available price
Do NOT use with the &per=room parameter