Changes for page SearchTourPackages - Basic Version
Last modified by Giorgi Mdivnishvili on 2024/07/11 12:45
From version 4.1
edited by Giorgi Mdivnishvili
on 2024/04/11 09:35
on 2024/04/11 09:35
Change comment:
There is no comment for this version
To version 5.1
edited by Giorgi Mdivnishvili
on 2024/04/11 09:45
on 2024/04/11 09:45
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -711,108 +711,127 @@ 711 711 == Definitions == 712 712 713 713 714 -**Request Parameters ** 714 +=== **Request Parameters ** === 715 715 716 -(% class="table-bordered" %) 716 +|=Key|=Type|=Nullable|=Description 717 +|departureCountryCode|String|No|The ISO 3166-1 alpha-2 code of the departure country. For example, "KZ" for Kazakhstan. 718 +|departureCityUID|String (UUID)|No|The unique identifier of the departure city. This is a UUID, such as "f0ba6324-f337-405c-8cc7-23d62cf664e8". 719 +|arrivalCountryCode|String|No|The ISO 3166-1 alpha-2 code of the arrival country. For example, "AE" for United Arab Emirates. 720 +|adults|Integer|No|The number of adults for the trip. For example, 2 for two adults. 721 +|children|Integer|No|The number of children for the trip. For example, 0 for no children. 722 +|departureDate|String (date-time)|No|The departure date in ISO 8601 format. For example, "2024-05-25T00:00:00" for May 25, 2024. 723 +|returnDate|String (date-time)|No|The return date in ISO 8601 format. For example, "2024-06-01T00:00:00" for June 1, 2024. 724 +|departureAndReturnDaysCount|Integer|No|The total number of days for the departure and return trip. For example, 7 for a week-long trip. 725 +|checkInDate|String (date-time)|No|The check-in date at the hotel in ISO 8601 format. For example, "2024-05-25T00:00:00" for May 25, 2024. 726 +|checkOutDate|String (date-time)|No|The check-out date from the hotel in ISO 8601 format. For example, "2024-06-01T00:00:00" for June 1, 2024. 727 +|checkInAndCheckOutDaysCount|Integer|No|The total number of days for the hotel stay. For example, 7 for a week-long stay. 728 +|directFlightsOnly|Boolean|No|Whether to search for direct flights only. For example, true to only search for direct flights. 729 +|pageRowCount|Integer|No|The number of results to return per page. For example, 1 to return 1 result per page. 730 +|searchCurrency|String|No|The currency in which the search results should be displayed. For example, "USD" for United States Dollar. 731 + 732 + 733 +=== **Response Parameters** === 734 + 735 +=== Packages === 736 + 717 717 |=Field|=Type|=Description 718 -|departureCountryCode|string|The ISO 3166-1 alpha-2 country code for the departure country. For example, "KZ" for Kazakhstan. 719 -|departureCityUID|string|The unique identifier for the departure city. 720 -|arrivalCountryCode|string|The ISO 3166-1 alpha-2 country code for the arrival country. For example, "AE" for United Arab Emirates. 721 -|arrivalLocations|array|An array of objects, each representing an arrival location. Each object contains: type (string) - The type of the location. This can be "city". label (string) - The name of the location. value (string) - The unique identifier for the location. tag (string) - A tag for the location. 722 -|checkInDate|string|The check-in date in ISO 8601 format. 723 -|checkInDateTo|string|The latest possible check-in date in ISO 8601 format. 724 -|stayDays|integer|The minimum number of days to stay. 725 -|stayDaysTo|integer|The maximum number of days to stay. 726 -|airlineCode|string|The code of the airline. This field can be empty. 727 -|ticketType|string|The type of the ticket. This field can be empty. 728 -|directFlightsOnly|boolean|Indicates whether to search for direct flights only. 729 -|longConnectTime|boolean|Indicates whether to include flights with long connection times. 730 -|adults|integer|The number of adults. 731 -|children|integer|The number of children. 732 -|childrenAges|array|An array of integers, each representing the age of a child. 733 -|extendedSearch|boolean|Indicates whether to perform an extended search. 734 -|totalPriceFrom|float|The minimum total price. 735 -|totalPriceTo|float|The maximum total price. 736 -|recommended|boolean|Indicates whether to include recommended packages. 737 -|popular|boolean|Indicates whether to include popular packages. 738 -|freeSale|boolean|Indicates whether to include free sale packages. 739 -|groupByHotel|boolean|Indicates whether to group the results by hotel. 740 -|hotelCodes|array|An array of strings, each representing a hotel code. This field can be empty. 741 -|mealPlans|array|An array of meal plans. This field can be empty. 742 -|hotelClasses|array|An array of hotel classes. This field can be empty. 743 -|hotelTypes|array|An array of hotel types. This field can be empty. 744 -|hotelServices|array|An array of hotel services. This field can be empty. 745 -|pagingId|string|The paging ID for paginated results. This field can be empty. 746 -|pageNumber|integer|The page number for paginated results. 747 -|pageRowCount|integer|The number of rows per page for paginated results. 738 +|id|string|Unique identifier for the package 739 +|priceCurrency|string|Currency for the price 740 +|totalPrice|number|Total price of the package 741 +|agentCommissionPercent|number|Commission percentage for the agent 742 +|agentCommissionAmount|number|Commission amount for the agent 743 +|includedExtrasAmount|integer|Amount of included extras 744 +|priceDifference|integer|Price difference 745 +|hotel|object|Details about the hotel 746 +|flight|object|Details about the flight 747 +|extraServices|array|Extra services included in the package 748 +|insurancePrice|object|Details about the insurance price 749 +|cacheKey|string|Cache key 750 +|sortCheckInOut|string|Sorting parameter based on check-in and check-out dates 751 +|sortAirline|string|Sorting parameter based on airline 752 +|sortHotelName|string|Sorting parameter based on hotel name 753 +|sortDetails|string|Sorting parameter based on details 754 +|sortPlacement|string|Sorting parameter based on placement 748 748 749 -(% class="wikigeneratedid" %) 750 -**Response Parameters** 756 +=== Hotel === 751 751 752 -(% class="table-bordered" %) 753 753 |=Field|=Type|=Description 754 -|packages|array|An array of packages available. Each package contains: 755 -|cacheKey|string|A unique identifier for the cache. 756 -|id|string|A unique identifier for the package. 757 -|priceCurrency|string|The currency in which the price is displayed. 758 -|totalPrice|float|The total price of the package. 759 -|agentCommissionPercent|float|The commission percentage for the agent. 760 -|agentCommissionAmount|float|The commission amount for the agent. 761 -|includedExtrasAmount|integer|The amount of extras included in the package. 762 -|priceDifference|integer|The difference in price from the original price. 763 -|hotel|object|An object containing details about the hotel. 764 -|hotelPriceId|string|A unique identifier for the hotel price. 765 -|providerId|integer|A unique identifier for the provider. 766 -|hotelName|string|The name of the hotel. 767 -|hotelCode|string|A unique code for the hotel. 768 -|nigths|integer|The number of nights for the stay. 769 -|mealPlan|string|The meal plan for the stay. 770 -|hotelClass|string|The class or rating of the hotel. 771 -|availabilityType|string|The availability type of the hotel. 772 -|availableRoomsCount|integer|The number of available rooms in the hotel. 773 -|fewRooms|boolean|Indicates whether there are few rooms left. 774 -|roomCategoryCode|string|A unique code for the room category. 775 -|roomCategoryName|string|The name of the room category. 776 -|placementTypeName|string|The name of the placement type. 777 -|checkInDate|string|The check-in date in ISO 8601 format. 778 -|checkOutDate|string|The check-out date in ISO 8601 format. 779 -|adults|integer|The number of adults for the stay. 780 -|children|integer|The number of children for the stay. 781 -|districtUID|string|A unique identifier for the district. 782 -|districtName|string|The name of the district. 783 -|cityUID|string|A unique identifier for the city. 784 -|cityName|string|The name of the city. 785 -|countryCode|string|The ISO 3166-1 alpha-2 country code. 786 -|countryName|string|The name of the country. 787 -|hasAlcohol|boolean|Indicates whether the hotel serves alcohol. 788 -|hasFreeWifi|boolean|Indicates whether the hotel offers free Wi-Fi. 789 -|hasMetro|boolean|Indicates whether the hotel is near a metro station. 790 -|hasPool|boolean|Indicates whether the hotel has a pool. 791 -|hasMall|boolean|Indicates whether the hotel is near a shopping mall. 792 -|cancellationPolicyDescription|string|The description of the cancellation policy. 793 -|cancellationPolicy|object|An object containing details about the cancellation policy. 794 -|flight|object|An object containing details about the flight. 795 -|id|string|A unique identifier for the flight. 796 -|departureDate|string|The departure date in ISO 8601 format. 797 -|returnDate|string|The return date in ISO 8601 format. 798 -|departureTicketsLeft|integer|The number of departure tickets left. 799 -|returnTicketsLeft|integer|The number of return tickets left. 800 -|departureAvailabilityType|string|The availability type of the departure flight. 801 -|returnAvailabilityType|string|The availability type of the return flight. 802 -|isTwoWay|boolean|Indicates whether the flight is two-way. 803 -|sameBaggageForAll|boolean|Indicates whether the same baggage is applicable for all passengers. 804 -|totalBaggage|boolean|Indicates whether total baggage is included. 805 -|departureSegments|array|An array of objects, each representing a departure segment. 806 -|returnSegments|array|An array of objects, each representing a return segment. 807 -|passengers|array|An array of objects, each representing a passenger. 808 -|extraServices|array|An array of extra services included in the package. 809 -|insurancePrice|object|An object containing details about the insurance price. 810 -|pagingId|string|The paging ID for paginated results. 811 -|pageNumber|integer|The page number for paginated results. 812 -|pageCount|integer|The total number of pages. 813 -|totalCount|integer|The total count of packages. 814 -|error|boolean|Indicates whether there was an error. 759 +|hotelPriceId|string|Unique identifier for the hotel price 760 +|hotelName|string|Name of the hotel 761 +|hotelCode|string|Code of the hotel 762 +|nights|integer|Number of nights 763 +|mealPlan|string|Meal plan 764 +|hotelClass|string|Class of the hotel 765 +|hotelColor|string|Color associated with the hotel 766 +|availabilityType|string|Availability type of the hotel 767 +|availableRoomsCount|integer|Number of available rooms 768 +|fewRooms|boolean|Whether there are few rooms left 769 +|roomCategoryCode|string|Code of the room category 770 +|roomCategoryName|string|Name of the room category 771 +|placementTypeName|string|Name of the placement type 772 +|placementDescription|string|Description of the placement 773 +|checkInDate|string|Check-in date 774 +|checkOutDate|string|Check-out date 775 +|adults|integer|Number of adults 776 +|children|integer|Number of children 777 +|districtUID|string|Unique identifier for the district 778 +|districtName|string|Name of the district 779 +|cityUID|string|Unique identifier for the city 780 +|cityName|string|Name of the city 781 +|countryCode|string|Country code 782 +|countryName|string|Name of the country 783 +|hasAlcohol|boolean|Whether the hotel has alcohol 784 +|hasFreeWifi|boolean|Whether the hotel has free Wi-Fi 785 +|hasMetro|boolean|Whether the hotel is near a metro 786 +|hasPool|boolean|Whether the hotel has a pool 787 +|hasMall|boolean|Whether the hotel is near a mall 788 +|infantMaxAge|number|Maximum age for an infant 789 +|childMinAge|number|Minimum age for a child 790 +|childMaxAge|number|Maximum age for a child 791 +|teenMinAge|number|Minimum age for a teen 792 +|teenMaxAge|number|Maximum age for a teen 793 +|adultMinAge|number|Minimum age for an adult 794 +|cancellationPolicyDescription|string|Description of the cancellation policy 795 +|cancellationPolicy|object|Details about the cancellation policy 815 815 797 +=== Flight === 798 + 799 +|=Field|=Type|=Description 800 +|id|string|Unique identifier for the flight 801 +|departureDate|string|Departure date 802 +|returnDate|string|Return date 803 +|departureTicketsLeft|integer|Number of departure tickets left 804 +|returnTicketsLeft|integer|Number of return tickets left 805 +|departureAvailabilityType|string|Availability type for the departure 806 +|returnAvailabilityType|string|Availability type for the return 807 +|isTwoWay|boolean|Whether the flight is two-way 808 +|sameBaggageForAll|boolean|Whether the same baggage is for all 809 +|totalBaggage|boolean|Whether the total baggage is included 810 +|isBlock|boolean|Whether the flight is blocked 811 +|class|string|Class of the flight 812 +|departureSegments|array|Details about the departure segments 813 +|returnSegments|array|Details about the return segments 814 +|passengers|array|Details about the passengers 815 + 816 +=== InsurancePrice === 817 + 818 +|=Field|=Type|=Description 819 +|name|string|Name of the insurance 820 +|price|number|Price of the insurance 821 +|actualStartDate|string|Start date of the insurance 822 +|actualEndDate|string|End date of the insurance 823 +|optional|boolean|Whether the insurance is optional 824 +|includedInPackagePrice|boolean|Whether the insurance is included in the package price 825 + 826 +=== Paging === 827 + 828 +|=Field|=Type|=Description 829 +|pagingId|string|Unique identifier for the paging 830 +|pageNumber|integer|Current page number 831 +|pageCount|integer|Total number of pages 832 +|totalCount|integer|Total count of items 833 +|error|boolean|Whether there is an error 834 + 816 816 === Paging and Caching === 817 817 818 818 During the first request, Paging id must be empty like this ( "pagingId": "",) pagenumber is the number of the page, pagerowcount means number of the given result in one page. So in the first request we can search like this: