Hotel Shopping API

 

  1. Overview
  2. Request Parameters
  3. Example Request
  4. Response XML
  5. Example Request/Response Pair
  6. XSD for Hotel Shopping

 

 

1. Overview

The Hotel Shopping API delivers data describing hotel shopping results similar to those that can be obtained when shopping for hotel rates on  Hotwire.com.   Each result returned includes a URL that can be used to view additional details and complete a purchase on Hotwire.com.  

As on Hotwire.com,  the API does not divulge the identify of specific hotels.  Hotwire customers learn the identity of the hotel they book after their purchase is complete.  In exchange for their flexibility, they can save quite a bit of money.     If you're new to Hotwire.com, an introduction may be found here:  http://www.hotwire.com/newtohotwire/index.jsp

 

The API allows the developer to search for hotel results using parameters similar to those used to initiate a hotel search on Hotwire.com, including:

  • destination
  • checkin date and checkout date
  • number of rooms
  • number of adult guests
  • number of children

 

The data returned by the Hotel Shopping  API includes the Hotwire.com city, neighborhood, and star rating for each result, as well as a Hotwire.com nightly rate.    Because travel inventory changes frequently,  price and availability returned by the API cannot be guaranteed.  To minimize rate and availability changes for your application’s users,  Hotwire does not recommend caching data returned by the Hotel Shopping API.

The Hotel Shopping API base URL is:

http://api.hotwire.com/v1/search/hotel

Formats supported:  xml, json, jsonp

Note that the Hotel Shopping API is a complement to Hotwire’s Hotel Deals API.  

  • Hotel Shopping API
    • Days to arrival: 0-330 days
    • Length of stay: 1-30 nights
    • Number of rooms: 1-6
    • Number of adults: 1-24
    • Number of children: 0-16
    • Rates and availability:  equivalent to a new Hotwire.com search
    • Locations: One city per search
    • Date specification:  Checkin and Checkout Date
    • Response time: Typically between 2-20 seconds
  • Hotel Deals API
    • Days to arrival: 0-30
    • Length of stay: 1-7 nights
    • Number of rooms: 1
    • Number of adults: 2
    • Number of children: 0
    • Rates and availability: best deals found by Hotwire customers in the last 24 hours
    • Locations: multiple per search
    • Date specification: flexible
    • Response time: typically between 1-5 seconds

2. Request Parameters:

The Hotel Shopping  API takes the following request parameters

&dest=specifies a geographical anchor point for the hotel deal search.   Results will include neighborhoods in the city most closely matching the parameter.

  • You may specify a lat,lon pair.
  • You may specify a string that we can geocode into a lat,lon pair.   You can try addresses, city names, and points of interest.  
  • You may specify a 3 letter airport code, such as LAX or JFK
  • Be aware that the API will proceed with a "best match" for ambiguous destinations, so developers should attempt to resolve ambiguous inputs before calling the API.
  • If the specified location does not match a city where Hotwire has inventory, the API will return results in the closest city where inventory is available.
  • If no Hotwire inventory is available within 200 miles of the specified destination, in any direction, then the API will return no results..
  • Examples:
    • &dest=Seattle
    • &dest=Portland,OR
    • &dest=LAX
    • &dest==37.792,-122.397
  • &dest= is a required parameter.


&startdate=&enddate specifies stay dates for the hotel search.

  • Note: at present, hotel search supports stays up to 330 days from the current date, with a maximum stay of 30 nights.
  • Examples:
    • &startdate=07/04/2014&enddate=07/11/2014  #specific checkin and checkout dates
  • &startdate- and &enddate= are required parameters

 

&rooms=  specifies the number of rooms to search for

  • value is numeric, in the range of 1 to 6.
  • Example
    • &rooms=1
  • Note that requests to search for multiple rooms may produce limited results.
  • The number of rooms requested cannot exceed the number of adults specified.
  • &rooms= is a required parameter.

 

&adults=  specifies the number of adult guests to specify in the search

  • value is numeric, in the range of 1 to 24.
  • Example
    • &adults=2
  • A valid search requires at least one adult per room requested.
  • Note that requests to search for rooms with occupancy greater than two adults may produce limited results.
  • &adults= is a required parameter.

 

&children=  specifies the number of children to specify in the search

  • value is numeric, in the range of 0 to 16.
  • Example
    • &children=0
  • Note that regardless of the number of children specified, a valid search requires at least one adult per room requested.
  • Note that requests to search for rooms with occupancy that includes children may produce a reduced result set.
  • &children= is a required parameter.

&hwpos=uk toindicate that currency amounts should be presented in GBP, and that deeplinks should point to the Hotwire.co.uk site rather than to Hotwire.com.  At this time, USD and GBP are the only currencies supported.

  •  Example:
    • &hwpos=uk


