Changes for page 4. Hotel Search

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

From version 7.1
edited by Giorgi Mdivnishvili
on 2024/02/28 10:46
Change comment: There is no comment for this version
To version 2.1
edited by Giorgi Mdivnishvili
on 2023/11/28 17:32
Change comment: There is no comment for this version

Summary

Details

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