Changes for page 4. Hotel Search
Last modified by Giorgi Mdivnishvili on 2024/09/04 09:58
From version 1.1
edited by Giorgi Mdivnishvili
on 2023/11/28 17:31
on 2023/11/28 17:31
Change comment:
There is no comment for this version
To version 9.1
edited by Giorgi Mdivnishvili
on 2024/02/28 10:48
on 2024/02/28 10:48
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,25 +1,167 @@ 1 +{{box cssClass="floatinginfobox" title="**Contents**"}} 1 1 2 2 3 -With the parameters provided in GetHotels and GetCities reponse, it’s avaible to search hotels with the desired parameters in Hotels Search. 4 +{{toc/}} 5 +{{/box}} 4 4 7 += Method Description = 5 5 6 6 7 - Request example:10 +With the parameters provided in GetHotels and GetCities reponse, it’s avaible to search hotels with the desired parameters in Hotels Search. 8 8 9 ->{ "MaxResultCount":50, <<< max result count in response "MaxHotelCount":10, <<< max hotel count with the cheapest to expensive "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. "ContragentContactUID":"55a2fcfb-8378-4b73-ab1e-bc8e5c836f4e", "CheckInDate":"2023-12-25T00:00:00", "CheckOutDate":"2024-01-02T00:00:00", "Adults":1, "Children":0, "ChildrenAges":"", in case of several children, "5,10" numbers must be separated by comma "CountryMask":"AE", << country code 10 -((( 11 11 12 - "arrivalCities": [13 +endpoint : [[https:~~/~~/testapi.rustaronline.com/api/Hotels/Search>>url:https://testapi.rustaronline.com/api/Hotels/Search]] 13 13 14 - {15 +Method POST 15 15 16 - "cityUID": "f5185fa3-3f56-44ed-bf6b-80386a33caa2" << city UID where we are searching hotels 17 17 18 18 19 - }19 +== **Request example:** == 20 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 + } 21 21 ] 39 +} 22 22 41 +{{/code}} 23 23 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 24 24 } 25 -))) 165 +{{/code}} 166 + 167 +