Wiki source code of 4. Hotel Search

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

Hide last authors
Giorgi Mdivnishvili 9.1 1 {{box cssClass="floatinginfobox" title="**Contents**"}}
Giorgi Mdivnishvili 1.1 2
3
Giorgi Mdivnishvili 9.1 4 {{toc/}}
5 {{/box}}
6
Giorgi Mdivnishvili 8.1 7 = Method Description =
8
9
Giorgi Mdivnishvili 1.1 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
Giorgi Mdivnishvili 4.1 13 endpoint : [[https:~~/~~/testapi.rustaronline.com/api/Hotels/Search>>url:https://testapi.rustaronline.com/api/Hotels/Search]]
Giorgi Mdivnishvili 1.1 14
Giorgi Mdivnishvili 4.1 15 Method POST
Giorgi Mdivnishvili 3.1 16
Giorgi Mdivnishvili 7.1 17
18
Giorgi Mdivnishvili 8.1 19 == **Request example:** ==
Giorgi Mdivnishvili 4.1 20
Giorgi Mdivnishvili 3.1 21 {{code language="Json"}}
22 {
Giorgi Mdivnishvili 7.1 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
Giorgi Mdivnishvili 2.1 33 "arrivalCities": [
Giorgi Mdivnishvili 1.1 34 {
Giorgi Mdivnishvili 7.1 35 "cityUID": "e1344ba0-5273-4fc1-b6c4-72446260f430"
Giorgi Mdivnishvili 2.1 36
Giorgi Mdivnishvili 1.1 37 }
38 ]
Giorgi Mdivnishvili 7.1 39 }
Giorgi Mdivnishvili 1.1 40
Giorgi Mdivnishvili 7.1 41 {{/code}}
42
43
Giorgi Mdivnishvili 11.1 44 (% class="table-bordered" %)
Giorgi Mdivnishvili 10.1 45 (% class="info" %)|**Parameter**|**value**|**Description**
46 |** "MaxResultCount"**|2,|
47 |** "MaxHotelCount"**|2,|
48 |** "contragentContactUID"**| "55a2fcfb-8378-4b73-ab1e-bc8e5c836f4e",|
49 |** "countryMask"**| "TR",|
50 |** "CheckInDate"**| "2024-05-06",|
51 |** "CheckOutDate"**| "2024-05-07",|
52 |** "Adults"**| 1,|
53 |** "Children"**| 0,|
54 |** "ChildrenAges"**| "",|
55 |** "cityUID"**| "e1344ba0-5273-4fc1-b6c4-72446260f430"|
56
57
Giorgi Mdivnishvili 8.1 58 == Response Example ==
Giorgi Mdivnishvili 7.1 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
Giorgi Mdivnishvili 2.1 178 }
179 {{/code}}
Giorgi Mdivnishvili 1.1 180
Giorgi Mdivnishvili 5.1 181