Additional Notes:

  • The &limit= parameter is not supported by the Hotel Shopping API.

3. Example request:

Search for Hotwire hotel rates and availability in San Francisco, CA, checking in January 20, 2014 and checking out January 23, 2014

http://api.hotwire.com/v1/search/hotel?apikey=abc123&dest=San%20Francisco,%20Ca.&rooms=1&adults=2&children=0&startdate=01/20/2014&enddate=01/23/2014

 

4. Response XML:

XML Responses to the Hotel Shopping API are divided into five sections.

  • A <MetaData> section, containing descriptions of items that may be referenced repeatedly in results.  Use of the metadata section results in a more manageable message size for large result sets.
  • A <Result> section, containing descriptions of individual priced hotel  results.
  • A <StatusCode> numeric, which will be 0 for successful calls.
  • A <StatusDesc> textual element, which will be ‘success’ on successful call and contain diagnostic information otherwise.
  • An <Errors> section containing detailed information describing errors for unsuccessful calls.

MetaData contains the following data:

  • <Amenities>describing features of the hotel offering, such as swimming pools, restaurants, or spas.  Consists of <Amenity> records, each of which contains:
    • <Code> a two character code to be referenced in the Results section of the response.
    • <Description> a textural description, suitable for display.
  • <Neighborhoods> describing the geography in which a Hotwire hotel offering is located.  Remember, Hotwire doesn’t disclose the precise identify or location of specific hotels until after a purchase is confirmed.  Consists of multiple <Neighborhood> records, each of which contains,
    • <Centroid>  a comma separated list of two numeric values representing latitude and longitude
    • <City> <State> and <Country> The city state and country in which the Neighborhood is located.
    • <Id> a numeric Neighborhood id, to be referenced in the Result section of the response.
    • <Name> The neighborhood’s name as it appears on Hotwire.com.
    • <Description> A brief description of the neighborhood, if available

Result consists of <HotelResult> records, each of which can contain

  • <CurrencyCode>   The currency code in which all currency  fields are denominated
  • <DeepLink>  A Hotwire.com link that can be used to complete a purchase of the given result.   All rates and availability are subject to change at any time.
  • <ResultId>  A unique ID for the given result.  Reserved for future use.
  • <HWRefNumber>  A reference number for the given result.  Reserved for use by other Hotwire APIs.
  • <SubTotal> The price of the result, excluding taxes and fees.
  • <TaxesAndFees> Taxes and Fees associated with the result
  • <TotalPrice> The total price of the result, including all taxes and fees.
  • <AmenityCodes> The list of Amenity Codes associated with the result.  References Amenity data found in the MetaData section of the response.
  • <CheckinDate> and <CheckoutDate>   Define the stay dates associated with the given result
  • <NeighborhoodId> A unique id representing the neighborhood in which the given result is located.   References Neighborhood data found in the MetaData section of the response.
  • <LodgingTypeCode> may be “H” for hotel,  “C” for condo, or “A” for all-inclusive resort.
  • <Nights>  The duration of the result, in nights
  • <AveragePricePerNight> As a convenience, computes the average price per room per night for the given result, exclusive of taxes and fees.  This is equivalent to the display price for the result on Hotwire.com.
  • <Rooms> The number of rooms associated with the result.
  • <SpecialTaxItems>  Additional information about taxes imposed by certain local governments.  Rarely used.
  • <StarRating> The Hotwire Star Rating of the result.  May be between 1 and 5 stars, in 0.5 star increments.

Additionally, if the incoming request includes a "&linkshareid=" parameter with a valid 11 character value, then the resulting HotelDeal records will include a LinkshareDeepLink  data element.   Traffic from Hotwire affilates must come through these Linkshare comatible URLs in order for the affiliate to receive credit for resulting transactions.

Note that it is permissible to cache Hotwire neighborhood and amenity data to avoid parsing the metadata with each response.

 

5. Example request/response pair:

Shop for hotels in Memphis, checking in Jan 20, 2014 and checking out Jan 23, 2014, http://api.hotwire.com/v1/search/hotel?apikey=abc123&dest=Memphis&rooms=1&adults=2&children=0&startdate=01/20/2014&enddate=01/23/2014

 

<Hotwire>

<Errors/>

−

<MetaData>

−

<HotelMetaData>

−

<Amenities>

−

<Amentity>

<Code>AS</Code>

−

<Description>

Property offers transportation to and from the airport. Shuttles may run during limited hours or require a reservation; an additional charge may apply.

</Description>

<Name>Airport Shuttle</Name>

</Amentity>

−

<Amentity>

