Changes for page 4. Hotel Search
Last modified by Giorgi Mdivnishvili on 2024/09/04 09:58
From version 3.1
edited by Giorgi Mdivnishvili
on 2023/11/28 17:34
on 2023/11/28 17:34
Change comment:
There is no comment for this version
To version 10.1
edited by Giorgi Mdivnishvili
on 2024/02/29 09:49
on 2024/02/29 09:49
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -Hotel Search 1 +4. Hotel Search - Content
-
... ... @@ -1,33 +1,181 @@ 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 13 +endpoint : [[https:~~/~~/testapi.rustaronline.com/api/Hotels/Search>>url:https://testapi.rustaronline.com/api/Hotels/Search]] 6 6 7 - Requestexample:15 +Method POST 8 8 17 + 18 + 19 +== **Request example:** == 20 + 9 9 {{code language="Json"}} 10 10 { 11 - "MaxResultCount":50,12 - "MaxHotelCount":10,13 - "ContragentContactUID":"55a2fcfb-8378-4b73-ab1e-bc8e5c836f4e",14 - "CheckInDate":"2023-12-25T00:00:00",15 - "CheckOutDate":"2024-01-02T00:00:00",16 - "Adults":1,17 - "Children":2,18 - "ChildrenAges":"5,10",19 - "CountryMask":"AE",20 - 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 + 21 21 "arrivalCities": [ 22 22 { 23 - "cityUID": " f5185fa3-3f56-44ed-bf6b-80386a33caa2"35 + "cityUID": "e1344ba0-5273-4fc1-b6c4-72446260f430" 24 24 25 25 } 26 26 ] 27 - 28 28 } 40 + 29 29 {{/code}} 30 30 31 31 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"| 32 32 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 + 33 33