GET GDS/Hotel/{hotelCode}/{globalId}
Get complete hotel information which include address location and other perks for the specified hotel code.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| hotelCode |
Code which uniquely specifies a hotel property. |
string |
Required |
| globalId |
Indicates the hotelCode is a GlobalId and not a GDS-specific code. |
boolean |
Required |
Body Parameters
None.
Response Information
Resource Description
HotelInfo object.
HotelInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| Code | string |
None. |
|
| Address | Address |
None. |
|
| GDSCityCode | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"Code": "sample string 2",
"Address": {
"LocationName": "sample string 1",
"StreetAddress": "sample string 2",
"AddressLine2": "sample string 3",
"CityName": "sample string 4",
"Locality": "sample string 5",
"StateCode": "sample string 6",
"PostalCode": "sample string 7",
"CountryCode": "sample string 8",
"PhoneNumber": "sample string 9",
"FullAddress": "sample string 10",
"Longitude": 11.1,
"Latitude": 12.1
},
"GDSCityCode": "sample string 3"
}
application/xml, text/xml
Sample:
<HotelInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Name>sample string 1</Name>
<Code>sample string 2</Code>
<Address>
<LocationName>sample string 1</LocationName>
<StreetAddress>sample string 2</StreetAddress>
<AddressLine2>sample string 3</AddressLine2>
<CityName>sample string 4</CityName>
<Locality>sample string 5</Locality>
<StateCode>sample string 6</StateCode>
<PostalCode>sample string 7</PostalCode>
<CountryCode>sample string 8</CountryCode>
<PhoneNumber>sample string 9</PhoneNumber>
<FullAddress>sample string 10</FullAddress>
<Longitude>11.1</Longitude>
<Latitude>12.1</Latitude>
</Address>
<GDSCityCode>sample string 3</GDSCityCode>
</HotelInfo>