<Code>BC</Code>

−

<Description>

Guests have access to business equipment and services; an additional charge may apply.

</Description>

<Name>Business Center</Name>

</Amentity>

−

<Amentity>

<Code>CB</Code>

<Description>Rates include continental or full breakfast.</Description>

<Name>Complimentary Breakfast</Name>

</Amentity>

−

<Amentity>

<Code>FC</Code>

−

<Description>

Guests have access to exercise equipment; an additional charge may apply.

</Description>

<Name>Fitness Center</Name>

</Amentity>

−

<Amentity>

<Code>GN</Code>

−

<Description>

Property is located within walking distance or a short drive of at least one golf course; an extra charge typically applies.

</Description>

<Name>Golf Nearby</Name>

</Amentity>

−

<Amentity>

<Code>HS</Code>

−

<Description>

Guestrooms are equipped with high-speed Internet access; an extra charge may apply.

</Description>

<Name>High-speed Internet Access</Name>

</Amentity>

−

<Amentity>

<Code>LF</Code>

−

<Description>

Guests have access to a coin-operated washer and dryer.

</Description>

<Name>Laundry Facilities</Name>

</Amentity>

−

<Amentity>

<Code>PO</Code>

−

<Description>

Property offers at least one pool area; hours and dates of operation may be seasonal.

</Description>

<Name>Pool(s)</Name>

</Amentity>

−

<Amentity>

<Code>RE</Code>

−

<Description>

Property offers at least one restaurant on the premises; hours and days of operation may vary.

</Description>

<Name>Restaurant(s)</Name>

</Amentity>

−

<Amentity>

<Code>SR</Code>

<Description>Guest rooms at this hotel are always smoke-free.</Description>

<Name>Smoke Free Rooms</Name>

</Amentity>

−

<Amentity>

<Code>SU</Code>

−

<Description>

A guestroom designed for an extended stay and/or that more spacious than the average hotel room. Suites typically offer residential-style furnishings, as well as separate living and sleeping areas; some also offer kitchenettes.

</Description>

<Name>Suite</Name>

</Amentity>

−

<Amentity>

<Code>TN</Code>

−

<Description>

Property is located within walking distance or a short drive of at least one tennis court; an extra charge typically applies.

</Description>

<Name>Tennis Nearby</Name>

</Amentity>

</Amenities>

−

<Neighborhoods>

−

<Neighborhood>

<Centroid>35.193306,-89.792666</Centroid>

<City>Bartlett</City>

<Country>US</Country>

<Id>87595</Id>

<Name>Wolfchase</Name>

−


<State>TN</State>

</Neighborhood>

−

<Neighborhood>

<Centroid>35.136541,-90.055965</Centroid>

<City>Memphis</City>

<Country>US</Country>

<Id>87596</Id>

<Name>Downtown Memphis</Name>

−


<State>TN</State>

</Neighborhood>

−

<Neighborhood>

<Centroid>35.100614,-89.874376</Centroid>

<City>Germantown</City>

<Country>US</Country>

<Id>87597</Id>

<Name>East Memphis</Name>

−


<State>TN</State>

</Neighborhood>

−

<Neighborhood>

<Centroid>35.072507,-89.981479</Centroid>

<City>Memphis</City>

<Country>US</Country>

<Id>87598</Id>

<Name>Graceland - Memphis Intl Airport MEM</Name>

−

<State>TN</State>

</Neighborhood>

−

<Neighborhood>

<Centroid>35.134218,-89.982071</Centroid>

<City>Memphis</City>

<Country>US</Country>

<Id>89863</Id>

<Name>Medical Center - University Area</Name>

−


<State>TN</State>

</Neighborhood>

−

<Neighborhood>

<Centroid>35.056215,-89.821296</Centroid>

<City>Germantown</City>

<Country>US</Country>

<Id>89864</Id>

<Name>Memphis Southeast</Name>

−


<State>TN</State>

</Neighborhood>

−

<Neighborhood>

<Centroid>35.16647,-89.862022</Centroid>

<City>Bartlett</City>

<Country>US</Country>

<Id>89865</Id>

<Name>Sycamore View</Name>

−


<State>TN</State>

</Neighborhood>

</Neighborhoods>

</HotelMetaData>

</MetaData>

−

<Result>

−

<HotelResult>

<CurrencyCode>USD</CurrencyCode>

−

<DeepLink>

http://www.hotwire.com/hotel/deeplink-details.jsp?resultId=NDk0OTcxOTAwNDo1OTc3ODMzOTI2Mg--&amp;sid=S001&amp;bid=B001&amp;inputId=api-results&amp;actionType=303

</DeepLink>

