Changes for page 1. SearchTourPackages

Last modified by Giorgi Mdivnishvili on 2025/02/12 15:25

From version 37.1
edited by Giorgi Mdivnishvili
on 2024/04/11 17:29
Change comment: There is no comment for this version
To version 45.1
edited by Giorgi Mdivnishvili
on 2024/04/16 18:53
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -794,7 +794,7 @@
794 794  |stayDays|integer|The minimum number of days to stay.
795 795  |stayDaysTo|integer|The maximum number of days to stay.
796 796  |airlineCode|string|The code of the airline. This field can be empty.
797 -|ticketType|string|The type of the ticket. This field can be empty.
797 +|ticketType|string|The type of the ticket. This field can be empty. definition of avia tickets classes. enum: F - First, B - Business, P = Premium, C - Coach
798 798  |directFlightsOnly|boolean|Indicates whether to search for direct flights only.
799 799  |longConnectTime|boolean|Indicates whether to include flights with long connection times.
800 800  |adults|integer|The number of adults.
... ... @@ -824,7 +824,7 @@
824 824  |packages|array|An array of packages available. Each package contains:
825 825  |cacheKey|string|A unique identifier for the cache.
826 826  |id|string|A unique identifier for the package.
827 -|priceCurrency|string|The currency in which the price is displayed.
827 +|priceCurrency|string|The currency in which the price is displayed. examples -  •   KZT - ₸ •   USD - $ •   RUB - ₽ •   EUR - € •   UZS - ЛВ •   AZN - ₼
828 828  |totalPrice|float|The total price of the package.
829 829  |agentCommissionPercent|float|The commission percentage for the agent.
830 830  |agentCommissionAmount|float|The commission amount for the agent.
... ... @@ -914,6 +914,57 @@
914 914  {{/code}}
915 915  
916 916  
917 +**Overview:** The Paging and Caching mechanism is designed to efficiently manage data retrieval in a paginated format. This mechanism is essential for handling large datasets by dividing the data into manageable pages, thereby optimizing the performance and scalability of data retrieval operations.
918 +
919 +**Initial Request:**
920 +
921 +* **Purpose**: The first request initiates the paging process and is designed to fetch the initial set of data without utilizing a pagingId.
922 +* **Parameters**:
923 +** pagingId: Should be set to an empty string ("") to indicate that this is the initial request.
924 +** pageNumber: Indicates the specific page of data to retrieve, starting with 1.
925 +** pageRowCount: Specifies the number of results to be included on each page.
926 +
927 +**Example - First Request**:
928 +
929 +{{{{
930 + "pagingId": "",
931 +  "pageNumber": 1,
932 +  "pageRowCount": 10
933 +}
934 +}}}
935 +
936 +
937 +**Subsequent Requests with Caching:**
938 +
939 +* **Purpose**: Following the initial data retrieval, subsequent requests utilize the pagingId obtained from the previous response. This pagingId serves as a cache identifier, enabling the system to quickly access the relevant dataset and efficiently paginate through the data.
940 +* **Cache Utilization**:
941 +** Upon receiving a response, a pagingId value is provided. This pagingId should be used in subsequent requests to reference the cached data.
942 +** To navigate through the dataset, adjust the pageNumber while keeping the pagingId constant.
943 +** To refresh the dataset and clear the cache, initiate a new request without a pagingId.
944 +
945 +**Example - Request with Caching**:
946 +
947 +{{{ {
948 + "pagingId": "80",
949 + "pageNumber": 2, // Adjusted to fetch the next page
950 + "pageRowCount": 10
951 + }
952 +}}}
953 +
954 +
955 +**Cache Management:**
956 +
957 +* Clearing the cache and fetching a fresh set of data requires sending a new request with the pagingId parameter omitted or set to an empty string. This action resets the pagination and caching context.
958 +
959 +**Implementation Notes**:
960 +
961 +* The paging and caching mechanism significantly enhances data retrieval efficiency by minimizing server load and optimizing response times.
962 +* Developers should ensure that the pagingId is correctly managed between requests to maintain session continuity and data consistency.
963 +
964 +This documentation outlines the procedural framework for implementing a robust paging and caching strategy within data retrieval systems, detailing parameter usage and operational best practices for both initial and subsequent data fetch operations.
965 +
966 +
967 +
917 917  === Search parameter options ===
918 918  
919 919  in the request body it's available to filter search results with parameters. parameter examples:
... ... @@ -952,7 +952,16 @@
952 952  {{/code}}
953 953  
954 954  
1006 +1. **RO (Room Only)**: This plan includes only the accommodation with no meals provided. Guests will need to arrange their own meals either outside the hotel or by purchasing them separately within the hotel.
1007 +1. **BB (Bed and Breakfast)**: This plan includes accommodation along with breakfast served at the hotel. No other meals are included, which means guests need to arrange their own lunch and dinner.
1008 +1. **HB (Half Board)**: This meal plan includes accommodation along with two meals a day, typically breakfast and either lunch or dinner. Guests can choose which two meals are most convenient for them based on the options provided by the hotel.
1009 +1. **FB (Full Board)**: Under the full board plan, accommodation and all three meals (breakfast, lunch, and dinner) are included. This plan is convenient for guests who do not wish to worry about arranging meals during their stay.
1010 +1. **AL (All Inclusive)**: The all-inclusive meal plan includes accommodation, all meals (breakfast, lunch, dinner), and usually includes a range of snacks and beverages (both alcoholic and non-alcoholic). It is the most comprehensive meal plan, offering the greatest convenience and predictability in costs.
955 955  
1012 +**ticketType **definition of avia tickets classes.
1013 +
1014 +enum: F - First, B - Business, P = Premium, C - Coach.
1015 +
956 956  == Important ==
957 957  
958 958  {{error}}
... ... @@ -971,3 +971,14 @@
971 971  
972 972  Incorporating these headers with their respective values is essential for the successful processing of your API requests.
973 973  {{/error}}
1034 +
1035 +
1036 +
1037 +(% class="box errormessage" %)
1038 +(((
1039 +Tour package requirements can vary based on the destination country, necessitating the inclusion of additional mandatory services such as Visa, Insurance, etc. When querying for tour packages through the API, the response payload will dynamically include fields indicating whether these services are mandatory. For instance, the API may return a structure like this:
1040 +
1041 +[[image:https://xwiki.nugios.com/xwiki/bin/download/APIs/Online%20API/TourPackages/WebHome/1713191255012-154.png?rev=1.1||alt="1713191255012-154.png"]]
1042 +
1043 +in the given example it means that insurance service is mandatory for the tourpackage.
1044 +)))