Wiki source code of 4. Hotel Search

Version 10.1 by Giorgi Mdivnishvili on 2024/02/29 09:49

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