<ResultId>NDk0OTcxOTAwNDo1OTc3ODMzOTI2Mg--</ResultId>

<HWRefNumber>5093363520</HWRefNumber>

<SubTotal>177.00</SubTotal>

<TaxesAndFees>30.73</TaxesAndFees>

<TotalPrice>207.73</TotalPrice>

−

<AmenityCodes>

<Code>FC</Code>

<Code>PO</Code>

<Code>BC</Code>

<Code>HS</Code>

</AmenityCodes>

<CheckInDate>01/20/2014</CheckInDate>

<CheckOutDate>01/23/2014</CheckOutDate>

<NeighborhoodId>87597</NeighborhoodId>

<LodgingTypeCode>H</LodgingTypeCode>

<Nights>3</Nights>



<AveragePricePerNight>59.00</AveragePricePerNight>

<Rooms>1</Rooms>

<SpecialTaxItems/>

<StarRating>3.0</StarRating>

</HotelResult>

−

<HotelResult>

<CurrencyCode>USD</CurrencyCode>

−

<DeepLink>

http://www.hotwire.com/hotel/deeplink-details.jsp?resultId=NDk0OTcxOTAwNDo1OTc3ODMzOTI1Mw--&amp;sid=S001&amp;bid=B001&amp;inputId=api-results&amp;actionType=303

</DeepLink>

<ResultId>NDk0OTcxOTAwNDo1OTc3ODMzOTI1Mw--</ResultId>

<HWRefNumber>5223666872</HWRefNumber>

<SubTotal>147.00</SubTotal>

<TaxesAndFees>26.44</TaxesAndFees>

<TotalPrice>173.44</TotalPrice>

−

<AmenityCodes>

<Code>FC</Code>

<Code>PO</Code>

</AmenityCodes>

<CheckInDate>01/20/2014</CheckInDate>

<CheckOutDate>01/23/2014</CheckOutDate>

<NeighborhoodId>87598</NeighborhoodId>

<LodgingTypeCode>H</LodgingTypeCode>

<Nights>3</Nights>

<Rooms>1</Rooms>

<SpecialTaxItems/>

<StarRating>2.5</StarRating>

</HotelResult>

−

<HotelResult>

<CurrencyCode>USD</CurrencyCode>

−

<DeepLink>

http://www.hotwire.com/hotel/deeplink-details.jsp?resultId=NDk0OTcxOTAwNDo1OTc3ODMzOTI0Nw--&amp;sid=S001&amp;bid=B001&amp;inputId=api-results&amp;actionType=303

</DeepLink>

<ResultId>NDk0OTcxOTAwNDo1OTc3ODMzOTI0Nw--</ResultId>

<HWRefNumber>5627450954</HWRefNumber>

<SubTotal>189.00</SubTotal>

<TaxesAndFees>31.80</TaxesAndFees>

<TotalPrice>220.80</TotalPrice>

−

<AmenityCodes>

<Code>AS</Code>

<Code>FC</Code>

<Code>PO</Code>

<Code>RE</Code>

<Code>BC</Code>

<Code>LF</Code>

<Code>HS</Code>

</AmenityCodes>

<CheckInDate>01/20/2010</CheckInDate>

<CheckOutDate>01/23/2010</CheckOutDate>

<NeighborhoodId>87597</NeighborhoodId>

<LodgingTypeCode>H</LodgingTypeCode>

<Nights>3</Nights>

<AveragePricePerNight>63.00</AveragePricePerNight>

<Rooms>1</Rooms>

<SpecialTaxItems/>

<StarRating>2.5</StarRating>

</HotelResult>

−

<HotelResult>

<CurrencyCode>USD</CurrencyCode>

−

<DeepLink>

http://www.hotwire.com/hotel/deeplink-details.jsp?resultId=NDk0OTcxOTAwNDo1OTc3ODMzOTI0MQ--&amp;sid=S001&amp;bid=B001&amp;inputId=api-results&amp;actionType=303

</DeepLink>

<ResultId>NDk0OTcxOTAwNDo1OTc3ODMzOTI0MQ--</ResultId>

<HWRefNumber>6072476497</HWRefNumber>

<SubTotal>426.00</SubTotal>

<TaxesAndFees>67.92</TaxesAndFees>

<TotalPrice>493.92</TotalPrice>

−

<AmenityCodes>

<Code>FC</Code>

<Code>PO</Code>

<Code>RE</Code>

<Code>BC</Code>

<Code>HS</Code>

</AmenityCodes>

<CheckInDate>01/20/2014</CheckInDate>

<CheckOutDate>01/23/2014</CheckOutDate>

<NeighborhoodId>87596</NeighborhoodId>

<LodgingTypeCode>H</LodgingTypeCode>

<Nights>3</Nights>

<AveragePricePerNight>142.00</AveragePricePerNight>

<Rooms>1</Rooms>

<SpecialTaxItems/>

<StarRating>3.5</StarRating>

</HotelResult>

−

<HotelResult>

<CurrencyCode>USD</CurrencyCode>

−

<DeepLink>

http://www.hotwire.com/hotel/deeplink-details.jsp?resultId=NDk0OTcxOTAwNDo1OTc3ODMzOTI1NA--&amp;sid=S001&amp;bid=B001&amp;inputId=api-results&amp;actionType=303

</DeepLink>

<ResultId>NDk0OTcxOTAwNDo1OTc3ODMzOTI1NA--</ResultId>

<HWRefNumber>6435221399</HWRefNumber>

<SubTotal>588.00</SubTotal>

<TaxesAndFees>92.36</TaxesAndFees>

<TotalPrice>680.36</TotalPrice>

−

<AmenityCodes>

<Code>FC</Code>

<Code>RE</Code>

<Code>BC</Code>

<Code>HS</Code>

<Code>GN</Code>

</AmenityCodes>

<CheckInDate>01/20/2014</CheckInDate>

<CheckOutDate>01/23/2014</CheckOutDate>

<NeighborhoodId>87596</NeighborhoodId>

<LodgingTypeCode>H</LodgingTypeCode>

<Nights>3</Nights>

<AveragePricePerNight>196.00</AveragePricePerNight>

<Rooms>1</Rooms>

<SpecialTaxItems/>

<StarRating>4.0</StarRating>

</HotelResult>

−

<HotelResult>

<CurrencyCode>USD</CurrencyCode>

−

<DeepLink>

http://www.hotwire.com/hotel/deeplink-details.jsp?resultId=NDk0OTcxOTAwNDo1OTc3ODMzOTI1Mg--&amp;sid=S001&amp;bid=B001&amp;inputId=api-results&amp;actionType=303

</DeepLink>

<ResultId>NDk0OTcxOTAwNDo1OTc3ODMzOTI1Mg--</ResultId>

<HWRefNumber>6277998025</HWRefNumber>

<SubTotal>204.00</SubTotal>

<TaxesAndFees>33.95</TaxesAndFees>

<TotalPrice>237.95</TotalPrice>

−

<AmenityCodes>

<Code>CB</Code>

<Code>FC</Code>

<Code>PO</Code>

<Code>BC</Code>

<Code>HS</Code>

<Code>GN</Code>

</AmenityCodes>

<CheckInDate>01/20/2010</CheckInDate>

<CheckOutDate>01/23/2010</CheckOutDate>

<NeighborhoodId>89863</NeighborhoodId>

<LodgingTypeCode>H</LodgingTypeCode>

<Nights>3</Nights>

<AveragePricePerNight>68.00</AveragePricePerNight>

<Rooms>1</Rooms>

<SpecialTaxItems/>

<StarRating>2.5</StarRating>

</HotelResult>

−

<HotelResult>

<CurrencyCode>USD</CurrencyCode>

−

<DeepLink>

http://www.hotwire.com/hotel/deeplink-details.jsp?resultId=NDk0OTcxOTAwNDo1OTc3ODMzOTI1OQ--&amp;sid=S001&amp;bid=B001&amp;inputId=api-results&amp;actionType=303

</DeepLink>

<ResultId>NDk0OTcxOTAwNDo1OTc3ODMzOTI1OQ--</ResultId>

<HWRefNumber>6822321538</HWRefNumber>

<SubTotal>147.00</SubTotal>

<TaxesAndFees>30.19</TaxesAndFees>

<TotalPrice>177.19</TotalPrice>

−

<AmenityCodes>

<Code>CB</Code>

<Code>FC</Code>

<Code>PO</Code>

<Code>BC</Code>

</AmenityCodes>

<CheckInDate>01/20/2014</CheckInDate>

<CheckOutDate>01/23/2014</CheckOutDate>

<NeighborhoodId>89865</NeighborhoodId>

<LodgingTypeCode>H</LodgingTypeCode>

<Nights>3</Nights>

<AveragePricePerNight>49.00</AveragePricePerNight>

<Rooms>1</Rooms>

<SpecialTaxItems/>

<StarRating>2.5</StarRating>

</HotelResult>

−

<HotelResult>

<CurrencyCode>USD</CurrencyCode>

−

<DeepLink>

http://www.hotwire.com/hotel/deeplink-details.jsp?resultId=NDk0OTcxOTAwNDo1OTc3ODMzOTI2MQ--&amp;sid=S001&amp;bid=B001&amp;inputId=api-results&amp;actionType=303

