Changes for page 4. Hotel Search

Last modified by Giorgi Mdivnishvili on 2024/09/04 09:58

From version 6.1
edited by Giorgi Mdivnishvili
on 2024/02/27 16:41
Change comment: There is no comment for this version
To version 9.1
edited by Giorgi Mdivnishvili
on 2024/02/28 10:48
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,5 +1,12 @@
1 +{{box cssClass="floatinginfobox" title="**Contents**"}}
1 1  
2 2  
4 +{{toc/}}
5 +{{/box}}
6 +
7 += Method Description =
8 +
9 +
3 3  With the parameters provided in GetHotels and GetCities reponse, it’s avaible to search hotels with the desired parameters in Hotels Search.
4 4  
5 5  
... ... @@ -7,29 +7,154 @@
7 7  
8 8  Method POST
9 9  
10 -**Request example:**
11 11  
18 +
19 +== **Request example:** ==
20 +
12 12  {{code language="Json"}}
13 13  {
14 - "MaxResultCount":50,
15 - "MaxHotelCount":10,
16 - "ContragentContactUID":"55a2fcfb-8378-4b73-ab1e-bc8e5c836f4e",
17 - "CheckInDate":"2023-12-25T00:00:00",
18 - "CheckOutDate":"2024-01-02T00:00:00",
19 - "Adults":1,
20 - "Children":2,
21 - "ChildrenAges":"5,10",
22 - "CountryMask":"AE",
23 -
23 + "MaxResultCount":2,
24 + "MaxHotelCount":2,
25 + "contragentContactUID": "55a2fcfb-8378-4b73-ab1e-bc8e5c836f4e",
26 + "countryMask": "TR",
27 + "CheckInDate": "2024-05-06",
28 + "CheckOutDate": "2024-05-07",
29 + "Adults": 1,
30 + "Children": 0,
31 + "ChildrenAges": "",
32 +
24 24   "arrivalCities": [
25 25   {
26 - "cityUID": "f5185fa3-3f56-44ed-bf6b-80386a33caa2"
35 + "cityUID": "e1344ba0-5273-4fc1-b6c4-72446260f430"
27 27  
28 28   }
29 29   ]
30 -
31 31  }
40 +
32 32  {{/code}}
33 33  
34 34  
44 +== Response Example ==
45 +
46 +
47 +{{code language="json"}}
48 +{
49 + "result": [
50 + {
51 + "resultID": 1656436810005000001,
52 + "hotelID": 871186,
53 + "providerID": 5,
54 + "roomCategoryCode": "ECO",
55 + "roomCategoryName": "Economic Room",
56 + "mealPlanName": "BB",
57 + "placementType": 1,
58 + "placementTypeName": "1 Adult",
59 + "priceCode": "BASERATE BB ECO",
60 + "priceCurrency": "EUR",
61 + "priceCurrencySrc": "EUR",
62 + "availability": 3,
63 + "availableRoomsCount": 1,
64 + "totalSellPriceSrc": 40.70,
65 + "totalSellPrice": 40.70,
66 + "totalPriceSurcharge": 0.00,
67 + "cancellationPolicyDescription": "Cancellation Policy: Non refundable",
68 + "cancellationPolicy": {
69 + "noShowChargeValue": 100.00,
70 + "noShowChargeValueType": "%",
71 + "earlyDepartureChargeValue": 100.00,
72 + "earlyDepartureChargeValueType": "%",
73 + "conditions": [
74 + {
75 + "timeunits": 365,
76 + "timeunitType": "Day",
77 + "timeOffsetTypeName": "Before Arrival",
78 + "chargeValue": 100.00,
79 + "chargeValueType": "%"
80 + }
81 + ]
82 + },
83 + "searchId": 1656436810,
84 + "hotelCode": "10b7bc34-2a03-495e-94bc-1092b07823f7",
85 + "id": 1656436810005000001,
86 + "hotel": {
87 + "hotelCode": "10b7bc34-2a03-495e-94bc-1092b07823f7",
88 + "hotelName": "Istanbul Holiday Hotel",
89 + "hotelClass": "***",
90 + "cityId": "e1344ba0-5273-4fc1-b6c4-72446260f430",
91 + "cityName": "Istanbul",
92 + "countryCode": "TR",
93 + "districtId": "6ca0ed7e-7412-4e45-85b5-dd0d74cabc62",
94 + "districtName": "Fatih",
95 + "note": ""
96 + },
97 + "adults": 1,
98 + "children": 0,
99 + "childrenAges": "",
100 + "childrenExeptInfants": 0,
101 + "checkInDate": "2024-05-06T00:00:00",
102 + "checkOutDate": "2024-05-07T00:00:00",
103 + "includedExtrasAmount": 0,
104 + "extraServices": []
105 + },
106 + {
107 + "resultID": 1656436810005000003,
108 + "hotelID": 871186,
109 + "providerID": 5,
110 + "roomCategoryCode": "STANDART-2",
111 + "roomCategoryName": "Standart Double or Twin Room",
112 + "mealPlanName": "BB",
113 + "placementType": 1,
114 + "placementTypeName": "1 Adult",
115 + "priceCode": "BASERATE BB STANDART",
116 + "priceCurrency": "EUR",
117 + "priceCurrencySrc": "EUR",
118 + "availability": 3,
119 + "availableRoomsCount": 1,
120 + "totalSellPriceSrc": 53.90,
121 + "totalSellPrice": 53.90,
122 + "totalPriceSurcharge": 0.00,
123 + "cancellationPolicyDescription": "Cancellation Policy: Non refundable",
124 + "cancellationPolicy": {
125 + "noShowChargeValue": 100.00,
126 + "noShowChargeValueType": "%",
127 + "earlyDepartureChargeValue": 100.00,
128 + "earlyDepartureChargeValueType": "%",
129 + "conditions": [
130 + {
131 + "timeunits": 365,
132 + "timeunitType": "Day",
133 + "timeOffsetTypeName": "Before Arrival",
134 + "chargeValue": 100.00,
135 + "chargeValueType": "%"
136 + }
137 + ]
138 + },
139 + "searchId": 1656436810,
140 + "hotelCode": "10b7bc34-2a03-495e-94bc-1092b07823f7",
141 + "id": 1656436810005000003,
142 + "hotel": {
143 + "hotelCode": "10b7bc34-2a03-495e-94bc-1092b07823f7",
144 + "hotelName": "Istanbul Holiday Hotel",
145 + "hotelClass": "***",
146 + "cityId": "e1344ba0-5273-4fc1-b6c4-72446260f430",
147 + "cityName": "Istanbul",
148 + "countryCode": "TR",
149 + "districtId": "6ca0ed7e-7412-4e45-85b5-dd0d74cabc62",
150 + "districtName": "Fatih",
151 + "note": ""
152 + },
153 + "adults": 1,
154 + "children": 0,
155 + "childrenAges": "",
156 + "childrenExeptInfants": 0,
157 + "checkInDate": "2024-05-06T00:00:00",
158 + "checkOutDate": "2024-05-07T00:00:00",
159 + "includedExtrasAmount": 0,
160 + "extraServices": []
161 + }
162 + ],
163 + "error": false
164 +}
165 +{{/code}}
166 +
35 35