Changes for page 2. GetOtherFlights

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

From version 8.1
edited by Giorgi Mdivnishvili
on 2023/12/27 09:18
Change comment: There is no comment for this version
To version 2.1
edited by Giorgi Mdivnishvili
on 2023/12/18 18:02
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -2. GetOtherFlights
1 +GetOtherFlights
Content
... ... @@ -12,7 +12,7 @@
12 12  == Endpoint URL - [POST] ==
13 13  
14 14  {{info}}
15 -{{{ }}}
15 +[[https:~~/~~/online-api.kazunion.com/api/TourPackages/SearchTourPackages>>https://online-api.kazunion.com/api/TourPackages/SearchTourPackages]]
16 16  {{/info}}
17 17  
18 18  == Request Parameters ==
... ... @@ -27,168 +27,60 @@
27 27  
28 28  {{code language="Json"}}
29 29  {
30 - "package": {
31 - "id": "string",
32 - "priceCurrency": "string",
33 - "totalPrice": 0,
34 - "agentCommissionPercent": 0,
35 - "agentCommissionAmount": 0,
36 - "includedExtrasAmount": 0,
37 - "priceDifference": 0,
38 - "hotel": {
39 - "hotelPriceId": "string",
40 - "providerId": 0,
41 - "hotelName": "string",
42 - "hotelCode": "string",
43 - "nigths": 0,
44 - "mealPlan": "string",
45 - "hotelClass": "string",
46 - "availabilityType": "OnRequest",
47 - "availableRoomsCount": 0,
48 - "fewRooms": true,
49 - "roomCategoryCode": "string",
50 - "roomCategoryName": "string",
51 - "placementTypeName": "string",
52 - "placementDescription": "string",
53 - "checkInDate": "2023-12-18T14:03:07.553Z",
54 - "checkOutDate": "2023-12-18T14:03:07.553Z",
55 - "adults": 0,
56 - "children": 0,
57 - "districtUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
58 - "districtName": "string",
59 - "cityUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
60 - "cityName": "string",
61 - "countryCode": "string",
62 - "countryName": "string",
63 - "hasAlcohol": true,
64 - "hasFreeWifi": true,
65 - "hasMetro": true,
66 - "hasPool": true,
67 - "hasMall": true,
68 - "cancellationPolicyDescription": "string",
69 - "cancellationPolicy": {
70 - "cancellationPolicyCode": "string",
71 - "noShowChargeValue": 0,
72 - "noShowChargeValueType": "string",
73 - "earlyDepartureChargeValue": 0,
74 - "earlyDepartureChargeValueType": "string",
75 - "conditions": [
76 - {
77 - "timeunits": 0,
78 - "timeunitType": "string",
79 - "timeOffsetTypeName": "string",
80 - "chargeValue": 0,
81 - "chargeValueType": "string"
82 - }
83 - ]
84 - }
85 - },
86 - "flight": {
87 - "id": "string",
88 - "departureDate": "2023-12-18T14:03:07.553Z",
89 - "returnDate": "2023-12-18T14:03:07.553Z",
90 - "departureTicketsLeft": 0,
91 - "returnTicketsLeft": 0,
92 - "departureAvailabilityType": "OnRequest",
93 - "returnAvailabilityType": "OnRequest",
94 - "isTwoWay": true,
95 - "departureSegments": [
96 - {
97 - "airlineCode": "string",
98 - "airlineName": "string",
99 - "flightCode": "string",
100 - "class": "string",
101 - "lugageWeight": 0,
102 - "handLugageWeight": 0,
103 - "departureFlightDate": "2023-12-18T14:03:07.553Z",
104 - "departureCountryName": "string",
105 - "departureCityName": "string",
106 - "departureAirportCode": "string",
107 - "departureAirportName": "string",
108 - "departureTerminalCode": "string",
109 - "arrivalFlightDate": "2023-12-18T14:03:07.553Z",
110 - "arrivalCountryName": "string",
111 - "arrivalCityName": "string",
112 - "arrivalAirportCode": "string",
113 - "arrivalAirportName": "string",
114 - "arrivalTerminalCode": "string",
115 - "flightDuration": "string",
116 - "baggages": [
117 - {
118 - "baggageCode": "string",
119 - "description": "string",
120 - "price": 0,
121 - "currency": "string",
122 - "included": true
123 - }
124 - ]
125 - }
126 - ],
127 - "returnSegments": [
128 - {
129 - "airlineCode": "string",
130 - "airlineName": "string",
131 - "flightCode": "string",
132 - "class": "string",
133 - "lugageWeight": 0,
134 - "handLugageWeight": 0,
135 - "departureFlightDate": "2023-12-18T14:03:07.553Z",
136 - "departureCountryName": "string",
137 - "departureCityName": "string",
138 - "departureAirportCode": "string",
139 - "departureAirportName": "string",
140 - "departureTerminalCode": "string",
141 - "arrivalFlightDate": "2023-12-18T14:03:07.553Z",
142 - "arrivalCountryName": "string",
143 - "arrivalCityName": "string",
144 - "arrivalAirportCode": "string",
145 - "arrivalAirportName": "string",
146 - "arrivalTerminalCode": "string",
147 - "flightDuration": "string",
148 - "baggages": [
149 - {
150 - "baggageCode": "string",
151 - "description": "string",
152 - "price": 0,
153 - "currency": "string",
154 - "included": true
155 - }
156 - ]
157 - }
158 - ]
159 - },
160 - "extraServices": [
161 - {
162 - "extraServiceCode": "string",
163 - "extraServiceTypeCode": "string",
164 - "isMandatory": 0,
165 - "extraServiceName": "string",
166 - "minimalServiceAmount": 0,
167 - "includedPriceCode": "string",
168 - "prices": [
169 - {
170 - "extraServicePriceCode": "string",
171 - "displayName": "string",
172 - "restrictionInfo": "string",
173 - "additionalInfo": "string",
174 - "price": 0,
175 - "extraPrice": 0,
176 - "currency": "string"
177 - }
178 - ]
179 - }
180 - ],
181 - "insurancePrice": {
182 - "name": "string",
183 - "price": 0,
184 - "priceSurcarge": 0,
185 - "actualStartDate": "2023-12-18T14:03:07.553Z",
186 - "actualEndDate": "2023-12-18T14:03:07.553Z",
187 - "optional": true,
188 - "includedInPackagePrice": true
189 - },
190 - "cacheKey": "string"
191 - }
30 + "departureCountryCode": "string",
31 + "departureCityUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
32 + "arrivalCountryCode": "string",
33 + "arrivalLocations": [
34 + {
35 + "type": "string",
36 + "parent": "string",
37 + "label": "string",
38 + "subLabel": "string",
39 + "value": "string",
40 + "tag": "string"
41 + }
42 + ],
43 + "checkInDate": "2023-12-14T13:43:54.766Z",
44 + "checkInDateTo": "2023-12-14T13:43:54.766Z",
45 + "checkOutDate": "2023-12-14T13:43:54.766Z",
46 + "stayDays": 0,
47 + "stayDaysTo": 0,
48 + "departureDate": "2023-12-14T13:43:54.766Z",
49 + "returnDate": "2023-12-14T13:43:54.766Z",
50 + "airlineCode": "string",
51 + "ticketType": "string",
52 + "directFlightsOnly": true,
53 + "longConnectTime": true,
54 + "adults": 0,
55 + "children": 0,
56 + "childrenAges": [
57 + 0
58 + ],
59 + "extendedSearch": true,
60 + "totalPriceFrom": 0,
61 + "totalPriceTo": 0,
62 + "recommended": true,
63 + "popular": true,
64 + "freeSale": true,
65 + "groupByHotel": true,
66 + "hotelCodes": [
67 + "string"
68 + ],
69 + "mealPlans": [
70 + "string"
71 + ],
72 + "hotelClasses": [
73 + "string"
74 + ],
75 + "hotelTypes": [
76 + "CityHotel"
77 + ],
78 + "hotelServices": [
79 + "HasAlcohol"
80 + ],
81 + "pagingId": "string",
82 + "pageNumber": 0,
83 + "pageRowCount": 0
192 192  }
193 193  {{/code}}
194 194  
... ... @@ -197,8 +197,13 @@
197 197  
198 198  {{code language="json"}}
199 199  {
92 + "error": true,
93 + "errorCode": "string",
94 + "errorDescription": "string",
95 + "userErrorDescription": "string",
200 200   "packages": [
201 201   {
98 + "cacheKey": "string",
202 202   "id": "string",
203 203   "priceCurrency": "string",
204 204   "totalPrice": 0,
... ... @@ -221,8 +221,8 @@
221 221   "roomCategoryName": "string",
222 222   "placementTypeName": "string",
223 223   "placementDescription": "string",
224 - "checkInDate": "2023-12-18T14:03:10.148Z",
225 - "checkOutDate": "2023-12-18T14:03:10.148Z",
121 + "checkInDate": "2023-12-14T13:47:13.396Z",
122 + "checkOutDate": "2023-12-14T13:47:13.396Z",
226 226   "adults": 0,
227 227   "children": 0,
228 228   "districtUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
... ... @@ -256,8 +256,8 @@
256 256   },
257 257   "flight": {
258 258   "id": "string",
259 - "departureDate": "2023-12-18T14:03:10.148Z",
260 - "returnDate": "2023-12-18T14:03:10.148Z",
156 + "departureDate": "2023-12-14T13:47:13.396Z",
157 + "returnDate": "2023-12-14T13:47:13.396Z",
261 261   "departureTicketsLeft": 0,
262 262   "returnTicketsLeft": 0,
263 263   "departureAvailabilityType": "OnRequest",
... ... @@ -271,13 +271,13 @@
271 271   "class": "string",
272 272   "lugageWeight": 0,
273 273   "handLugageWeight": 0,
274 - "departureFlightDate": "2023-12-18T14:03:10.148Z",
171 + "departureFlightDate": "2023-12-14T13:47:13.396Z",
275 275   "departureCountryName": "string",
276 276   "departureCityName": "string",
277 277   "departureAirportCode": "string",
278 278   "departureAirportName": "string",
279 279   "departureTerminalCode": "string",
280 - "arrivalFlightDate": "2023-12-18T14:03:10.148Z",
177 + "arrivalFlightDate": "2023-12-14T13:47:13.396Z",
281 281   "arrivalCountryName": "string",
282 282   "arrivalCityName": "string",
283 283   "arrivalAirportCode": "string",
... ... @@ -303,13 +303,13 @@
303 303   "class": "string",
304 304   "lugageWeight": 0,
305 305   "handLugageWeight": 0,
306 - "departureFlightDate": "2023-12-18T14:03:10.148Z",
203 + "departureFlightDate": "2023-12-14T13:47:13.396Z",
307 307   "departureCountryName": "string",
308 308   "departureCityName": "string",
309 309   "departureAirportCode": "string",
310 310   "departureAirportName": "string",
311 311   "departureTerminalCode": "string",
312 - "arrivalFlightDate": "2023-12-18T14:03:10.148Z",
209 + "arrivalFlightDate": "2023-12-14T13:47:13.396Z",
313 313   "arrivalCountryName": "string",
314 314   "arrivalCityName": "string",
315 315   "arrivalAirportCode": "string",
... ... @@ -353,14 +353,16 @@
353 353   "name": "string",
354 354   "price": 0,
355 355   "priceSurcarge": 0,
356 - "actualStartDate": "2023-12-18T14:03:10.148Z",
357 - "actualEndDate": "2023-12-18T14:03:10.148Z",
253 + "actualStartDate": "2023-12-14T13:47:13.396Z",
254 + "actualEndDate": "2023-12-14T13:47:13.396Z",
358 358   "optional": true,
359 359   "includedInPackagePrice": true
360 - },
361 - "cacheKey": "string"
257 + }
362 362   }
363 - ]
259 + ],
260 + "pagingId": "string",
261 + "pageNumber": 0,
262 + "pageCount": 0
364 364  }
365 365  {{/code}}
366 366  
... ... @@ -375,10 +375,19 @@
375 375  === Schema ===
376 376  
377 377  {{success}}
378 -GetOtherFlightsResponse{
277 +SearchTourPackagesResponse{
379 379  
279 +|error|boolean
280 +|errorCode|string
281 +nullable: true
282 +|errorDescription|string
283 +nullable: true
284 +|userErrorDescription|string
285 +nullable: true
380 380  |packages|[
381 381  nullable: trueTourPackage{(((
288 +|cacheKey|string
289 +nullable: true
382 382  |id|string
383 383  nullable: true
384 384  |priceCurrency|string
... ... @@ -631,11 +631,13 @@
631 631  
632 632  }
633 633  )))
634 -|cacheKey|string
635 -nullable: true
636 636  
637 637  }]
638 638  )))
545 +|pagingId|string
546 +nullable: true
547 +|pageNumber|integer($int64)
548 +|pageCount|integer($int64)
639 639  
640 640  }
641 641  {{/success}}