Changes for page 3. CalcPackage

Last modified by Giorgi Mdivnishvili on 2024/04/11 17:03

From version 11.1
edited by Giorgi Mdivnishvili
on 2024/01/09 13:01
Change comment: There is no comment for this version
To version 6.1
edited by Giorgi Mdivnishvili
on 2023/12/26 17:01
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -6,12 +6,13 @@
6 6  
7 7  = Method Description =
8 8  
9 -This method is used to calculate full package with hotels and flights, to recheck prices, availability, prices and cancelation policy before book.
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 10  
11 +
11 11  == Endpoint URL - [POST] ==
12 12  
13 13  {{info}}
14 -[[https:~~/~~/integration.kazunion.com/api/TourPackages/CalcPackage>>https://integration.kazunion.com/api/TourPackages/CalcPackage]]
15 +[[https:~~/~~/online-api.kazunion.com/api/OnlyHotelPackages/CalcPackage>>https://online-api.kazunion.com/api/OnlyHotelPackages/CalcPackage]]
15 15  {{/info}}
16 16  
17 17  
... ... @@ -46,8 +46,6 @@
46 46  (% class="wikigeneratedid" id="HRequestBodyexample" %)
47 47  (% id="cke_bm_10575S" style="display:none" %)
48 48  
49 -
50 -
51 51  == Request Body example ==
52 52  
53 53  {{code language="Json"}}
... ... @@ -430,349 +430,7 @@
430 430  
431 431  === Response example ===
432 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}}
432 +{{code language="Json"}}{{/code}}
776 776  
777 777  
778 778  === Schema ===
... ... @@ -912,3 +912,4 @@
912 912  
913 913  }
914 914  {{/success}}
572 +