Booking.getFreeCapacity

Availability search

Parameters

Name Description
login Username
password Password
hotId Hotel ID
term Time period

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>