</DeepLink>

<ResultId>NDk0OTcxOTAwNDo1OTc3ODMzOTI2MQ--</ResultId>

<HWRefNumber>6280064321</HWRefNumber>

<SubTotal>195.00</SubTotal>

<TaxesAndFees>35.00</TaxesAndFees>

<TotalPrice>230.00</TotalPrice>

−

<AmenityCodes>

<Code>CB</Code>

<Code>FC</Code>

<Code>PO</Code>

<Code>BC</Code>

</AmenityCodes>

<CheckInDate>01/20/2014</CheckInDate>

<CheckOutDate>01/23/2014</CheckOutDate>

<NeighborhoodId>87595</NeighborhoodId>

<LodgingTypeCode>H</LodgingTypeCode>

<Nights>3</Nights>

<AveragePricePerNight>65.00</AveragePricePerNight>

<Rooms>1</Rooms>

<SpecialTaxItems/>

<StarRating>2.5</StarRating>

</HotelResult>

−

<HotelResult>

<CurrencyCode>USD</CurrencyCode>

−

<DeepLink>

http://www.hotwire.com/hotel/deeplink-details.jsp?resultId=NDk0OTcxOTAwNDo1OTc3ODMzOTI0Mw--&amp;sid=S001&amp;bid=B001&amp;inputId=api-results&amp;actionType=303

</DeepLink>

<ResultId>NDk0OTcxOTAwNDo1OTc3ODMzOTI0Mw--</ResultId>

<HWRefNumber>6259008107</HWRefNumber>

<SubTotal>156.00</SubTotal>

<TaxesAndFees>30.28</TaxesAndFees>

<TotalPrice>186.28</TotalPrice>

−

<AmenityCodes>

<Code>SR</Code>

</AmenityCodes>

<CheckInDate>01/20/2014</CheckInDate>

<CheckOutDate>01/23/2014</CheckOutDate>

<NeighborhoodId>87598</NeighborhoodId>

<LodgingTypeCode>H</LodgingTypeCode>

<Nights>3</Nights>

<AveragePricePerNight>52.00</AveragePricePerNight>

<Rooms>1</Rooms>

<SpecialTaxItems/>

<StarRating>2.0</StarRating>

</HotelResult>

−

<HotelResult>

<CurrencyCode>USD</CurrencyCode>

−

<DeepLink>

http://www.hotwire.com/hotel/deeplink-details.jsp?resultId=NDk0OTcxOTAwNDo1OTc3ODMzOTI0NQ--&amp;sid=S001&amp;bid=B001&amp;inputId=api-results&amp;actionType=303

</DeepLink>

<ResultId>NDk0OTcxOTAwNDo1OTc3ODMzOTI0NQ--</ResultId>

<HWRefNumber>5544658117</HWRefNumber>

<SubTotal>147.00</SubTotal>

<TaxesAndFees>27.64</TaxesAndFees>

<TotalPrice>174.64</TotalPrice>

−

<AmenityCodes>

<Code>CB</Code>

<Code>BC</Code>

<Code>GN</Code>

<Code>TN</Code>

</AmenityCodes>

<CheckInDate>01/20/2014</CheckInDate>

<CheckOutDate>01/23/2014</CheckOutDate>

<NeighborhoodId>89865</NeighborhoodId>

<LodgingTypeCode>H</LodgingTypeCode>

<Nights>3</Nights>

<AveragePricePerNight>49.00</AveragePricePerNight>

<Rooms>1</Rooms>

<SpecialTaxItems/>

<StarRating>2.0</StarRating>

</HotelResult>

−

<HotelResult>

<CurrencyCode>USD</CurrencyCode>

−

<DeepLink>

http://www.hotwire.com/hotel/deeplink-details.jsp?resultId=NDk0OTcxOTAwNDo1OTc3ODMzOTI0OA--&amp;sid=S001&amp;bid=B001&amp;inputId=api-results&amp;actionType=303

</DeepLink>

<ResultId>NDk0OTcxOTAwNDo1OTc3ODMzOTI0OA--</ResultId>

<HWRefNumber>5914020317</HWRefNumber>

<SubTotal>297.00</SubTotal>

<TaxesAndFees>46.81</TaxesAndFees>

<TotalPrice>343.81</TotalPrice>

−

<AmenityCodes>

<Code>SR</Code>

<Code>CB</Code>

<Code>FC</Code>

<Code>PO</Code>

<Code>BC</Code>

<Code>HS</Code>

</AmenityCodes>

<CheckInDate>01/20/2010</CheckInDate>

<CheckOutDate>01/23/2010</CheckOutDate>

<NeighborhoodId>87595</NeighborhoodId>

