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 7.1
edited by Giorgi Mdivnishvili
on 2024/02/28 10:46
on 2024/02/28 10:46
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
-
... ... @@ -3,31 +3,158 @@ 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]] 6 6 7 - Requestexample:8 +Method POST 8 8 10 + 11 + 12 +**Request example:** 13 + 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 - 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 + 21 21 "arrivalCities": [ 22 22 { 23 - "cityUID": " f5185fa3-3f56-44ed-bf6b-80386a33caa2"28 + "cityUID": "e1344ba0-5273-4fc1-b6c4-72446260f430" 24 24 25 25 } 26 26 ] 27 - 28 28 } 33 + 29 29 {{/code}} 30 30 31 31 37 +Response Example 32 32 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 +} 158 +{{/code}} 159 + 33 33