POST v1/Hotel/GetHotelDetails
Request Information
URI Parameters
None.
Body Parameters
HotelDetailRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| HotelCode | string |
None. |
|
| HotelCodeWithContext | HotelCodeWithContextCode |
None. |
|
| Rooms | Collection of Room |
None. |
|
| StartDate | date |
None. |
|
| EndDate | date |
None. |
|
| AdultCount | integer |
None. |
|
| ChildCount | integer |
None. |
|
| ChildAges | Collection of string |
None. |
|
| RatePlanCode | string |
None. |
|
| RatePlanSourceCode | string |
None. |
|
| ShopKey | string |
None. |
|
| Vuserid | string |
None. |
|
| PccCode | string |
None. |
|
| UserId | integer |
None. |
|
| AccountID | string |
None. |
|
| UserName | string |
None. |
|
| ApplicationDomain | ApplicationDomain |
None. |
|
| guid | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"HotelCode": "sample string 1",
"HotelCodeWithContext": {
"HotelCode": "sample string 1",
"ContextCode": "sample string 2"
},
"Rooms": [
{
"AdultCount": 1,
"ChildrenCount": 2,
"InfantCount": 3,
"ChildAges": [
1,
2
],
"InfantAges": [
1,
2
]
},
{
"AdultCount": 1,
"ChildrenCount": 2,
"InfantCount": 3,
"ChildAges": [
1,
2
],
"InfantAges": [
1,
2
]
}
],
"StartDate": "2025-12-15T22:15:57.8379817+00:00",
"EndDate": "2025-12-15T22:15:57.8379817+00:00",
"AdultCount": 4,
"ChildCount": 5,
"ChildAges": [
"sample string 1",
"sample string 2"
],
"RatePlanCode": "sample string 6",
"RatePlanSourceCode": "sample string 7",
"ShopKey": "sample string 8",
"Vuserid": "sample string 9",
"PccCode": "sample string 10",
"UserId": 11,
"AccountID": "sample string 12",
"UserName": "sample string 13",
"ApplicationDomain": 0,
"guid": "sample string 14"
}
application/xml, text/xml
Sample:
<HotelDetailRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GT.AzrTravelApi.Model">
<AccountID>sample string 12</AccountID>
<ApplicationDomain>GTL</ApplicationDomain>
<PccCode>sample string 10</PccCode>
<UserId>11</UserId>
<UserName>sample string 13</UserName>
<Vuserid>sample string 9</Vuserid>
<guid>sample string 14</guid>
<AdultCount>4</AdultCount>
<ChildAges xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</ChildAges>
<ChildCount>5</ChildCount>
<EndDate>2025-12-15T22:15:57.8379817+00:00</EndDate>
<HotelCode>sample string 1</HotelCode>
<HotelCodeWithContext>
<ContextCode>sample string 2</ContextCode>
<HotelCode>sample string 1</HotelCode>
</HotelCodeWithContext>
<RatePlanCode>sample string 6</RatePlanCode>
<RatePlanSourceCode>sample string 7</RatePlanSourceCode>
<Rooms>
<Room>
<AdultCount>1</AdultCount>
<ChildAges xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:int>1</d4p1:int>
<d4p1:int>2</d4p1:int>
</ChildAges>
<ChildrenCount>2</ChildrenCount>
<InfantAges xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:int>1</d4p1:int>
<d4p1:int>2</d4p1:int>
</InfantAges>
<InfantCount>3</InfantCount>
</Room>
<Room>
<AdultCount>1</AdultCount>
<ChildAges xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:int>1</d4p1:int>
<d4p1:int>2</d4p1:int>
</ChildAges>
<ChildrenCount>2</ChildrenCount>
<InfantAges xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:int>1</d4p1:int>
<d4p1:int>2</d4p1:int>
</InfantAges>
<InfantCount>3</InfantCount>
</Room>
</Rooms>
<ShopKey>sample string 8</ShopKey>
<StartDate>2025-12-15T22:15:57.8379817+00:00</StartDate>
</HotelDetailRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
XDocument| Name | Description | Type | Additional information |
|---|---|---|---|
| Declaration | XDeclaration |
None. |
|
| DocumentType | XDocumentType |
None. |
|
| NodeType | XmlNodeType |
None. |
|
| Root | XElement |
None. |
|
| FirstNode | XNode |
None. |
|
| LastNode | XNode |
None. |
|
| NextNode | XNode |
None. |
|
| PreviousNode | XNode |
None. |
|
| BaseUri | string |
None. |
|
| Document | XDocument |
None. |
|
| Parent | XElement |
None. |
Response Formats
application/json, text/json
Sample:
{}
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.