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 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,33 +1,167 @@ 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 +== Response Example == 32 32 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 + 33 33