Wiki source code of GetOtherFlights

Version 3.1 by Giorgi Mdivnishvili on 2023/12/18 18:03

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