Wiki source code of 2. GetOtherFlights
Version 13.1 by Giorgi Mdivnishvili on 2024/01/09 13:00
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{box cssClass="floatinginfobox" title="**Contents**"}} | ||
2 | |||
3 | |||
4 | {{toc/}} | ||
5 | {{/box}} | ||
6 | |||
7 | = Method Description = | ||
8 | |||
9 | Before book, it's possible to choose alternate flight options. with this method it's possible to in same dates find alternative flights. | ||
10 | |||
11 | |||
12 | == Endpoint URL - [POST] == | ||
13 | |||
14 | {{info}} | ||
15 | [[https:~~/~~/integration.kazunion.com/api/TourPackages/GetOtherFlights>>https://integration.kazunion.com/api/TourPackages/GetOtherFlights]] | ||
16 | {{/info}} | ||
17 | |||
18 | == Request Parameters == | ||
19 | |||
20 | (% class="box infomessage" %) | ||
21 | ((( | ||
22 | None | ||
23 | ))) | ||
24 | |||
25 | |||
26 | == Request Body == | ||
27 | |||
28 | {{code language="Json"}} | ||
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 | } | ||
192 | } | ||
193 | {{/code}} | ||
194 | |||
195 | |||
196 | == Response Body == | ||
197 | |||
198 | {{code language="json"}} | ||
199 | { | ||
200 | "packages": [ | ||
201 | { | ||
202 | "id": "string", | ||
203 | "priceCurrency": "string", | ||
204 | "totalPrice": 0, | ||
205 | "agentCommissionPercent": 0, | ||
206 | "agentCommissionAmount": 0, | ||
207 | "includedExtrasAmount": 0, | ||
208 | "priceDifference": 0, | ||
209 | "hotel": { | ||
210 | "hotelPriceId": "string", | ||
211 | "providerId": 0, | ||
212 | "hotelName": "string", | ||
213 | "hotelCode": "string", | ||
214 | "nigths": 0, | ||
215 | "mealPlan": "string", | ||
216 | "hotelClass": "string", | ||
217 | "availabilityType": "OnRequest", | ||
218 | "availableRoomsCount": 0, | ||
219 | "fewRooms": true, | ||
220 | "roomCategoryCode": "string", | ||
221 | "roomCategoryName": "string", | ||
222 | "placementTypeName": "string", | ||
223 | "placementDescription": "string", | ||
224 | "checkInDate": "2023-12-18T14:03:10.148Z", | ||
225 | "checkOutDate": "2023-12-18T14:03:10.148Z", | ||
226 | "adults": 0, | ||
227 | "children": 0, | ||
228 | "districtUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6", | ||
229 | "districtName": "string", | ||
230 | "cityUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6", | ||
231 | "cityName": "string", | ||
232 | "countryCode": "string", | ||
233 | "countryName": "string", | ||
234 | "hasAlcohol": true, | ||
235 | "hasFreeWifi": true, | ||
236 | "hasMetro": true, | ||
237 | "hasPool": true, | ||
238 | "hasMall": true, | ||
239 | "cancellationPolicyDescription": "string", | ||
240 | "cancellationPolicy": { | ||
241 | "cancellationPolicyCode": "string", | ||
242 | "noShowChargeValue": 0, | ||
243 | "noShowChargeValueType": "string", | ||
244 | "earlyDepartureChargeValue": 0, | ||
245 | "earlyDepartureChargeValueType": "string", | ||
246 | "conditions": [ | ||
247 | { | ||
248 | "timeunits": 0, | ||
249 | "timeunitType": "string", | ||
250 | "timeOffsetTypeName": "string", | ||
251 | "chargeValue": 0, | ||
252 | "chargeValueType": "string" | ||
253 | } | ||
254 | ] | ||
255 | } | ||
256 | }, | ||
257 | "flight": { | ||
258 | "id": "string", | ||
259 | "departureDate": "2023-12-18T14:03:10.148Z", | ||
260 | "returnDate": "2023-12-18T14:03:10.148Z", | ||
261 | "departureTicketsLeft": 0, | ||
262 | "returnTicketsLeft": 0, | ||
263 | "departureAvailabilityType": "OnRequest", | ||
264 | "returnAvailabilityType": "OnRequest", | ||
265 | "isTwoWay": true, | ||
266 | "departureSegments": [ | ||
267 | { | ||
268 | "airlineCode": "string", | ||
269 | "airlineName": "string", | ||
270 | "flightCode": "string", | ||
271 | "class": "string", | ||
272 | "lugageWeight": 0, | ||
273 | "handLugageWeight": 0, | ||
274 | "departureFlightDate": "2023-12-18T14:03:10.148Z", | ||
275 | "departureCountryName": "string", | ||
276 | "departureCityName": "string", | ||
277 | "departureAirportCode": "string", | ||
278 | "departureAirportName": "string", | ||
279 | "departureTerminalCode": "string", | ||
280 | "arrivalFlightDate": "2023-12-18T14:03:10.148Z", | ||
281 | "arrivalCountryName": "string", | ||
282 | "arrivalCityName": "string", | ||
283 | "arrivalAirportCode": "string", | ||
284 | "arrivalAirportName": "string", | ||
285 | "arrivalTerminalCode": "string", | ||
286 | "flightDuration": "string", | ||
287 | "baggages": [ | ||
288 | { | ||
289 | "baggageCode": "string", | ||
290 | "description": "string", | ||
291 | "price": 0, | ||
292 | "currency": "string", | ||
293 | "included": true | ||
294 | } | ||
295 | ] | ||
296 | } | ||
297 | ], | ||
298 | "returnSegments": [ | ||
299 | { | ||
300 | "airlineCode": "string", | ||
301 | "airlineName": "string", | ||
302 | "flightCode": "string", | ||
303 | "class": "string", | ||
304 | "lugageWeight": 0, | ||
305 | "handLugageWeight": 0, | ||
306 | "departureFlightDate": "2023-12-18T14:03:10.148Z", | ||
307 | "departureCountryName": "string", | ||
308 | "departureCityName": "string", | ||
309 | "departureAirportCode": "string", | ||
310 | "departureAirportName": "string", | ||
311 | "departureTerminalCode": "string", | ||
312 | "arrivalFlightDate": "2023-12-18T14:03:10.148Z", | ||
313 | "arrivalCountryName": "string", | ||
314 | "arrivalCityName": "string", | ||
315 | "arrivalAirportCode": "string", | ||
316 | "arrivalAirportName": "string", | ||
317 | "arrivalTerminalCode": "string", | ||
318 | "flightDuration": "string", | ||
319 | "baggages": [ | ||
320 | { | ||
321 | "baggageCode": "string", | ||
322 | "description": "string", | ||
323 | "price": 0, | ||
324 | "currency": "string", | ||
325 | "included": true | ||
326 | } | ||
327 | ] | ||
328 | } | ||
329 | ] | ||
330 | }, | ||
331 | "extraServices": [ | ||
332 | { | ||
333 | "extraServiceCode": "string", | ||
334 | "extraServiceTypeCode": "string", | ||
335 | "isMandatory": 0, | ||
336 | "extraServiceName": "string", | ||
337 | "minimalServiceAmount": 0, | ||
338 | "includedPriceCode": "string", | ||
339 | "prices": [ | ||
340 | { | ||
341 | "extraServicePriceCode": "string", | ||
342 | "displayName": "string", | ||
343 | "restrictionInfo": "string", | ||
344 | "additionalInfo": "string", | ||
345 | "price": 0, | ||
346 | "extraPrice": 0, | ||
347 | "currency": "string" | ||
348 | } | ||
349 | ] | ||
350 | } | ||
351 | ], | ||
352 | "insurancePrice": { | ||
353 | "name": "string", | ||
354 | "price": 0, | ||
355 | "priceSurcarge": 0, | ||
356 | "actualStartDate": "2023-12-18T14:03:10.148Z", | ||
357 | "actualEndDate": "2023-12-18T14:03:10.148Z", | ||
358 | "optional": true, | ||
359 | "includedInPackagePrice": true | ||
360 | }, | ||
361 | "cacheKey": "string" | ||
362 | } | ||
363 | ] | ||
364 | } | ||
365 | {{/code}} | ||
366 | |||
367 | |||
368 | === example === | ||
369 | |||
370 | {{code language="Json"}} | ||
371 | X | ||
372 | {{/code}} | ||
373 | |||
374 | |||
375 | === Schema === | ||
376 | |||
377 | {{success}} | ||
378 | GetOtherFlightsResponse{ | ||
379 | |||
380 | |packages|[ | ||
381 | nullable: trueTourPackage{((( | ||
382 | |id|string | ||
383 | nullable: true | ||
384 | |priceCurrency|string | ||
385 | nullable: true | ||
386 | |totalPrice|number($double) | ||
387 | |agentCommissionPercent|number($double) | ||
388 | |agentCommissionAmount|number($double) | ||
389 | |includedExtrasAmount|number($double) | ||
390 | |priceDifference|number($double) | ||
391 | |hotel|PackageHotel{((( | ||
392 | |hotelPriceId|string | ||
393 | nullable: true | ||
394 | |providerId|integer($int32) | ||
395 | |hotelName|string | ||
396 | nullable: true | ||
397 | |hotelCode|string | ||
398 | nullable: true | ||
399 | |nigths|integer($int32) | ||
400 | |mealPlan|string | ||
401 | nullable: true | ||
402 | |hotelClass|string | ||
403 | nullable: true | ||
404 | |availabilityType|RoomAvailabilityTypeEnumstringEnum: | ||
405 | [ OnRequest, FreeSale, StopSale ] | ||
406 | |availableRoomsCount|integer($int32) | ||
407 | |fewRooms|boolean | ||
408 | |roomCategoryCode|string | ||
409 | nullable: true | ||
410 | |roomCategoryName|string | ||
411 | nullable: true | ||
412 | |placementTypeName|string | ||
413 | nullable: true | ||
414 | |placementDescription|string | ||
415 | nullable: true | ||
416 | |checkInDate|string($date-time) | ||
417 | |checkOutDate|string($date-time) | ||
418 | |adults|integer($int32) | ||
419 | |children|integer($int32) | ||
420 | |districtUID|string($uuid) | ||
421 | nullable: true | ||
422 | |districtName|string | ||
423 | nullable: true | ||
424 | |cityUID|string($uuid) | ||
425 | nullable: true | ||
426 | |cityName|string | ||
427 | nullable: true | ||
428 | |countryCode|string | ||
429 | nullable: true | ||
430 | |countryName|string | ||
431 | nullable: true | ||
432 | |hasAlcohol|boolean | ||
433 | |hasFreeWifi|boolean | ||
434 | |hasMetro|boolean | ||
435 | |hasPool|boolean | ||
436 | |hasMall|boolean | ||
437 | |cancellationPolicyDescription|string | ||
438 | nullable: true | ||
439 | |cancellationPolicy|CancellationPolicyExchange{((( | ||
440 | |cancellationPolicyCode|string | ||
441 | nullable: true | ||
442 | |noShowChargeValue|number($double) | ||
443 | nullable: true | ||
444 | |noShowChargeValueType|string | ||
445 | nullable: true | ||
446 | |earlyDepartureChargeValue|number($double) | ||
447 | nullable: true | ||
448 | |earlyDepartureChargeValueType|string | ||
449 | nullable: true | ||
450 | |conditions|[ | ||
451 | nullable: trueCancellationPolicyConditionExchange{((( | ||
452 | |timeunits|integer($int32) | ||
453 | |timeunitType|string | ||
454 | nullable: true | ||
455 | |timeOffsetTypeName|string | ||
456 | nullable: true | ||
457 | |chargeValue|number($double) | ||
458 | nullable: true | ||
459 | |chargeValueType|string | ||
460 | nullable: true | ||
461 | |||
462 | }] | ||
463 | ))) | ||
464 | |||
465 | } | ||
466 | ))) | ||
467 | |||
468 | } | ||
469 | ))) | ||
470 | |flight|PackageFlight{((( | ||
471 | |id|string | ||
472 | nullable: true | ||
473 | |departureDate|string($date-time) | ||
474 | |returnDate|string($date-time) | ||
475 | nullable: true | ||
476 | |departureTicketsLeft|integer($int32) | ||
477 | |returnTicketsLeft|integer($int32) | ||
478 | |departureAvailabilityType|FlightAvailabilityTypestringEnum: | ||
479 | [ OnRequest, FreeSale, FewPlaces, StopSale ] | ||
480 | |returnAvailabilityType|FlightAvailabilityTypestringEnum: | ||
481 | [ OnRequest, FreeSale, FewPlaces, StopSale ] | ||
482 | |isTwoWay|boolean | ||
483 | |departureSegments|[ | ||
484 | nullable: trueFlightSegment{((( | ||
485 | |airlineCode|string | ||
486 | nullable: true | ||
487 | |airlineName|string | ||
488 | nullable: true | ||
489 | |flightCode|string | ||
490 | nullable: true | ||
491 | |class|string | ||
492 | nullable: true | ||
493 | |lugageWeight|number($double) | ||
494 | |handLugageWeight|number($double) | ||
495 | |departureFlightDate|string($date-time) | ||
496 | |departureCountryName|string | ||
497 | nullable: true | ||
498 | |departureCityName|string | ||
499 | nullable: true | ||
500 | |departureAirportCode|string | ||
501 | nullable: true | ||
502 | |departureAirportName|string | ||
503 | nullable: true | ||
504 | |departureTerminalCode|string | ||
505 | nullable: true | ||
506 | |arrivalFlightDate|string($date-time) | ||
507 | |arrivalCountryName|string | ||
508 | nullable: true | ||
509 | |arrivalCityName|string | ||
510 | nullable: true | ||
511 | |arrivalAirportCode|string | ||
512 | nullable: true | ||
513 | |arrivalAirportName|string | ||
514 | nullable: true | ||
515 | |arrivalTerminalCode|string | ||
516 | nullable: true | ||
517 | |flightDuration|string | ||
518 | nullable: true | ||
519 | |baggages|[ | ||
520 | nullable: trueBaggage{((( | ||
521 | |baggageCode|string | ||
522 | nullable: true | ||
523 | |description|string | ||
524 | nullable: true | ||
525 | |price|number($double) | ||
526 | |currency|string | ||
527 | nullable: true | ||
528 | |included|boolean | ||
529 | |||
530 | }] | ||
531 | ))) | ||
532 | |||
533 | }] | ||
534 | ))) | ||
535 | |returnSegments|[ | ||
536 | nullable: trueFlightSegment{((( | ||
537 | |airlineCode|string | ||
538 | nullable: true | ||
539 | |airlineName|string | ||
540 | nullable: true | ||
541 | |flightCode|string | ||
542 | nullable: true | ||
543 | |class|string | ||
544 | nullable: true | ||
545 | |lugageWeight|number($double) | ||
546 | |handLugageWeight|number($double) | ||
547 | |departureFlightDate|string($date-time) | ||
548 | |departureCountryName|string | ||
549 | nullable: true | ||
550 | |departureCityName|string | ||
551 | nullable: true | ||
552 | |departureAirportCode|string | ||
553 | nullable: true | ||
554 | |departureAirportName|string | ||
555 | nullable: true | ||
556 | |departureTerminalCode|string | ||
557 | nullable: true | ||
558 | |arrivalFlightDate|string($date-time) | ||
559 | |arrivalCountryName|string | ||
560 | nullable: true | ||
561 | |arrivalCityName|string | ||
562 | nullable: true | ||
563 | |arrivalAirportCode|string | ||
564 | nullable: true | ||
565 | |arrivalAirportName|string | ||
566 | nullable: true | ||
567 | |arrivalTerminalCode|string | ||
568 | nullable: true | ||
569 | |flightDuration|string | ||
570 | nullable: true | ||
571 | |baggages|[ | ||
572 | nullable: trueBaggage{((( | ||
573 | |baggageCode|string | ||
574 | nullable: true | ||
575 | |description|string | ||
576 | nullable: true | ||
577 | |price|number($double) | ||
578 | |currency|string | ||
579 | nullable: true | ||
580 | |included|boolean | ||
581 | |||
582 | }] | ||
583 | ))) | ||
584 | |||
585 | }] | ||
586 | ))) | ||
587 | |||
588 | } | ||
589 | ))) | ||
590 | |extraServices|[ | ||
591 | nullable: trueHotelExtraServiceBase{((( | ||
592 | |extraServiceCode|string | ||
593 | nullable: true | ||
594 | |extraServiceTypeCode|string | ||
595 | nullable: true | ||
596 | |isMandatory|integer($int32) | ||
597 | |extraServiceName|string | ||
598 | nullable: true | ||
599 | |minimalServiceAmount|number($double) | ||
600 | |includedPriceCode|string | ||
601 | nullable: true | ||
602 | |prices|[ | ||
603 | nullable: trueHotelExtraServicePriceBase{((( | ||
604 | |extraServicePriceCode|string | ||
605 | nullable: true | ||
606 | |displayName|string | ||
607 | nullable: true | ||
608 | |restrictionInfo|string | ||
609 | nullable: true | ||
610 | |additionalInfo|string | ||
611 | nullable: true | ||
612 | |price|number($double) | ||
613 | |extraPrice|number($double) | ||
614 | |currency|string | ||
615 | nullable: true | ||
616 | |||
617 | }] | ||
618 | ))) | ||
619 | |||
620 | }] | ||
621 | ))) | ||
622 | |insurancePrice|InsurancePrice{((( | ||
623 | |name|string | ||
624 | nullable: true | ||
625 | |price|number($double) | ||
626 | |priceSurcarge|number($double) | ||
627 | |actualStartDate|string($date-time) | ||
628 | |actualEndDate|string($date-time) | ||
629 | |optional|boolean | ||
630 | |includedInPackagePrice|boolean | ||
631 | |||
632 | } | ||
633 | ))) | ||
634 | |cacheKey|string | ||
635 | nullable: true | ||
636 | |||
637 | }] | ||
638 | ))) | ||
639 | |||
640 | } | ||
641 | {{/success}} | ||
642 | |||
643 |