<LodgingTypeCode>H</LodgingTypeCode>

<Nights>3</Nights>

<AveragePricePerNight>99.00</AveragePricePerNight>

<Rooms>1</Rooms>

<SpecialTaxItems/>

<StarRating>3.0</StarRating>

</HotelResult>

−

<HotelResult>

<CurrencyCode>USD</CurrencyCode>

−

<DeepLink>

http://www.hotwire.com/hotel/deeplink-details.jsp?resultId=NDk0OTcxOTAwNDo1OTc3ODMzOTI0OQ--&amp;sid=S001&amp;bid=B001&amp;inputId=api-results&amp;actionType=303

</DeepLink>

<ResultId>NDk0OTcxOTAwNDo1OTc3ODMzOTI0OQ--</ResultId>

<HWRefNumber>6543165837</HWRefNumber>

<SubTotal>264.00</SubTotal>

<TaxesAndFees>41.98</TaxesAndFees>

<TotalPrice>305.98</TotalPrice>

−

<AmenityCodes>

<Code>FC</Code>

<Code>RE</Code>

<Code>BC</Code>

<Code>LF</Code>

<Code>HS</Code>

</AmenityCodes>

<CheckInDate>01/20/2014</CheckInDate>

<CheckOutDate>01/23/2014</CheckOutDate>

<NeighborhoodId>87596</NeighborhoodId>

<LodgingTypeCode>H</LodgingTypeCode>

<Nights>3</Nights>

<AveragePricePerNight>88.00</AveragePricePerNight>

<Rooms>1</Rooms>

<SpecialTaxItems/>

<StarRating>2.0</StarRating>

</HotelResult>

−

<HotelResult>

<CurrencyCode>USD</CurrencyCode>

−

<DeepLink>

http://www.hotwire.com/hotel/deeplink-details.jsp?resultId=NDk0OTcxOTAwNDo1OTc3ODMzOTI2NQ--&amp;sid=S001&amp;bid=B001&amp;inputId=api-results&amp;actionType=303

</DeepLink>

<ResultId>NDk0OTcxOTAwNDo1OTc3ODMzOTI2NQ--</ResultId>

<HWRefNumber>5437691634</HWRefNumber>

<SubTotal>225.00</SubTotal>

<TaxesAndFees>36.63</TaxesAndFees>

<TotalPrice>261.63</TotalPrice>

−

<AmenityCodes>

<Code>CB</Code>

<Code>FC</Code>

<Code>PO</Code>

<Code>LF</Code>

<Code>HS</Code>

</AmenityCodes>

<CheckInDate>01/20/2014</CheckInDate>

<CheckOutDate>01/23/2014</CheckOutDate>

<NeighborhoodId>89864</NeighborhoodId>

<LodgingTypeCode>H</LodgingTypeCode>

<Nights>3</Nights>

<AveragePricePerNight>75.00</AveragePricePerNight>

<Rooms>1</Rooms>

<SpecialTaxItems/>

<StarRating>2.5</StarRating>

</HotelResult>

−

<HotelResult>

<CurrencyCode>USD</CurrencyCode>

−

<DeepLink>

http://www.hotwire.com/hotel/deeplink-details.jsp?resultId=NDk0OTcxOTAwNDo1OTc3ODMzOTI0NA--&amp;sid=S001&amp;bid=B001&amp;inputId=api-results&amp;actionType=303

</DeepLink>

<ResultId>NDk0OTcxOTAwNDo1OTc3ODMzOTI0NA--</ResultId>

<HWRefNumber>5757372062</HWRefNumber>

<SubTotal>387.00</SubTotal>

<TaxesAndFees>58.20</TaxesAndFees>

<TotalPrice>445.20</TotalPrice>

−

<AmenityCodes>

<Code>SU</Code>

<Code>FC</Code>

<Code>RE</Code>

<Code>BC</Code>

<Code>HS</Code>

<Code>GN</Code>

</AmenityCodes>

<CheckInDate>01/20/2014</CheckInDate>

<CheckOutDate>01/23/2014</CheckOutDate>

<NeighborhoodId>89863</NeighborhoodId>

<LodgingTypeCode>H</LodgingTypeCode>

<Nights>3</Nights>

<AveragePricePerNight>129.00</AveragePricePerNight>

<Rooms>1</Rooms>

<SpecialTaxItems/>

<StarRating>3.0</StarRating>

</HotelResult>

</Result>

<StatusCode>0</StatusCode>

<StatusDesc>success</StatusDesc>

</Hotwire>

 

