Wiki source code of 4. Hotel Search

Version 9.1 by Giorgi Mdivnishvili on 2024/02/28 10:48

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 == 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
167