Booking.getFreeCapacity | Previo API

Booking.getFreeCapacity

Availability search.

WARNING: This API shouldn't be used by OTAs for getting availability of room kinds. This API method is used for checking if particular room is occupied by assigned reservation or blockation. It doesn't consider the floating reservations, contingents and availability adjustments in pricelist. If you want to get rooms for sale per room kind use : https://rest.apidocs.previo.cz/#0748ef51-d590-4721-83b0-fafbbdf501a8

Parameters

Name Description
login Username
password Password
hotId Hotel ID
term Time period
hourlyTypes (boolean)
TRUE = returns only rooms bookable on minute bases (Wellness, sport facility, ..), FALSE = returns only accommodation rooms and rooms bookable on day bases. Default value = FALSE

term

Shows available rooms in selected time period. 

Insert dates in W3 date format. Example: 2010-04-29

 
<term> [1]  
 
<from> [1] from (date)
<to> [1] to (date)
<minDiffInDays> [0..1]

Minimum difference in days between free terms beginning and end dates (set to 1 to filter out free terms beginning and ending at the same day)


Sample request

<request>
   <login>prihlasovaci_jmeno</login>
   <password>heslo</password>
   <hotId>2</hotId>
   <term>
      <from>2010-10-01</from>
      <to>2010-10-31</to>
      <minDiffInDays>1</minDiffInDays>  
   </term>
</request>   

Output

<freeCapacity>  
 
<objectKind> [0. *] Room type
<obkId> [1] Room type ID
 
<object> [0. *] Specific room
 
<objId> [1] Room ID
<term> [1] Time period
 
<from> [1] from
<To> [1] to

Sample output

<freeCapacity>
	<objectKind>
		<obkId>57</obkId>
		<object>
			<objId>835</objId>
			<term>
				<from>2010-10-01</from>
				<to>2010-10-05</to>
			</term>
			<term>
				<from>2010-10-12</from>
				<to>2010-10-31</to>
			</term>
			.....
		</object>
		.....
	</objectKind>
	<objectKind>
		<obkId>68</obkId>
		<object>
			<objId>624</objId>
			<term>
				<from>2010-10-01</from>
				<to>2010-10-31</to>
			</term>
			......
		</object>
	</objectKind>
	....
</freeCapacity>