6.. Hotel Shopping XSD

 

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:import namespace="http://www.w3.org/XML/1998/namespace"
               schemaLocation="http://www.w3.org/2001/xml.xsd"/>
    <xs:element type="xs:int" name="StatusCode"/>
    <xs:element type="xs:string" name="StatusDesc"/>
    <xs:complexType name="StatusType">
        <xs:sequence>
            <xs:element ref="StatusCode"/>
            <xs:element ref="StatusDesc"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="AmenityType">
        <xs:sequence>
            <xs:element type="xs:string" name="Code"/>
            <xs:element type="xs:string" name="Description"/>
            <xs:element type="xs:string" name="Name"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="HotwireType">
        <xs:sequence>
            <xs:element type="ErrorsType" name="Errors" minOccurs="0"/>
            <xs:element type="MetaDataType" name="MetaData" minOccurs="0"/>
            <xs:element type="ResultType" name="Result" minOccurs="0"/>
            <xs:element ref="StatusCode"/>
            <xs:element ref="StatusDesc"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="ResultType">
        <xs:sequence>
            <xs:element type="HotelResultType" name="HotelResult" maxOccurs="unbounded" minOccurs="0"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="ErrorsType">
        <xs:sequence>
            <xs:element type="ErrorType" name="Error" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="ErrorType">
        <xs:sequence>
            <xs:element type="xs:int" name="ErrorCode"/>
            <xs:element type="xs:string" name="ErrorMessage"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="NeighborhoodsType">
        <xs:sequence>
            <xs:element type="NeighborhoodType" name="Neighborhood" maxOccurs="unbounded" minOccurs="0"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="HotelResultType">
        <xs:sequence>
            <xs:element type="xs:string" name="CurrencyCode"/>
            <xs:element type="xs:string" name="DeepLink"/>
            <xs:element type="xs:string" name="LinkshareDeepLink" minOccurs="0" maxOccurs="1"/>
            <xs:element type="xs:string" name="ResultId"/>
            <xs:element type="xs:string" name="HWRefNumber"/>
            <xs:element type="xs:float" name="SubTotal"/>
            <xs:element type="xs:float" name="TaxesAndFees"/>
            <xs:element type="xs:float" name="TotalPrice"/>
            <xs:element name="AmenityCodes">
                <xs:complexType mixed="true">
                    <xs:sequence>
                        <xs:element type="xs:string" name="Code" maxOccurs="unbounded" minOccurs="0"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element type="xs:string" name="CheckInDate"/>
            <xs:element type="xs:string" name="CheckOutDate"/>
            <xs:element type="xs:long" name="NeighborhoodId"/>
            <xs:element type="xs:string" name="LodgingTypeCode"/>
            <xs:element type="xs:int" name="Nights"/>
            <xs:element type="xs:float" name="AveragePricePerNight"/>
            <xs:element type="xs:int" name="Rooms"/>
            <xs:element type="SpecialTaxItemsType" name="SpecialTaxItems" minOccurs="0" maxOccurs="1"/>
            <xs:element type="xs:float" name="StarRating"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="NeighborhoodType">
        <xs:sequence>
            <xs:element type="xs:string" name="Centroid"/>
            <xs:element type="xs:string" name="City"/>
            <xs:element type="xs:string" name="Country"/>
            <xs:element type="xs:string" name="Description" minOccurs="0"/>
            <xs:element type="xs:long" name="Id"/>
            <xs:element type="xs:string" name="Name"/>
            <xs:element type="xs:string" name="State"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="ShapeType">
        <xs:sequence>
            <xs:element type="xs:string" name="LatLong" maxOccurs="unbounded" minOccurs="0"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="MetaDataType">
        <xs:sequence>
            <xs:element type="HotelMetaDataType" name="HotelMetaData"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="AmenitiesType">
        <xs:sequence>
            <xs:element type="AmenityType" name="Amenity" maxOccurs="unbounded" minOccurs="0"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="PaidAmenitiesType">
        <xs:sequence>
            <xs:element type="PaidAmenityType" name="PaidAmenity" maxOccurs="unbounded" minOccurs="0"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="HotelMetaDataType">
        <xs:sequence>
            <xs:element type="AmenitiesType" name="Amenities"/>
            <xs:element type="NeighborhoodsType" name="Neighborhoods"/>
        </xs:sequence>
    </xs:complexType>
    <xs:element name="Hotwire" type="HotwireType"/>
    <xs:complexType name="SpecialTaxItemsType">
        <xs:sequence>
            <xs:element type="TaxItemType" name="TaxItem" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="TaxItemType">
        <xs:sequence>
            <xs:element type="xs:string" name="Description"/>
            <xs:element type="xs:float" name="Amount"/>
            <xs:element type="xs:string" name="CurrencyCode"/>
        </xs:sequence>
    </xs:complexType>
</xs:schema>