<?xml version="1.0" encoding="UTF-8"?>
<iwbsetallocation>
<!-- all elements are required unless specified otherwise -->
	<apiversion>4.2</apiversion>
	<apifunction>setallocation</apifunction>
	<authorization>
		<userid>user@email.com</userid>
		<password>123456789</password>
		<channel>mycompanyname.com</channel>
		<!-- optional -->
		<test>0</test>
	</authorization>
	<lodging>
<!-- optional <replace> element values: default value "room" replaces availability for just the room_type(s) submitted.  Value "roomdate" replaces availability for just the room_type(s) and dates submitted.  Value "all" deletes (resets) all current availability for all room_types and replaces with just the submitted values.  Value "delete" removes all availability from the system, effectively resetting it, without adding new information.  If "delete" is selected, <rooms> element may be omitted.  -->
		<replace>room</replace>
		<rooms>
			<room_type>
<!-- <roomid> is a unique identifier for a room type, returned when a new room type is created (see Creating Rooms API Function: createrooms).  To retrieve <roomid> for previously created room types, see the section on Getting Allocation and Room Types (API Function: getroomtypes). 
	Important:  To maintain compatibility with versions prior to 4.0, the complete set of "7 defining elements" and <optional_features> elements may be submitted here instead of the <roomid>.  See the section above on Creating Rooms (API Function: createrooms) for a description of these elements. -->
				<roomid>triple999</roomid>
				<allocation>
					<alloc>
						<avail_from>2010-04-01</avail_from>
						<avail_to>2010-12-20</avail_to>
						<!-- optional, omit to change rate only-->
						<units>15</units>
						<!-- optional, omit to change # units only -->
						<rate>87.99</rate>
					</alloc>
					<alloc>
						<avail_from>2010-12-21</avail_from>
						<avail_to>2011-01-06</avail_to>
						<units>15</units>
						<rate>105.00</rate>
					</alloc>
				</allocation>
			</room_type>
		</rooms>
	</lodging>
</iwbsetallocation>
