Changes for page 4. Hotel Search
Last modified by Giorgi Mdivnishvili on 2024/09/04 09:58
From 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
To 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
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 - 4.Hotel Search1 +Hotel Search - Content
-
... ... @@ -1,167 +2,25 @@ 1 -{{box cssClass="floatinginfobox" title="**Contents**"}} 2 2 3 3 4 -{{toc/}} 5 -{{/box}} 6 - 7 -= Method Description = 8 - 9 - 10 10 With the parameters provided in GetHotels and GetCities reponse, it’s avaible to search hotels with the desired parameters in Hotels Search. 11 11 12 12 13 -endpoint : [[https:~~/~~/testapi.rustaronline.com/api/Hotels/Search>>url:https://testapi.rustaronline.com/api/Hotels/Search]] 14 14 15 - MethodPOST7 +Request example: 16 16 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 +((( 17 17 12 + "arrivalCities": [ 18 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 34 { 35 - "cityUID": "e1344ba0-5273-4fc1-b6c4-72446260f430" 36 - 37 - } 38 - ] 39 -} 40 40 41 - {{/code}}16 + "cityUID": "f5185fa3-3f56-44ed-bf6b-80386a33caa2" << city UID where we are searching hotels 42 42 43 43 44 - ==ResponseExample==19 + } 45 45 21 + ] 46 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 166 167 - 24 +} 25 +)))