Wiki source code of 3. CalcPackage
Version 7.1 by Giorgi Mdivnishvili on 2023/12/26 17:04
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | {{box cssClass="floatinginfobox" title="**Contents**"}} |
| |
2.1 | 2 | |
| 3 | |||
| |
1.1 | 4 | {{toc/}} |
| 5 | {{/box}} | ||
| 6 | |||
| |
2.1 | 7 | = Method Description = |
| |
1.1 | 8 | |
| |
2.1 | 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. |
| |
1.1 | 10 | |
| |
2.1 | 11 | |
| 12 | == Endpoint URL - [POST] == | ||
| 13 | |||
| 14 | {{info}} | ||
| 15 | [[https:~~/~~/online-api.kazunion.com/api/OnlyHotelPackages/CalcPackage>>https://online-api.kazunion.com/api/OnlyHotelPackages/CalcPackage]] | ||
| 16 | {{/info}} | ||
| 17 | |||
| 18 | |||
| 19 | == Request Parameters == | ||
| 20 | |||
| 21 | (% class="box infomessage" %) | ||
| 22 | ((( | ||
| 23 | None | ||
| 24 | ))) | ||
| 25 | |||
| 26 | |||
| 27 | == Request Body == | ||
| 28 | |||
| 29 | {{code language="Json"}} | ||
| |
3.1 | 30 | { |
| |
2.1 | 31 | "packageId": "string", |
| 32 | "extraServicePriceCodes": [ | ||
| 33 | "string" | ||
| |
3.1 | 34 | ], |
| |
6.1 | 35 | "flightPassengers": [ |
| 36 | { | ||
| 37 | "id": "string", | ||
| 38 | "selectedForwardBaggageCode": "string", | ||
| 39 | "selectedBackwardBaggageCode": "string" | ||
| 40 | } | ||
| 41 | ], | ||
| 42 | "includeInsurance": true, | ||
| 43 | "refreshPrices": true | ||
| |
2.1 | 44 | } |
| 45 | {{/code}} | ||
| 46 | |||
| |
5.1 | 47 | (% class="wikigeneratedid" id="HRequestBodyexample" %) |
| 48 | (% id="cke_bm_10575S" style="display:none" %) | ||
| |
2.1 | 49 | |
| |
5.1 | 50 | == Request Body example == |
| 51 | |||
| |
2.1 | 52 | {{code language="Json"}} |
| 53 | { | ||
| |
6.1 | 54 | "packageId": "tour:1d0fa533-4261-4254-93bb-83599d581ffc:193990fa-41a5-46e6-9805-50f82c3c377f:0c299240-6fc6-4f79-ba99-3548f2de3f57", |
| |
2.1 | 55 | "extraServicePriceCodes": [ |
| 56 | |||
| |
6.1 | 57 | ], |
| 58 | "flightPassengers": [ | ||
| 59 | { | ||
| 60 | "id": "42779531011000004-A1", | ||
| 61 | "selectedForwardBaggageCode": "", | ||
| 62 | "selectedBackwardBaggageCode": "" | ||
| 63 | } | ||
| 64 | ], | ||
| 65 | "includeInsurance": true, | ||
| 66 | "refreshPrices": true | ||
| |
2.1 | 67 | } |
| 68 | {{/code}} | ||
| 69 | |||
| 70 | |||
| 71 | == Response == | ||
| 72 | |||
| 73 | {{code language="json"}} | ||
| 74 | { | ||
| 75 | "error": true, | ||
| 76 | "errorCode": "string", | ||
| 77 | "errorDescription": "string", | ||
| 78 | "userErrorDescription": "string", | ||
| 79 | "package": { | ||
| |
6.1 | 80 | "cacheKey": "string", |
| |
2.1 | 81 | "id": "string", |
| 82 | "priceCurrency": "string", | ||
| 83 | "totalPrice": 0, | ||
| 84 | "agentCommissionPercent": 0, | ||
| 85 | "agentCommissionAmount": 0, | ||
| |
3.1 | 86 | "includedExtrasAmount": 0, |
| 87 | "priceDifference": 0, | ||
| |
2.1 | 88 | "hotel": { |
| 89 | "hotelPriceId": "string", | ||
| 90 | "providerId": 0, | ||
| 91 | "hotelName": "string", | ||
| 92 | "hotelCode": "string", | ||
| 93 | "nigths": 0, | ||
| 94 | "mealPlan": "string", | ||
| 95 | "hotelClass": "string", | ||
| 96 | "availabilityType": "OnRequest", | ||
| 97 | "availableRoomsCount": 0, | ||
| 98 | "fewRooms": true, | ||
| 99 | "roomCategoryCode": "string", | ||
| 100 | "roomCategoryName": "string", | ||
| 101 | "placementTypeName": "string", | ||
| 102 | "placementDescription": "string", | ||
| |
6.1 | 103 | "checkInDate": "2023-12-26T12:55:59.433Z", |
| 104 | "checkOutDate": "2023-12-26T12:55:59.433Z", | ||
| |
2.1 | 105 | "adults": 0, |
| 106 | "children": 0, | ||
| 107 | "districtUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6", | ||
| 108 | "districtName": "string", | ||
| 109 | "cityUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6", | ||
| 110 | "cityName": "string", | ||
| 111 | "countryCode": "string", | ||
| 112 | "countryName": "string", | ||
| 113 | "hasAlcohol": true, | ||
| 114 | "hasFreeWifi": true, | ||
| 115 | "hasMetro": true, | ||
| 116 | "hasPool": true, | ||
| 117 | "hasMall": true, | ||
| 118 | "cancellationPolicyDescription": "string", | ||
| 119 | "cancellationPolicy": { | ||
| 120 | "cancellationPolicyCode": "string", | ||
| 121 | "noShowChargeValue": 0, | ||
| 122 | "noShowChargeValueType": "string", | ||
| 123 | "earlyDepartureChargeValue": 0, | ||
| 124 | "earlyDepartureChargeValueType": "string", | ||
| 125 | "conditions": [ | ||
| 126 | { | ||
| 127 | "timeunits": 0, | ||
| 128 | "timeunitType": "string", | ||
| 129 | "timeOffsetTypeName": "string", | ||
| 130 | "chargeValue": 0, | ||
| 131 | "chargeValueType": "string" | ||
| 132 | } | ||
| 133 | ] | ||
| 134 | } | ||
| 135 | }, | ||
| |
3.1 | 136 | "flight": { |
| 137 | "id": "string", | ||
| |
6.1 | 138 | "departureDate": "2023-12-26T12:55:59.433Z", |
| 139 | "returnDate": "2023-12-26T12:55:59.433Z", | ||
| |
3.1 | 140 | "departureTicketsLeft": 0, |
| 141 | "returnTicketsLeft": 0, | ||
| 142 | "departureAvailabilityType": "OnRequest", | ||
| 143 | "returnAvailabilityType": "OnRequest", | ||
| 144 | "isTwoWay": true, | ||
| |
6.1 | 145 | "sameBaggageForAll": true, |
| 146 | "totalBaggage": true, | ||
| |
3.1 | 147 | "departureSegments": [ |
| 148 | { | ||
| 149 | "airlineCode": "string", | ||
| 150 | "airlineName": "string", | ||
| 151 | "flightCode": "string", | ||
| 152 | "class": "string", | ||
| 153 | "lugageWeight": 0, | ||
| 154 | "handLugageWeight": 0, | ||
| |
6.1 | 155 | "departureFlightDate": "2023-12-26T12:55:59.433Z", |
| |
3.1 | 156 | "departureCountryName": "string", |
| 157 | "departureCityName": "string", | ||
| 158 | "departureAirportCode": "string", | ||
| 159 | "departureAirportName": "string", | ||
| 160 | "departureTerminalCode": "string", | ||
| |
6.1 | 161 | "arrivalFlightDate": "2023-12-26T12:55:59.433Z", |
| |
3.1 | 162 | "arrivalCountryName": "string", |
| 163 | "arrivalCityName": "string", | ||
| 164 | "arrivalAirportCode": "string", | ||
| 165 | "arrivalAirportName": "string", | ||
| 166 | "arrivalTerminalCode": "string", | ||
| |
6.1 | 167 | "flightDuration": "string" |
| |
3.1 | 168 | } |
| 169 | ], | ||
| 170 | "returnSegments": [ | ||
| 171 | { | ||
| 172 | "airlineCode": "string", | ||
| 173 | "airlineName": "string", | ||
| 174 | "flightCode": "string", | ||
| 175 | "class": "string", | ||
| 176 | "lugageWeight": 0, | ||
| 177 | "handLugageWeight": 0, | ||
| |
6.1 | 178 | "departureFlightDate": "2023-12-26T12:55:59.433Z", |
| |
3.1 | 179 | "departureCountryName": "string", |
| 180 | "departureCityName": "string", | ||
| 181 | "departureAirportCode": "string", | ||
| 182 | "departureAirportName": "string", | ||
| 183 | "departureTerminalCode": "string", | ||
| |
6.1 | 184 | "arrivalFlightDate": "2023-12-26T12:55:59.433Z", |
| |
3.1 | 185 | "arrivalCountryName": "string", |
| 186 | "arrivalCityName": "string", | ||
| 187 | "arrivalAirportCode": "string", | ||
| 188 | "arrivalAirportName": "string", | ||
| 189 | "arrivalTerminalCode": "string", | ||
| |
6.1 | 190 | "flightDuration": "string" |
| 191 | } | ||
| 192 | ], | ||
| 193 | "passengers": [ | ||
| 194 | { | ||
| 195 | "id": "string", | ||
| 196 | "isAdult": true, | ||
| 197 | "selectedForwardBaggageCode": "string", | ||
| 198 | "selectedBackwardBaggageCode": "string", | ||
| 199 | "forwardBaggages": [ | ||
| |
3.1 | 200 | { |
| 201 | "baggageCode": "string", | ||
| 202 | "description": "string", | ||
| 203 | "price": 0, | ||
| 204 | "currency": "string", | ||
| 205 | "included": true | ||
| 206 | } | ||
| |
6.1 | 207 | ], |
| 208 | "backwardBaggages": [ | ||
| 209 | { | ||
| 210 | "baggageCode": "string", | ||
| 211 | "description": "string", | ||
| 212 | "price": 0, | ||
| 213 | "currency": "string", | ||
| 214 | "included": true | ||
| 215 | } | ||
| |
3.1 | 216 | ] |
| 217 | } | ||
| 218 | ] | ||
| 219 | }, | ||
| |
2.1 | 220 | "extraServices": [ |
| 221 | { | ||
| 222 | "extraServiceCode": "string", | ||
| 223 | "extraServiceTypeCode": "string", | ||
| 224 | "isMandatory": 0, | ||
| 225 | "extraServiceName": "string", | ||
| 226 | "minimalServiceAmount": 0, | ||
| 227 | "includedPriceCode": "string", | ||
| 228 | "prices": [ | ||
| 229 | { | ||
| 230 | "extraServicePriceCode": "string", | ||
| 231 | "displayName": "string", | ||
| 232 | "restrictionInfo": "string", | ||
| 233 | "additionalInfo": "string", | ||
| 234 | "price": 0, | ||
| 235 | "extraPrice": 0, | ||
| 236 | "currency": "string" | ||
| 237 | } | ||
| 238 | ] | ||
| 239 | } | ||
| |
3.1 | 240 | ], |
| 241 | "insurancePrice": { | ||
| 242 | "name": "string", | ||
| 243 | "price": 0, | ||
| 244 | "priceSurcarge": 0, | ||
| |
6.1 | 245 | "actualStartDate": "2023-12-26T12:55:59.433Z", |
| 246 | "actualEndDate": "2023-12-26T12:55:59.433Z", | ||
| |
3.1 | 247 | "optional": true, |
| 248 | "includedInPackagePrice": true | ||
| |
6.1 | 249 | } |
| 250 | }, | ||
| 251 | "altPackages": [ | ||
| 252 | { | ||
| 253 | "cacheKey": "string", | ||
| 254 | "id": "string", | ||
| 255 | "priceCurrency": "string", | ||
| 256 | "totalPrice": 0, | ||
| 257 | "agentCommissionPercent": 0, | ||
| 258 | "agentCommissionAmount": 0, | ||
| 259 | "includedExtrasAmount": 0, | ||
| 260 | "priceDifference": 0, | ||
| 261 | "hotel": { | ||
| 262 | "hotelPriceId": "string", | ||
| 263 | "providerId": 0, | ||
| 264 | "hotelName": "string", | ||
| 265 | "hotelCode": "string", | ||
| 266 | "nigths": 0, | ||
| 267 | "mealPlan": "string", | ||
| 268 | "hotelClass": "string", | ||
| 269 | "availabilityType": "OnRequest", | ||
| 270 | "availableRoomsCount": 0, | ||
| 271 | "fewRooms": true, | ||
| 272 | "roomCategoryCode": "string", | ||
| 273 | "roomCategoryName": "string", | ||
| 274 | "placementTypeName": "string", | ||
| 275 | "placementDescription": "string", | ||
| 276 | "checkInDate": "2023-12-26T12:55:59.433Z", | ||
| 277 | "checkOutDate": "2023-12-26T12:55:59.433Z", | ||
| 278 | "adults": 0, | ||
| 279 | "children": 0, | ||
| 280 | "districtUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6", | ||
| 281 | "districtName": "string", | ||
| 282 | "cityUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6", | ||
| 283 | "cityName": "string", | ||
| 284 | "countryCode": "string", | ||
| 285 | "countryName": "string", | ||
| 286 | "hasAlcohol": true, | ||
| 287 | "hasFreeWifi": true, | ||
| 288 | "hasMetro": true, | ||
| 289 | "hasPool": true, | ||
| 290 | "hasMall": true, | ||
| 291 | "cancellationPolicyDescription": "string", | ||
| 292 | "cancellationPolicy": { | ||
| 293 | "cancellationPolicyCode": "string", | ||
| 294 | "noShowChargeValue": 0, | ||
| 295 | "noShowChargeValueType": "string", | ||
| 296 | "earlyDepartureChargeValue": 0, | ||
| 297 | "earlyDepartureChargeValueType": "string", | ||
| 298 | "conditions": [ | ||
| 299 | { | ||
| 300 | "timeunits": 0, | ||
| 301 | "timeunitType": "string", | ||
| 302 | "timeOffsetTypeName": "string", | ||
| 303 | "chargeValue": 0, | ||
| 304 | "chargeValueType": "string" | ||
| 305 | } | ||
| 306 | ] | ||
| 307 | } | ||
| 308 | }, | ||
| 309 | "flight": { | ||
| 310 | "id": "string", | ||
| 311 | "departureDate": "2023-12-26T12:55:59.433Z", | ||
| 312 | "returnDate": "2023-12-26T12:55:59.433Z", | ||
| 313 | "departureTicketsLeft": 0, | ||
| 314 | "returnTicketsLeft": 0, | ||
| 315 | "departureAvailabilityType": "OnRequest", | ||
| 316 | "returnAvailabilityType": "OnRequest", | ||
| 317 | "isTwoWay": true, | ||
| 318 | "sameBaggageForAll": true, | ||
| 319 | "totalBaggage": true, | ||
| 320 | "departureSegments": [ | ||
| 321 | { | ||
| 322 | "airlineCode": "string", | ||
| 323 | "airlineName": "string", | ||
| 324 | "flightCode": "string", | ||
| 325 | "class": "string", | ||
| 326 | "lugageWeight": 0, | ||
| 327 | "handLugageWeight": 0, | ||
| 328 | "departureFlightDate": "2023-12-26T12:55:59.433Z", | ||
| 329 | "departureCountryName": "string", | ||
| 330 | "departureCityName": "string", | ||
| 331 | "departureAirportCode": "string", | ||
| 332 | "departureAirportName": "string", | ||
| 333 | "departureTerminalCode": "string", | ||
| 334 | "arrivalFlightDate": "2023-12-26T12:55:59.433Z", | ||
| 335 | "arrivalCountryName": "string", | ||
| 336 | "arrivalCityName": "string", | ||
| 337 | "arrivalAirportCode": "string", | ||
| 338 | "arrivalAirportName": "string", | ||
| 339 | "arrivalTerminalCode": "string", | ||
| 340 | "flightDuration": "string" | ||
| 341 | } | ||
| 342 | ], | ||
| 343 | "returnSegments": [ | ||
| 344 | { | ||
| 345 | "airlineCode": "string", | ||
| 346 | "airlineName": "string", | ||
| 347 | "flightCode": "string", | ||
| 348 | "class": "string", | ||
| 349 | "lugageWeight": 0, | ||
| 350 | "handLugageWeight": 0, | ||
| 351 | "departureFlightDate": "2023-12-26T12:55:59.433Z", | ||
| 352 | "departureCountryName": "string", | ||
| 353 | "departureCityName": "string", | ||
| 354 | "departureAirportCode": "string", | ||
| 355 | "departureAirportName": "string", | ||
| 356 | "departureTerminalCode": "string", | ||
| 357 | "arrivalFlightDate": "2023-12-26T12:55:59.433Z", | ||
| 358 | "arrivalCountryName": "string", | ||
| 359 | "arrivalCityName": "string", | ||
| 360 | "arrivalAirportCode": "string", | ||
| 361 | "arrivalAirportName": "string", | ||
| 362 | "arrivalTerminalCode": "string", | ||
| 363 | "flightDuration": "string" | ||
| 364 | } | ||
| 365 | ], | ||
| 366 | "passengers": [ | ||
| 367 | { | ||
| 368 | "id": "string", | ||
| 369 | "isAdult": true, | ||
| 370 | "selectedForwardBaggageCode": "string", | ||
| 371 | "selectedBackwardBaggageCode": "string", | ||
| 372 | "forwardBaggages": [ | ||
| 373 | { | ||
| 374 | "baggageCode": "string", | ||
| 375 | "description": "string", | ||
| 376 | "price": 0, | ||
| 377 | "currency": "string", | ||
| 378 | "included": true | ||
| 379 | } | ||
| 380 | ], | ||
| 381 | "backwardBaggages": [ | ||
| 382 | { | ||
| 383 | "baggageCode": "string", | ||
| 384 | "description": "string", | ||
| 385 | "price": 0, | ||
| 386 | "currency": "string", | ||
| 387 | "included": true | ||
| 388 | } | ||
| 389 | ] | ||
| 390 | } | ||
| 391 | ] | ||
| 392 | }, | ||
| 393 | "extraServices": [ | ||
| 394 | { | ||
| 395 | "extraServiceCode": "string", | ||
| 396 | "extraServiceTypeCode": "string", | ||
| 397 | "isMandatory": 0, | ||
| 398 | "extraServiceName": "string", | ||
| 399 | "minimalServiceAmount": 0, | ||
| 400 | "includedPriceCode": "string", | ||
| 401 | "prices": [ | ||
| 402 | { | ||
| 403 | "extraServicePriceCode": "string", | ||
| 404 | "displayName": "string", | ||
| 405 | "restrictionInfo": "string", | ||
| 406 | "additionalInfo": "string", | ||
| 407 | "price": 0, | ||
| 408 | "extraPrice": 0, | ||
| 409 | "currency": "string" | ||
| 410 | } | ||
| 411 | ] | ||
| 412 | } | ||
| 413 | ], | ||
| 414 | "insurancePrice": { | ||
| 415 | "name": "string", | ||
| 416 | "price": 0, | ||
| 417 | "priceSurcarge": 0, | ||
| 418 | "actualStartDate": "2023-12-26T12:55:59.433Z", | ||
| 419 | "actualEndDate": "2023-12-26T12:55:59.433Z", | ||
| 420 | "optional": true, | ||
| 421 | "includedInPackagePrice": true | ||
| 422 | } | ||
| 423 | } | ||
| 424 | ], | ||
| 425 | "refreshPriceResult": "Success" | ||
| |
2.1 | 426 | } |
| 427 | {{/code}} | ||
| 428 | |||
| 429 | |||
| 430 | === Response example === | ||
| 431 | |||
| |
7.1 | 432 | {{code language="Json"}} |
| 433 | { | ||
| 434 | "package": { | ||
| 435 | "id": "tour:1d0fa533-4261-4254-93bb-83599d581ffc:193990fa-41a5-46e6-9805-50f82c3c377f:0c299240-6fc6-4f79-ba99-3548f2de3f57", | ||
| 436 | "priceCurrency": "USD", | ||
| 437 | "totalPrice": 937.16, | ||
| 438 | "agentCommissionPercent": 0.00, | ||
| 439 | "agentCommissionAmount": 0.00, | ||
| 440 | "includedExtrasAmount": 0, | ||
| 441 | "priceDifference": 0, | ||
| 442 | "hotel": { | ||
| 443 | "hotelPriceId": "193990fa-41a5-46e6-9805-50f82c3c377f", | ||
| 444 | "providerId": 13, | ||
| 445 | "hotelName": "Mercure Dubai Barsha Heights Suites Apartments", | ||
| 446 | "hotelCode": "5f125310-7025-4807-a4c6-49cd284c9c14", | ||
| 447 | "nigths": 2, | ||
| 448 | "mealPlan": "BB", | ||
| 449 | "hotelClass": "4", | ||
| 450 | "availabilityType": "StopSale", | ||
| 451 | "availableRoomsCount": 0, | ||
| 452 | "fewRooms": true, | ||
| 453 | "roomCategoryCode": "f8e1ffe5-25cc-46a4-80e8-586d1c049de4", | ||
| 454 | "roomCategoryName": "1 B/R Apartment City View", | ||
| 455 | "placementTypeName": "SNGL + CHILD(2-5.99)sharing", | ||
| 456 | "checkInDate": "2024-02-15T20:00:00.000Z", | ||
| 457 | "checkOutDate": "2024-02-17T20:00:00.000Z", | ||
| 458 | "adults": 1, | ||
| 459 | "children": 1, | ||
| 460 | "districtUID": "4c65f6ed-902b-4fd8-9419-af7884c22c5e", | ||
| 461 | "districtName": "Al Barsha", | ||
| 462 | "cityUID": "f5185fa3-3f56-44ed-bf6b-80386a33caa2", | ||
| 463 | "cityName": "Dubai", | ||
| 464 | "countryCode": "AE", | ||
| 465 | "countryName": "United Arab Emirates", | ||
| 466 | "hasAlcohol": false, | ||
| 467 | "hasFreeWifi": true, | ||
| 468 | "hasMetro": true, | ||
| 469 | "hasPool": true, | ||
| 470 | "hasMall": false, | ||
| 471 | "cancellationPolicyDescription": "Cancellation Policy: 5 Day Before Arrival: 100.00 %, Early Departure: 100.00 %, NoShow: 100.00 %", | ||
| 472 | "cancellationPolicy": { | ||
| 473 | "noShowChargeValue": 100.00, | ||
| 474 | "noShowChargeValueType": "%", | ||
| 475 | "earlyDepartureChargeValue": 100.00, | ||
| 476 | "earlyDepartureChargeValueType": "%", | ||
| 477 | "conditions": [ | ||
| 478 | { | ||
| 479 | "timeunits": 5, | ||
| 480 | "timeunitType": "Day", | ||
| 481 | "timeOffsetTypeName": "Before Arrival", | ||
| 482 | "chargeValue": 100.00, | ||
| 483 | "chargeValueType": "%" | ||
| 484 | } | ||
| 485 | ] | ||
| 486 | } | ||
| 487 | }, | ||
| 488 | "flight": { | ||
| 489 | "id": "0c299240-6fc6-4f79-ba99-3548f2de3f57", | ||
| 490 | "departureDate": "2024-02-15T20:00:00.000Z", | ||
| 491 | "returnDate": "2024-02-17T20:00:00.000Z", | ||
| 492 | "departureTicketsLeft": 7, | ||
| 493 | "returnTicketsLeft": 7, | ||
| 494 | "departureAvailabilityType": "FewPlaces", | ||
| 495 | "returnAvailabilityType": "FewPlaces", | ||
| 496 | "isTwoWay": true, | ||
| 497 | "sameBaggageForAll": false, | ||
| 498 | "totalBaggage": true, | ||
| 499 | "departureSegments": [ | ||
| 500 | { | ||
| 501 | "airlineCode": "KC", | ||
| 502 | "airlineName": "Air Astana-", | ||
| 503 | "flightCode": "KC899", | ||
| 504 | "class": "econom", | ||
| 505 | "lugageWeight": 20, | ||
| 506 | "handLugageWeight": 6, | ||
| 507 | "departureFlightDate": "2024-02-15T20:00:00.000Z", | ||
| 508 | "departureCountryName": "Kazakhstan", | ||
| 509 | "departureCityName": "Almaty", | ||
| 510 | "departureAirportCode": "ALA", | ||
| 511 | "departureAirportName": "Almaty Intl Airport", | ||
| 512 | "departureTerminalCode": "ALA", | ||
| 513 | "arrivalFlightDate": "2024-02-15T20:00:00.000Z", | ||
| 514 | "arrivalCountryName": "United Arab Emirates", | ||
| 515 | "arrivalCityName": "Dubai", | ||
| 516 | "arrivalAirportCode": "DXB", | ||
| 517 | "arrivalAirportName": "Dubai Intl Airport", | ||
| 518 | "arrivalTerminalCode": "DXB1", | ||
| 519 | "flightDuration": "0h 50m" | ||
| 520 | } | ||
| 521 | ], | ||
| 522 | "returnSegments": [ | ||
| 523 | { | ||
| 524 | "airlineCode": "KC", | ||
| 525 | "airlineName": "Air Astana-", | ||
| 526 | "flightCode": "KC900", | ||
| 527 | "class": "econom", | ||
| 528 | "lugageWeight": 20, | ||
| 529 | "handLugageWeight": 6, | ||
| 530 | "departureFlightDate": "2024-02-17T20:00:00.000Z", | ||
| 531 | "departureCountryName": "United Arab Emirates", | ||
| 532 | "departureCityName": "Dubai", | ||
| 533 | "departureAirportCode": "DXB", | ||
| 534 | "departureAirportName": "Dubai Intl Airport", | ||
| 535 | "departureTerminalCode": "DXB1", | ||
| 536 | "arrivalFlightDate": "2024-02-17T20:00:00.000Z", | ||
| 537 | "arrivalCountryName": "Kazakhstan", | ||
| 538 | "arrivalCityName": "Almaty", | ||
| 539 | "arrivalAirportCode": "ALA", | ||
| 540 | "arrivalAirportName": "Almaty Intl Airport", | ||
| 541 | "arrivalTerminalCode": "ALA", | ||
| 542 | "flightDuration": "8h 15m" | ||
| 543 | } | ||
| 544 | ], | ||
| 545 | "passengers": [ | ||
| 546 | { | ||
| 547 | "id": "42779531011000004-A1", | ||
| 548 | "isAdult": true, | ||
| 549 | "forwardBaggages": [ | ||
| 550 | { | ||
| 551 | "baggageCode": "TOTAL_BAGGAGE", | ||
| 552 | "description": "1 piece included, UP TO 50 POUNDS/23 KILOGRAMS, OVER 62 LINEAR INCHES/158 LINEAR CENTIMETERS", | ||
| 553 | "price": 45.00, | ||
| 554 | "currency": "USD", | ||
| 555 | "included": false | ||
| 556 | } | ||
| 557 | ], | ||
| 558 | "backwardBaggages": [ | ||
| 559 | { | ||
| 560 | "baggageCode": "INCLUDED_IN_FORWARD", | ||
| 561 | "price": 0, | ||
| 562 | "included": false | ||
| 563 | } | ||
| 564 | ] | ||
| 565 | }, | ||
| 566 | { | ||
| 567 | "id": "42779531011000004-C1", | ||
| 568 | "isAdult": false, | ||
| 569 | "forwardBaggages": [ | ||
| 570 | { | ||
| 571 | "baggageCode": "TOTAL_BAGGAGE", | ||
| 572 | "description": "1 piece included, UP TO 50 POUNDS/23 KILOGRAMS, OVER 62 LINEAR INCHES/158 LINEAR CENTIMETERS", | ||
| 573 | "price": 45.00, | ||
| 574 | "currency": "USD", | ||
| 575 | "included": false | ||
| 576 | } | ||
| 577 | ], | ||
| 578 | "backwardBaggages": [ | ||
| 579 | { | ||
| 580 | "baggageCode": "INCLUDED_IN_FORWARD", | ||
| 581 | "price": 0, | ||
| 582 | "included": false | ||
| 583 | } | ||
| 584 | ] | ||
| 585 | } | ||
| 586 | ] | ||
| 587 | }, | ||
| 588 | "extraServices": [], | ||
| 589 | "insurancePrice": { | ||
| 590 | "name": "Medical INS (N10000)", | ||
| 591 | "price": 13.44, | ||
| 592 | "priceSurcarge": 0.00, | ||
| 593 | "actualStartDate": "2024-02-15T20:00:00.000Z", | ||
| 594 | "actualEndDate": "2024-02-17T20:00:00.000Z", | ||
| 595 | "optional": false, | ||
| 596 | "includedInPackagePrice": true | ||
| 597 | } | ||
| 598 | }, | ||
| 599 | "altPackages": [ | ||
| 600 | { | ||
| 601 | "id": "tour:1d0fa533-4261-4254-93bb-83599d581ffc:193990fa-41a5-46e6-9805-50f82c3c377f:63d79c94-1e19-443f-8a17-50e59e633ea8", | ||
| 602 | "priceCurrency": "USD", | ||
| 603 | "totalPrice": 968.40, | ||
| 604 | "agentCommissionPercent": 0.00, | ||
| 605 | "agentCommissionAmount": 0.00, | ||
| 606 | "includedExtrasAmount": 0, | ||
| 607 | "priceDifference": 31.24, | ||
| 608 | "hotel": { | ||
| 609 | "hotelPriceId": "193990fa-41a5-46e6-9805-50f82c3c377f", | ||
| 610 | "providerId": 13, | ||
| 611 | "hotelName": "Mercure Dubai Barsha Heights Suites Apartments", | ||
| 612 | "hotelCode": "5f125310-7025-4807-a4c6-49cd284c9c14", | ||
| 613 | "nigths": 2, | ||
| 614 | "mealPlan": "BB", | ||
| 615 | "hotelClass": "4", | ||
| 616 | "availabilityType": "StopSale", | ||
| 617 | "availableRoomsCount": 0, | ||
| 618 | "fewRooms": true, | ||
| 619 | "roomCategoryCode": "f8e1ffe5-25cc-46a4-80e8-586d1c049de4", | ||
| 620 | "roomCategoryName": "1 B/R Apartment City View", | ||
| 621 | "placementTypeName": "SNGL + CHILD(2-5.99)sharing", | ||
| 622 | "checkInDate": "2024-02-15T20:00:00.000Z", | ||
| 623 | "checkOutDate": "2024-02-17T20:00:00.000Z", | ||
| 624 | "adults": 1, | ||
| 625 | "children": 1, | ||
| 626 | "districtUID": "4c65f6ed-902b-4fd8-9419-af7884c22c5e", | ||
| 627 | "districtName": "Al Barsha", | ||
| 628 | "cityUID": "f5185fa3-3f56-44ed-bf6b-80386a33caa2", | ||
| 629 | "cityName": "Dubai", | ||
| 630 | "countryCode": "AE", | ||
| 631 | "countryName": "United Arab Emirates", | ||
| 632 | "hasAlcohol": false, | ||
| 633 | "hasFreeWifi": true, | ||
| 634 | "hasMetro": true, | ||
| 635 | "hasPool": true, | ||
| 636 | "hasMall": false, | ||
| 637 | "cancellationPolicyDescription": "Cancellation Policy: 5 Day Before Arrival: 100.00 %, Early Departure: 100.00 %, NoShow: 100.00 %", | ||
| 638 | "cancellationPolicy": { | ||
| 639 | "noShowChargeValue": 100.00, | ||
| 640 | "noShowChargeValueType": "%", | ||
| 641 | "earlyDepartureChargeValue": 100.00, | ||
| 642 | "earlyDepartureChargeValueType": "%", | ||
| 643 | "conditions": [ | ||
| 644 | { | ||
| 645 | "timeunits": 5, | ||
| 646 | "timeunitType": "Day", | ||
| 647 | "timeOffsetTypeName": "Before Arrival", | ||
| 648 | "chargeValue": 100.00, | ||
| 649 | "chargeValueType": "%" | ||
| 650 | } | ||
| 651 | ] | ||
| 652 | } | ||
| 653 | }, | ||
| 654 | "flight": { | ||
| 655 | "id": "63d79c94-1e19-443f-8a17-50e59e633ea8", | ||
| 656 | "departureDate": "2024-02-15T20:00:00.000Z", | ||
| 657 | "returnDate": "2024-02-17T20:00:00.000Z", | ||
| 658 | "departureTicketsLeft": 50, | ||
| 659 | "returnTicketsLeft": 50, | ||
| 660 | "departureAvailabilityType": "FewPlaces", | ||
| 661 | "returnAvailabilityType": "FewPlaces", | ||
| 662 | "isTwoWay": true, | ||
| 663 | "sameBaggageForAll": false, | ||
| 664 | "totalBaggage": false, | ||
| 665 | "departureSegments": [ | ||
| 666 | { | ||
| 667 | "airlineCode": "FZ", | ||
| 668 | "airlineName": "Fly Dubai.", | ||
| 669 | "flightCode": "FZ1722", | ||
| 670 | "class": "econom", | ||
| 671 | "lugageWeight": 20, | ||
| 672 | "handLugageWeight": 6, | ||
| 673 | "departureFlightDate": "2024-02-15T20:00:00.000Z", | ||
| 674 | "departureCountryName": "Kazakhstan", | ||
| 675 | "departureCityName": "Almaty", | ||
| 676 | "departureAirportCode": "ALA", | ||
| 677 | "departureAirportName": "Almaty Intl Airport", | ||
| 678 | "departureTerminalCode": "ALA", | ||
| 679 | "arrivalFlightDate": "2024-02-15T20:00:00.000Z", | ||
| 680 | "arrivalCountryName": "United Arab Emirates", | ||
| 681 | "arrivalCityName": "Dubai", | ||
| 682 | "arrivalAirportCode": "DXB", | ||
| 683 | "arrivalAirportName": "Dubai Intl Airport", | ||
| 684 | "arrivalTerminalCode": "DXB3", | ||
| 685 | "flightDuration": "0h 55m" | ||
| 686 | } | ||
| 687 | ], | ||
| 688 | "returnSegments": [ | ||
| 689 | { | ||
| 690 | "airlineCode": "FZ", | ||
| 691 | "airlineName": "Fly Dubai.", | ||
| 692 | "flightCode": "FZ1721", | ||
| 693 | "class": "econom", | ||
| 694 | "lugageWeight": 20, | ||
| 695 | "handLugageWeight": 6, | ||
| 696 | "departureFlightDate": "2024-02-17T20:00:00.000Z", | ||
| 697 | "departureCountryName": "United Arab Emirates", | ||
| 698 | "departureCityName": "Dubai", | ||
| 699 | "departureAirportCode": "DXB", | ||
| 700 | "departureAirportName": "Dubai Intl Airport", | ||
| 701 | "departureTerminalCode": "DXB3", | ||
| 702 | "arrivalFlightDate": "2024-02-18T20:00:00.000Z", | ||
| 703 | "arrivalCountryName": "Kazakhstan", | ||
| 704 | "arrivalCityName": "Almaty", | ||
| 705 | "arrivalAirportCode": "ALA", | ||
| 706 | "arrivalAirportName": "Almaty Intl Airport", | ||
| 707 | "arrivalTerminalCode": "DXB3", | ||
| 708 | "flightDuration": "8h 10m" | ||
| 709 | } | ||
| 710 | ], | ||
| 711 | "passengers": [ | ||
| 712 | { | ||
| 713 | "id": "42779547001000004-A1", | ||
| 714 | "isAdult": true, | ||
| 715 | "selectedForwardBaggageCode": "INCLUDED", | ||
| 716 | "selectedBackwardBaggageCode": "INCLUDED", | ||
| 717 | "forwardBaggages": [ | ||
| 718 | { | ||
| 719 | "baggageCode": "INCLUDED", | ||
| 720 | "description": "20 KG INCLUDED", | ||
| 721 | "price": 0.0, | ||
| 722 | "currency": "USD", | ||
| 723 | "included": true | ||
| 724 | } | ||
| 725 | ], | ||
| 726 | "backwardBaggages": [ | ||
| 727 | { | ||
| 728 | "baggageCode": "INCLUDED", | ||
| 729 | "description": "20 KG INCLUDED", | ||
| 730 | "price": 0.0, | ||
| 731 | "currency": "USD", | ||
| 732 | "included": true | ||
| 733 | } | ||
| 734 | ] | ||
| 735 | }, | ||
| 736 | { | ||
| 737 | "id": "42779547001000004-C1", | ||
| 738 | "isAdult": false, | ||
| 739 | "selectedForwardBaggageCode": "INCLUDED", | ||
| 740 | "selectedBackwardBaggageCode": "INCLUDED", | ||
| 741 | "forwardBaggages": [ | ||
| 742 | { | ||
| 743 | "baggageCode": "INCLUDED", | ||
| 744 | "description": "20 KG INCLUDED", | ||
| 745 | "price": 0.0, | ||
| 746 | "currency": "USD", | ||
| 747 | "included": true | ||
| 748 | } | ||
| 749 | ], | ||
| 750 | "backwardBaggages": [ | ||
| 751 | { | ||
| 752 | "baggageCode": "INCLUDED", | ||
| 753 | "description": "20 KG INCLUDED", | ||
| 754 | "price": 0.0, | ||
| 755 | "currency": "USD", | ||
| 756 | "included": true | ||
| 757 | } | ||
| 758 | ] | ||
| 759 | } | ||
| 760 | ] | ||
| 761 | }, | ||
| 762 | "extraServices": [], | ||
| 763 | "insurancePrice": { | ||
| 764 | "name": "Medical INS (N10000)", | ||
| 765 | "price": 13.44, | ||
| 766 | "priceSurcarge": 0.00, | ||
| 767 | "actualStartDate": "2024-02-15T20:00:00.000Z", | ||
| 768 | "actualEndDate": "2024-02-17T20:00:00.000Z", | ||
| 769 | "optional": false, | ||
| 770 | "includedInPackagePrice": true | ||
| 771 | } | ||
| 772 | }, | ||
| 773 | { | ||
| 774 | {{/code}} | ||
| |
2.1 | 775 | |
| 776 | |||
| 777 | === Schema === | ||
| 778 | |||
| 779 | {{success}} | ||
| 780 | CalcOnlyHotelPackageResponse{ | ||
| 781 | |||
| 782 | |error|boolean | ||
| 783 | |errorCode|string | ||
| 784 | nullable: true | ||
| 785 | |errorDescription|string | ||
| 786 | nullable: true | ||
| 787 | |userErrorDescription|string | ||
| 788 | nullable: true | ||
| 789 | |package|OnlyHotelPackage{((( | ||
| 790 | |id|string | ||
| 791 | nullable: true | ||
| 792 | |priceCurrency|string | ||
| 793 | nullable: true | ||
| 794 | |totalPrice|number($double) | ||
| 795 | |agentCommissionPercent|number($double) | ||
| 796 | |agentCommissionAmount|number($double) | ||
| 797 | |hotel|PackageHotel{((( | ||
| 798 | |hotelPriceId|string | ||
| 799 | nullable: true | ||
| 800 | |providerId|integer($int32) | ||
| 801 | |hotelName|string | ||
| 802 | nullable: true | ||
| 803 | |hotelCode|string | ||
| 804 | nullable: true | ||
| 805 | |nigths|integer($int32) | ||
| 806 | |mealPlan|string | ||
| 807 | nullable: true | ||
| 808 | |hotelClass|string | ||
| 809 | nullable: true | ||
| 810 | |availabilityType|RoomAvailabilityTypeEnumstringEnum: | ||
| 811 | [ OnRequest, FreeSale, StopSale ] | ||
| 812 | |availableRoomsCount|integer($int32) | ||
| 813 | |fewRooms|boolean | ||
| 814 | |roomCategoryCode|string | ||
| 815 | nullable: true | ||
| 816 | |roomCategoryName|string | ||
| 817 | nullable: true | ||
| 818 | |placementTypeName|string | ||
| 819 | nullable: true | ||
| 820 | |placementDescription|string | ||
| 821 | nullable: true | ||
| 822 | |checkInDate|string($date-time) | ||
| 823 | |checkOutDate|string($date-time) | ||
| 824 | |adults|integer($int32) | ||
| 825 | |children|integer($int32) | ||
| 826 | |districtUID|string($uuid) | ||
| 827 | nullable: true | ||
| 828 | |districtName|string | ||
| 829 | nullable: true | ||
| 830 | |cityUID|string($uuid) | ||
| 831 | nullable: true | ||
| 832 | |cityName|string | ||
| 833 | nullable: true | ||
| 834 | |countryCode|string | ||
| 835 | nullable: true | ||
| 836 | |countryName|string | ||
| 837 | nullable: true | ||
| 838 | |hasAlcohol|boolean | ||
| 839 | |hasFreeWifi|boolean | ||
| 840 | |hasMetro|boolean | ||
| 841 | |hasPool|boolean | ||
| 842 | |hasMall|boolean | ||
| 843 | |cancellationPolicyDescription|string | ||
| 844 | nullable: true | ||
| 845 | |cancellationPolicy|CancellationPolicyExchange{((( | ||
| 846 | |cancellationPolicyCode|string | ||
| 847 | nullable: true | ||
| 848 | |noShowChargeValue|number($double) | ||
| 849 | nullable: true | ||
| 850 | |noShowChargeValueType|string | ||
| 851 | nullable: true | ||
| 852 | |earlyDepartureChargeValue|number($double) | ||
| 853 | nullable: true | ||
| 854 | |earlyDepartureChargeValueType|string | ||
| 855 | nullable: true | ||
| 856 | |conditions|[ | ||
| 857 | nullable: trueCancellationPolicyConditionExchange{((( | ||
| 858 | |timeunits|integer($int32) | ||
| 859 | |timeunitType|string | ||
| 860 | nullable: true | ||
| 861 | |timeOffsetTypeName|string | ||
| 862 | nullable: true | ||
| 863 | |chargeValue|number($double) | ||
| 864 | nullable: true | ||
| 865 | |chargeValueType|string | ||
| 866 | nullable: true | ||
| 867 | |||
| 868 | }] | ||
| 869 | ))) | ||
| 870 | |||
| 871 | } | ||
| 872 | ))) | ||
| 873 | |||
| 874 | } | ||
| 875 | ))) | ||
| 876 | |extraServices|[ | ||
| 877 | nullable: trueHotelExtraServiceBase{((( | ||
| 878 | |extraServiceCode|string | ||
| 879 | nullable: true | ||
| 880 | |extraServiceTypeCode|string | ||
| 881 | nullable: true | ||
| 882 | |isMandatory|integer($int32) | ||
| 883 | |extraServiceName|string | ||
| 884 | nullable: true | ||
| 885 | |minimalServiceAmount|number($double) | ||
| 886 | |includedPriceCode|string | ||
| 887 | nullable: true | ||
| 888 | |prices|[ | ||
| 889 | nullable: trueHotelExtraServicePriceBase{((( | ||
| 890 | |extraServicePriceCode|string | ||
| 891 | nullable: true | ||
| 892 | |displayName|string | ||
| 893 | nullable: true | ||
| 894 | |restrictionInfo|string | ||
| 895 | nullable: true | ||
| 896 | |additionalInfo|string | ||
| 897 | nullable: true | ||
| 898 | |price|number($double) | ||
| 899 | |extraPrice|number($double) | ||
| 900 | |currency|string | ||
| 901 | nullable: true | ||
| 902 | |||
| 903 | }] | ||
| 904 | ))) | ||
| 905 | |||
| 906 | }] | ||
| 907 | ))) | ||
| 908 | |||
| 909 | } | ||
| 910 | ))) | ||
| 911 | |||
| 912 | } | ||
| 913 | {{/success}} |