Last modified by Giorgi Mdivnishvili on 2024/07/11 12:45

From version 7.1
edited by Giorgi Mdivnishvili
on 2024/04/11 11:05
Change comment: There is no comment for this version
To version 5.1
edited by Giorgi Mdivnishvili
on 2024/04/11 09:45
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -713,7 +713,6 @@
713 713  
714 714  === **Request Parameters ** ===
715 715  
716 -(% class="table-bordered" %)
717 717  |=Key|=Type|=Nullable|=Description
718 718  |departureCountryCode|String|No|The ISO 3166-1 alpha-2 code of the departure country. For example, "KZ" for Kazakhstan.
719 719  |departureCityUID|String (UUID)|No|The unique identifier of the departure city. This is a UUID, such as "f0ba6324-f337-405c-8cc7-23d62cf664e8".
... ... @@ -730,88 +730,114 @@
730 730  |pageRowCount|Integer|No|The number of results to return per page. For example, 1 to return 1 result per page.
731 731  |searchCurrency|String|No|The currency in which the search results should be displayed. For example, "USD" for United States Dollar.
732 732  
733 -=== ===
734 734  
735 -=== **Response Parameters** ===
733 +=== **Response Parameters** ===
736 736  
737 -(% class="table-bordered" %)
738 -|=Key|=Type|=Description
739 -|packages|Array|An array of travel packages. Each package includes various details about the package.
740 -|packages[].id|String|A unique identifier for the package. This is used to uniquely identify each package.
741 -|packages[].priceCurrency|String|The currency in which the price is denoted. This could be USD, EUR, etc.
742 -|packages[].totalPrice|Number|The total price of the package. This includes all costs associated with the package.
743 -|packages[].agentCommissionPercent|Number|The commission percentage for the agent. This is the percentage of the total price that the agent receives as commission.
744 -|packages[].agentCommissionAmount|Number|The commission amount for the agent. This is the actual amount the agent receives as commission.
745 -|packages[].includedExtrasAmount|Number|The amount for the included extras. This is the cost of any extra services included in the package.
746 -|packages[].priceDifference|Number|The price difference. This could be a discount or a price increase.
747 -|packages[].hotel|Object|An object containing details about the hotel included in the package. This includes information like the hotel name, class, availability, etc.
748 -|packages[].hotel.hotelPriceId|String|The price ID of the hotel. This is used to uniquely identify the price for the hotel.
749 -|packages[].hotel.hotelName|String|The name of the hotel. This is the actual name of the hotel.
750 -|packages[].hotel.hotelCode|String|The code of the hotel. This is a unique code used to identify the hotel.
751 -|packages[].hotel.nights|Number|The number of nights for the stay. This is the duration of the stay at the hotel.
752 -|packages[].hotel.mealPlan|String|The meal plan for the stay. This could be breakfast included, all inclusive, etc.
753 -|packages[].hotel.hotelClass|String|The class of the hotel. This could be 3-star, 4-star, 5-star, etc.
754 -|packages[].hotel.hotelColor|String|The color associated with the hotel. This could be used for categorization or visualization purposes.
755 -|packages[].hotel.availabilityType|String|The availability type of the hotel. This could be available, sold out, etc.
756 -|packages[].hotel.availableRoomsCount|Number|The count of available rooms. This is the number of rooms that are currently available at the hotel.
757 -|packages[].hotel.fewRooms|Boolean|A boolean indicating if there are few rooms left. If true, it means that there are only a few rooms left.
758 -|packages[].hotel.roomCategoryCode|String|The code of the room category. This is a unique code used to identify the room category.
759 -|packages[].hotel.roomCategoryName|String|The name of the room category. This is the actual name of the room category.
760 -|packages[].hotel.placementTypeName|String|The name of the placement type. This could be sea view, garden view, etc.
761 -|packages[].hotel.placementDescription|String|The description of the placement. This provides more details about the placement type.
762 -|packages[].hotel.checkInDate|String|The check-in date. This is the date when the stay at the hotel begins.
763 -|packages[].hotel.checkOutDate|String|The check-out date. This is the date when the stay at the hotel ends.
764 -|packages[].hotel.adults|Number|The number of adults. This is the number of adults that will be staying at the hotel.
765 -|packages[].hotel.children|Number|The number of children. This is the number of children that will be staying at the hotel.
766 -|packages[].hotel.districtUID|String|The UID of the district. This is a unique identifier for the district where the hotel is located.
767 -|packages[].hotel.districtName|String|The name of the district. This is the actual name of the district where the hotel is located.
768 -|packages[].hotel.cityUID|String|The UID of the city. This is a unique identifier for the city where the hotel is located.
769 -|packages[].hotel.cityName|String|The name of the city. This is the actual name of the city where the hotel is located.
770 -|packages[].hotel.countryCode|String|The code of the country. This is a unique code used to identify the country where the hotel is located.
771 -|packages[].hotel.countryName|String|The name of the country. This is the actual name of the country where the hotel is located.
772 -|packages[].hotel.hasAlcohol|Boolean|A boolean indicating if alcohol is available. If true, it means that alcohol is available at the hotel.
773 -|packages[].hotel.hasFreeWifi|Boolean|A boolean indicating if free Wi-Fi is available. If true, it means that free Wi-Fi is available at the hotel.
774 -|packages[].hotel.hasMetro|Boolean|A boolean indicating if metro is available. If true, it means that there is a metro station near the hotel.
775 -|packages[].hotel.hasPool|Boolean|A boolean indicating if a pool is available. If true, it means that the hotel has a pool.
776 -|packages[].hotel.hasMall|Boolean|A boolean indicating if a mall is available. If true, it means that there is a mall near the hotel.
777 -|packages[].hotel.infantMaxAge|Number|The maximum age for an infant. This is the maximum age at which a person is considered an infant.
778 -|packages[].hotel.childMinAge|Number|The minimum age for a child. This is the minimum age at which a person is considered a child.
779 -|packages[].hotel.childMaxAge|Number|The maximum age for a child. This is the maximum age at which a person is considered a child.
780 -|packages[].hotel.teenMinAge|Number|The minimum age for a teen. This is the minimum age at which a person is considered a teen.
781 -|packages[].hotel.teenMaxAge|Number|The maximum age for a teen. This is the maximum age at which a person is considered a teen.
782 -|packages[].hotel.adultMinAge|Number|The minimum age for an adult. This is the minimum age at which a person is considered an adult.
783 -|packages[].hotel.cancellationPolicyDescription|String|The description of the cancellation policy. This provides more details about the cancellation policy of the hotel.
784 -|packages[].hotel.cancellationPolicy|Object|An object containing details about the cancellation policy. This includes information like the cancellation deadline, cancellation fee, etc.
785 -|packages[].flight|Object|An object containing details about the flight included in the package. This includes information like the flight ID, departure date, return date, etc.
786 -|packages[].flight.id|String|The ID of the flight. This is used to uniquely identify the flight.
787 -|packages[].flight.departureDate|String|The departure date of the flight. This is the date when the flight departs.
788 -|packages[].flight.returnDate|String|The return date of the flight. This is the date when the flight returns.
789 -|packages[].flight.departureTicketsLeft|Number|The number of departure tickets left. This is the number of tickets that are still available for the departure flight.
790 -|packages[].flight.returnTicketsLeft|Number|The number of return tickets left. This is the number of tickets that are still available for the return flight.
791 -|packages[].flight.departureAvailabilityType|String|The availability type of the departure flight. This could be available, sold out, etc.
792 -|packages[].flight.returnAvailabilityType|String|The availability type of the return flight. This could be available, sold out, etc.
793 -|packages[].flight.isTwoWay|Boolean|A boolean indicating if the flight is two-way. If true, it means that the flight includes both departure and return.
794 -|packages[].flight.sameBaggageForAll|Boolean|A boolean indicating if the same baggage is for all. If true, it means that the same baggage allowance applies to all passengers.
795 -|packages[].flight.totalBaggage|Boolean|A boolean indicating if total baggage is included. If true, it means that the total baggage allowance is included in the price.
796 -|packages[].flight.isBlock|Boolean|A boolean indicating if the flight is blocked. If true, it means that the flight is currently blocked and cannot be booked.
797 -|packages[].flight.class|String|The class of the flight. This could be economy, business, first class, etc.
798 -|packages[].flight.departureSegments|Array|An array containing details about the departure segments. Each segment includes information like the departure airport, arrival airport, departure time, arrival time, etc.
799 -|packages[].flight.returnSegments|Array|An array containing details about the return segments. Each segment includes information like the departure airport, arrival airport, departure time, arrival time, etc.
800 -|packages[].flight.passengers|Array|An array containing details about the passengers. Each passenger includes information like the passenger type, baggage allowance, etc.
801 -|packages[].extraServices|Array|An array of any extra services included in the package. Each service includes information like the service name, service price, etc.
802 -|packages[].insurancePrice|Object|An object containing details about the insurance price included in the package. This includes information like the insurance type, insurance price, etc.
803 -|packages[].cacheKey|String|The cache key. This is used to cache the package details for faster retrieval.
804 -|packages[].sortCheckInOut|String|The check-in and check-out dates for sorting. This is used to sort the packages based on the check-in and check-out dates.
805 -|packages[].sortAirline|String|The airline for sorting. This is used to sort the packages based on the airline.
806 -|packages[].sortHotelName|String|The hotel name for sorting. This is used to sort the packages based on the hotel name.
807 -|packages[].sortDetails|String|The details for sorting. This is used to sort the packages based on various details.
808 -|packages[].sortPlacement|String|The placement for sorting. This is used to sort the packages based on the placement.
809 -|pagingId|String|An identifier for the page. This is used to uniquely identify each page of results.
810 -|pageNumber|Number|The current page number. This is the number of the current page of results.
811 -|pageCount|Number|The total number of pages. This is the total number of pages of results.
812 -|totalCount|Number|The total count of packages. This is the total number of packages in all pages of results.
813 -|error|Boolean|A boolean indicating whether there was an error. If true, it means that there was an error in retrieving the packages.
735 +=== Packages ===
814 814  
737 +|=Field|=Type|=Description
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
755 +
756 +=== Hotel ===
757 +
758 +|=Field|=Type|=Description
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
796 +
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 +
835 +=== Paging and Caching ===
836 +
837 +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:
838 +
839 +
815 815  ==== first request ====
816 816  
817 817  {{code language="Json"}}