Changes for page 3. CalcPackage
Last modified by Giorgi Mdivnishvili on 2024/04/11 17:03
From version 10.1
edited by Giorgi Mdivnishvili
on 2024/01/09 07:21
on 2024/01/09 07:21
Change comment:
There is no comment for this version
To version 6.1
edited by Giorgi Mdivnishvili
on 2023/12/26 17:01
on 2023/12/26 17:01
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -12,7 +12,7 @@ 12 12 == Endpoint URL - [POST] == 13 13 14 14 {{info}} 15 -[[https:~~/~~/in tegration.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]] 16 16 {{/info}} 17 17 18 18 ... ... @@ -47,8 +47,6 @@ 47 47 (% class="wikigeneratedid" id="HRequestBodyexample" %) 48 48 (% id="cke_bm_10575S" style="display:none" %) 49 49 50 - 51 - 52 52 == Request Body example == 53 53 54 54 {{code language="Json"}} ... ... @@ -431,349 +431,7 @@ 431 431 432 432 === Response example === 433 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}} 432 +{{code language="Json"}}{{/code}} 777 777 778 778 779 779 === Schema === ... ... @@ -913,3 +913,4 @@ 913 913 914 914 } 915 915 {{/success}} 572 +