GET api/MainHotelData/HotelData/{vendorcode}/{destination}
HotelData returns the vendor's list of the hotels for the given destination.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
vendorcode |
Three character Vendor Code. |
string |
Required |
destination |
Three character destination code. |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
MainHotelDataResponse containing a list of hotels for sale in that destination.
MainHotelDataResponseName | Description | Type | Additional information |
---|---|---|---|
AmenityXref | AmenityXref |
None. |
|
Brands | Collection of Brand |
None. |
|
BreadCrumbs | Collection of Crumb |
None. |
|
CityCode | string |
None. |
|
Hotels | Collection of HotelData |
None. |
|
Recommends | Collection of Sibling |
None. |
|
VirtualTours | Collection of VirtualTour |
None. |
Response Formats
application/json, text/json
Sample:
{ "AmenityXref": { "HotelAmenities": [ { "AmenityList": [ { "Id": 1, "Value": "sample string 2" }, { "Id": 1, "Value": "sample string 2" } ], "MainParentCode": "sample string 1" }, { "AmenityList": [ { "Id": 1, "Value": "sample string 2" }, { "Id": 1, "Value": "sample string 2" } ], "MainParentCode": "sample string 1" } ], "Legend": [ { "Choices": [ { "Description": "sample string 1", "Value": "sample string 2" }, { "Description": "sample string 1", "Value": "sample string 2" } ], "Description": "sample string 1", "Id": 2, "Occurs": 3 }, { "Choices": [ { "Description": "sample string 1", "Value": "sample string 2" }, { "Description": "sample string 1", "Value": "sample string 2" } ], "Description": "sample string 1", "Id": 2, "Occurs": 3 } ] }, "Brands": [ { "Sbu": "sample string 1", "VendorAliases": [ { "Code": "sample string 1" }, { "Code": "sample string 1" } ], "VendorCode": "sample string 2", "VendorName": "sample string 3" }, { "Sbu": "sample string 1", "VendorAliases": [ { "Code": "sample string 1" }, { "Code": "sample string 1" } ], "VendorCode": "sample string 2", "VendorName": "sample string 3" } ], "BreadCrumbs": [ { "Code": "sample string 1", "Level": 2, "Name": "sample string 3", "ParentCode": "sample string 4" }, { "Code": "sample string 1", "Level": 2, "Name": "sample string 3", "ParentCode": "sample string 4" } ], "CityCode": "sample string 1", "Hotels": [ { "HotelXrefVendorCode": "sample string 1", "ImageSource": "sample string 2", "LongLocation": "sample string 3", "MainParentCode": "sample string 4", "Name": "sample string 5", "ParentCode": "sample string 6", "ParentCodeDestination": "sample string 7", "PlanType": "sample string 8", "Preferred": true, "Rating": 10.1, "VendorDid": "sample string 11", "VirtualTourHeight": 12, "VirtualTourLink": "sample string 13", "VirtualTourWidth": 14, "IsBooster": true }, { "HotelXrefVendorCode": "sample string 1", "ImageSource": "sample string 2", "LongLocation": "sample string 3", "MainParentCode": "sample string 4", "Name": "sample string 5", "ParentCode": "sample string 6", "ParentCodeDestination": "sample string 7", "PlanType": "sample string 8", "Preferred": true, "Rating": 10.1, "VendorDid": "sample string 11", "VirtualTourHeight": 12, "VirtualTourLink": "sample string 13", "VirtualTourWidth": 14, "IsBooster": true } ], "Recommends": [ { "Code": "sample string 1", "Name": "sample string 2", "ParentCode": "sample string 3" }, { "Code": "sample string 1", "Name": "sample string 2", "ParentCode": "sample string 3" } ], "VirtualTours": [ { "Country": "sample string 1", "DestinationName": "sample string 2", "DisplaySize": "A", "IdCode": 4, "Provider": "sample string 5", "State": "sample string 6", "Title": "sample string 7" }, { "Country": "sample string 1", "DestinationName": "sample string 2", "DisplaySize": "A", "IdCode": 4, "Provider": "sample string 5", "State": "sample string 6", "Title": "sample string 7" } ] }
text/xml
Sample:
<MainHotelDataResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://Trisept.TB.Services.MainHotelData.DataContracts/2007/05"> <AmenityXref> <HotelAmenities> <Amenities> <AmenityList> <Amenity> <Id>1</Id> <Value>sample string 2</Value> </Amenity> <Amenity> <Id>1</Id> <Value>sample string 2</Value> </Amenity> </AmenityList> <MainParentCode>sample string 1</MainParentCode> </Amenities> <Amenities> <AmenityList> <Amenity> <Id>1</Id> <Value>sample string 2</Value> </Amenity> <Amenity> <Id>1</Id> <Value>sample string 2</Value> </Amenity> </AmenityList> <MainParentCode>sample string 1</MainParentCode> </Amenities> </HotelAmenities> <Legend> <LegendItem> <Choices> <Choice> <Description>sample string 1</Description> <Value>sample string 2</Value> </Choice> <Choice> <Description>sample string 1</Description> <Value>sample string 2</Value> </Choice> </Choices> <Description>sample string 1</Description> <Id>2</Id> <Occurs>3</Occurs> </LegendItem> <LegendItem> <Choices> <Choice> <Description>sample string 1</Description> <Value>sample string 2</Value> </Choice> <Choice> <Description>sample string 1</Description> <Value>sample string 2</Value> </Choice> </Choices> <Description>sample string 1</Description> <Id>2</Id> <Occurs>3</Occurs> </LegendItem> </Legend> </AmenityXref> <Brands> <Brand> <Sbu>sample string 1</Sbu> <VendorAliases> <VendorAlias> <Code>sample string 1</Code> </VendorAlias> <VendorAlias> <Code>sample string 1</Code> </VendorAlias> </VendorAliases> <VendorCode>sample string 2</VendorCode> <VendorName>sample string 3</VendorName> </Brand> <Brand> <Sbu>sample string 1</Sbu> <VendorAliases> <VendorAlias> <Code>sample string 1</Code> </VendorAlias> <VendorAlias> <Code>sample string 1</Code> </VendorAlias> </VendorAliases> <VendorCode>sample string 2</VendorCode> <VendorName>sample string 3</VendorName> </Brand> </Brands> <BreadCrumbs> <Crumb> <Code>sample string 1</Code> <Level>2</Level> <Name>sample string 3</Name> <ParentCode>sample string 4</ParentCode> </Crumb> <Crumb> <Code>sample string 1</Code> <Level>2</Level> <Name>sample string 3</Name> <ParentCode>sample string 4</ParentCode> </Crumb> </BreadCrumbs> <CityCode>sample string 1</CityCode> <Hotels> <HotelData> <HotelXrefVendorCode>sample string 1</HotelXrefVendorCode> <ImageSource>sample string 2</ImageSource> <LongLocation>sample string 3</LongLocation> <MainParentCode>sample string 4</MainParentCode> <Name>sample string 5</Name> <ParentCode>sample string 6</ParentCode> <ParentCodeDestination>sample string 7</ParentCodeDestination> <PlanType>sample string 8</PlanType> <Preferred>true</Preferred> <Rating>10.1</Rating> <VendorDid>sample string 11</VendorDid> <VirtualTourHeight>12</VirtualTourHeight> <VirtualTourLink>sample string 13</VirtualTourLink> <VirtualTourWidth>14</VirtualTourWidth> <IsBooster>true</IsBooster> </HotelData> <HotelData> <HotelXrefVendorCode>sample string 1</HotelXrefVendorCode> <ImageSource>sample string 2</ImageSource> <LongLocation>sample string 3</LongLocation> <MainParentCode>sample string 4</MainParentCode> <Name>sample string 5</Name> <ParentCode>sample string 6</ParentCode> <ParentCodeDestination>sample string 7</ParentCodeDestination> <PlanType>sample string 8</PlanType> <Preferred>true</Preferred> <Rating>10.1</Rating> <VendorDid>sample string 11</VendorDid> <VirtualTourHeight>12</VirtualTourHeight> <VirtualTourLink>sample string 13</VirtualTourLink> <VirtualTourWidth>14</VirtualTourWidth> <IsBooster>true</IsBooster> </HotelData> </Hotels> <Recommends> <Sibling> <Code>sample string 1</Code> <Name>sample string 2</Name> <ParentCode>sample string 3</ParentCode> </Sibling> <Sibling> <Code>sample string 1</Code> <Name>sample string 2</Name> <ParentCode>sample string 3</ParentCode> </Sibling> </Recommends> <VirtualTours> <VirtualTour> <Country>sample string 1</Country> <DestinationName>sample string 2</DestinationName> <DisplaySize>65</DisplaySize> <IdCode>4</IdCode> <Provider>sample string 5</Provider> <State>sample string 6</State> <Title>sample string 7</Title> </VirtualTour> <VirtualTour> <Country>sample string 1</Country> <DestinationName>sample string 2</DestinationName> <DisplaySize>65</DisplaySize> <IdCode>4</IdCode> <Provider>sample string 5</Provider> <State>sample string 6</State> <Title>sample string 7</Title> </VirtualTour> </VirtualTours> </MainHotelDataResponse>