Changes for page 2. CalcPackage
Last modified by Giorgi Mdivnishvili on 2024/04/12 18:58
From version 1.1
edited by Giorgi Mdivnishvili
on 2023/12/14 09:50
on 2023/12/14 09:50
Change comment:
There is no comment for this version
To version 4.1
edited by Giorgi Mdivnishvili
on 2023/12/14 12:49
on 2023/12/14 12:49
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,32 +1,236 @@ 1 1 {{box cssClass="floatinginfobox" title="**Contents**"}} 2 + 3 + 2 2 {{toc/}} 3 3 {{/box}} 4 4 5 -= Paragraph1=7 += Method Description = 6 6 7 - Loremipsum dolor sit, consectetur adipiscingelit, sed doeiusmodtemporincididuntut laboreet dolore magna aliqua. Utenim ad minimveniam,quisnostrud exercitation ullamcolaborisnisi ut aliquipex ea commodo consequat.Duisauteirure dolorinreprehenderit in voluptatevelit essecillum doloreeu fugiatnullapariatur. Excepteursintccaecatcupidatat non proident,suntinculpaqui officia deseruntmollit animidestlaborum.9 +The initial method of the integration process is authorization. You will be provided with a test user username and password to generate the access token that you will need to pass in all the following methods. 8 8 9 -== Sub-paragraph == 10 10 11 - Loremipsum dolor sit amet, consectetur adipiscing elit, sed doeiusmod tempor incididuntut labore et dolore magna aliqua.Utenimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.Excepteursint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.12 +== Endpoint URL - [GET] == 12 12 13 -== Sub-paragraph == 14 +{{info}} 15 +[[https:~~/~~/online-api.kazunion.com/api/OnlyHotelPackages/CalcPackage>>https://online-api.kazunion.com/api/OnlyHotelPackages/CalcPackage]] 16 +{{/info}} 14 14 15 -Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 16 16 17 -== =Sub-subparagraph===19 +== Request Parameters == 18 18 19 -Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 21 +(% class="box infomessage" %) 22 +((( 23 +None 24 +))) 20 20 21 21 22 -= Paragraph2=27 +== Request Body == 23 23 24 -Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 29 +{{code language="Json"}} 30 +none{ 31 + "packageId": "string", 32 + "extraServicePriceCodes": [ 33 + "string" 34 + ] 35 +} 36 +{{/code}} 25 25 26 -== Sub-paragraph==38 +== (% id="cke_bm_10575S" style="display:none" %) (%%)Request Body example == 27 27 28 -Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 40 +{{code language="Json"}} 41 +{ 42 + "packageId": "onlyhotel:c4e23e7e-3d54-4efa-a3db-88508230ce91:504f63ca-6dd5-4d84-8245-cf7e77ccff73", 43 + "extraServicePriceCodes": [ 44 + 45 + ] 46 +} 47 +{{/code}} 29 29 30 -== Sub-paragraph == 31 31 32 -Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 50 +== Response == 51 + 52 +{{code language="json"}} 53 +{ 54 + "error": true, 55 + "errorCode": "string", 56 + "errorDescription": "string", 57 + "userErrorDescription": "string", 58 + "package": { 59 + "id": "string", 60 + "priceCurrency": "string", 61 + "totalPrice": 0, 62 + "agentCommissionPercent": 0, 63 + "agentCommissionAmount": 0, 64 + "hotel": { 65 + "hotelPriceId": "string", 66 + "providerId": 0, 67 + "hotelName": "string", 68 + "hotelCode": "string", 69 + "nigths": 0, 70 + "mealPlan": "string", 71 + "hotelClass": "string", 72 + "availabilityType": "OnRequest", 73 + "availableRoomsCount": 0, 74 + "fewRooms": true, 75 + "roomCategoryCode": "string", 76 + "roomCategoryName": "string", 77 + "placementTypeName": "string", 78 + "placementDescription": "string", 79 + "checkInDate": "2023-12-14T08:42:01.525Z", 80 + "checkOutDate": "2023-12-14T08:42:01.525Z", 81 + "adults": 0, 82 + "children": 0, 83 + "districtUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6", 84 + "districtName": "string", 85 + "cityUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6", 86 + "cityName": "string", 87 + "countryCode": "string", 88 + "countryName": "string", 89 + "hasAlcohol": true, 90 + "hasFreeWifi": true, 91 + "hasMetro": true, 92 + "hasPool": true, 93 + "hasMall": true, 94 + "cancellationPolicyDescription": "string", 95 + "cancellationPolicy": { 96 + "cancellationPolicyCode": "string", 97 + "noShowChargeValue": 0, 98 + "noShowChargeValueType": "string", 99 + "earlyDepartureChargeValue": 0, 100 + "earlyDepartureChargeValueType": "string", 101 + "conditions": [ 102 + { 103 + "timeunits": 0, 104 + "timeunitType": "string", 105 + "timeOffsetTypeName": "string", 106 + "chargeValue": 0, 107 + "chargeValueType": "string" 108 + } 109 + ] 110 + } 111 + }, 112 + "extraServices": [ 113 + { 114 + "extraServiceCode": "string", 115 + "extraServiceTypeCode": "string", 116 + "isMandatory": 0, 117 + "extraServiceName": "string", 118 + "minimalServiceAmount": 0, 119 + "includedPriceCode": "string", 120 + "prices": [ 121 + { 122 + "extraServicePriceCode": "string", 123 + "displayName": "string", 124 + "restrictionInfo": "string", 125 + "additionalInfo": "string", 126 + "price": 0, 127 + "extraPrice": 0, 128 + "currency": "string" 129 + } 130 + ] 131 + } 132 + ] 133 + } 134 +} 135 +{{/code}} 136 + 137 + 138 +=== Response example === 139 + 140 +{{code language="Json"}} 141 +{ 142 + "package": { 143 + "id": "onlyhotel:c4e23e7e-3d54-4efa-a3db-88508230ce91:504f63ca-6dd5-4d84-8245-cf7e77ccff73", 144 + "priceCurrency": "USD", 145 + "totalPrice": 381.70, 146 + "agentCommissionPercent": 0.00, 147 + "agentCommissionAmount": 0.00, 148 + "hotel": { 149 + "hotelPriceId": "504f63ca-6dd5-4d84-8245-cf7e77ccff73", 150 + "providerId": 13, 151 + "hotelName": "Golden Tulip Al Barsha Hotel", 152 + "hotelCode": "ed0820c5-29b0-4e1b-8bcf-9f3c181e7961", 153 + "nigths": 4, 154 + "mealPlan": "RO", 155 + "hotelClass": "4", 156 + "availabilityType": "FreeSale", 157 + "availableRoomsCount": 0, 158 + "fewRooms": true, 159 + "roomCategoryCode": "e63ea5ac-4883-4059-bb0a-795a534bbbfb", 160 + "roomCategoryName": "Superior Twin", 161 + "placementTypeName": "SNGL + CHILD(6-11.99)sharing", 162 + "checkInDate": "2024-02-17T08:00:00.000Z", 163 + "checkOutDate": "2024-02-21T08:00:00.000Z", 164 + "adults": 1, 165 + "children": 1, 166 + "districtUID": "4c65f6ed-902b-4fd8-9419-af7884c22c5e", 167 + "districtName": "Al Barsha", 168 + "cityUID": "f5185fa3-3f56-44ed-bf6b-80386a33caa2", 169 + "cityName": "Dubai", 170 + "countryCode": "AE", 171 + "countryName": "United Arab Emirates", 172 + "hasAlcohol": true, 173 + "hasFreeWifi": true, 174 + "hasMetro": false, 175 + "hasPool": true, 176 + "hasMall": false, 177 + "cancellationPolicyDescription": "Cancellation Policy: 15 Day Before Arrival: 100.00 %, Early Departure: 100.00 %, NoShow: 100.00 %", 178 + "cancellationPolicy": { 179 + "noShowChargeValue": 100.00, 180 + "noShowChargeValueType": "%", 181 + "earlyDepartureChargeValue": 100.00, 182 + "earlyDepartureChargeValueType": "%", 183 + "conditions": [ 184 + { 185 + "timeunits": 15, 186 + "timeunitType": "Day", 187 + "timeOffsetTypeName": "Before Arrival", 188 + "chargeValue": 100.00, 189 + "chargeValueType": "%" 190 + } 191 + ] 192 + } 193 + }, 194 + "extraServices": [] 195 + }, 196 + "error": false 197 +} 198 +{{/code}} 199 + 200 + 201 +=== Schema === 202 + 203 +{{code language="none"}} 204 +[Hotel{ 205 +hotelCode string 206 +nullable: true 207 +hotelName string 208 +nullable: true 209 +hotelClass string 210 +nullable: true 211 +cityUID string($uuid) 212 +nullable: true 213 +countryCode string 214 +nullable: true 215 +countryName string 216 +nullable: true 217 +districtUID string($uuid) 218 +nullable: true 219 +cityName string 220 +nullable: true 221 +districtName string 222 +nullable: true 223 +hotelType HotelTypeEnumstring 224 +Enum: 225 +[ CityHotel, BeachHotel, SecondLineBeach ] 226 +latitude string 227 +nullable: true 228 +longitude string 229 +nullable: true 230 +hasAlcohol boolean 231 +hasFreeWifi boolean 232 +hasMetro boolean 233 +hasPool boolean 234 +hasMall boolean 235 +}] 236 +{{/code}}