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