Wiki source code of 3. CalcPackage

Version 9.1 by Giorgi Mdivnishvili on 2023/12/26 17:16

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