Wiki source code of CalcPackage
Version 6.1 by Giorgi Mdivnishvili on 2023/12/15 16:08
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | {{box cssClass="floatinginfobox" title="**Contents**"}} |
| |
2.1 | 2 | |
| 3 | |||
| |
1.1 | 4 | {{toc/}} |
| 5 | {{/box}} | ||
| 6 | |||
| |
2.1 | 7 | = Method Description = |
| |
1.1 | 8 | |
| |
2.1 | 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. |
| |
1.1 | 10 | |
| 11 | |||
| |
2.1 | 12 | == Endpoint URL - [POST] == |
| |
1.1 | 13 | |
| |
2.1 | 14 | {{info}} |
| |
3.1 | 15 | [[https:~~/~~/online-api.kazunion.com/api/OnlyAviaPackages/CalcPackage>>https://online-api.kazunion.com/api/OnlyAviaPackages/CalcPackage]] |
| |
2.1 | 16 | {{/info}} |
| |
1.1 | 17 | |
| 18 | |||
| |
2.1 | 19 | == Request Parameters == |
| |
1.1 | 20 | |
| |
2.1 | 21 | (% class="box infomessage" %) |
| 22 | ((( | ||
| 23 | None | ||
| 24 | ))) | ||
| |
1.1 | 25 | |
| 26 | |||
| |
2.1 | 27 | == Request Body == |
| |
1.1 | 28 | |
| |
2.1 | 29 | {{code language="Json"}} |
| |
3.1 | 30 | { |
| 31 | "packageId": "string" | ||
| |
2.1 | 32 | } |
| 33 | {{/code}} | ||
| |
1.1 | 34 | |
| |
2.1 | 35 | == (% id="cke_bm_10575S" style="display:none" %) (%%)Request Body example == |
| |
1.1 | 36 | |
| |
2.1 | 37 | {{code language="Json"}} |
| 38 | { | ||
| |
3.1 | 39 | "packageId": "onlyavia:2e822eb1-c0dd-49a4-9c78-e8a93444fb48:26581120-a15b-4a04-8ec1-570a312be3f3" |
| |
2.1 | 40 | } |
| 41 | {{/code}} | ||
| |
1.1 | 42 | |
| 43 | |||
| |
2.1 | 44 | == Response == |
| 45 | |||
| 46 | {{code language="json"}} | ||
| 47 | { | ||
| 48 | "error": true, | ||
| 49 | "errorCode": "string", | ||
| 50 | "errorDescription": "string", | ||
| 51 | "userErrorDescription": "string", | ||
| 52 | "package": { | ||
| 53 | "id": "string", | ||
| 54 | "priceCurrency": "string", | ||
| 55 | "totalPrice": 0, | ||
| |
3.1 | 56 | "flight": { |
| 57 | "id": "string", | ||
| 58 | "departureDate": "2023-12-14T13:38:04.073Z", | ||
| 59 | "returnDate": "2023-12-14T13:38:04.073Z", | ||
| 60 | "departureTicketsLeft": 0, | ||
| 61 | "returnTicketsLeft": 0, | ||
| 62 | "departureAvailabilityType": "OnRequest", | ||
| 63 | "returnAvailabilityType": "OnRequest", | ||
| 64 | "isTwoWay": true, | ||
| 65 | "departureSegments": [ | ||
| 66 | { | ||
| 67 | "airlineCode": "string", | ||
| 68 | "airlineName": "string", | ||
| 69 | "flightCode": "string", | ||
| 70 | "class": "string", | ||
| 71 | "lugageWeight": 0, | ||
| 72 | "handLugageWeight": 0, | ||
| 73 | "departureFlightDate": "2023-12-14T13:38:04.073Z", | ||
| 74 | "departureCountryName": "string", | ||
| 75 | "departureCityName": "string", | ||
| 76 | "departureAirportCode": "string", | ||
| 77 | "departureAirportName": "string", | ||
| 78 | "departureTerminalCode": "string", | ||
| 79 | "arrivalFlightDate": "2023-12-14T13:38:04.073Z", | ||
| 80 | "arrivalCountryName": "string", | ||
| 81 | "arrivalCityName": "string", | ||
| 82 | "arrivalAirportCode": "string", | ||
| 83 | "arrivalAirportName": "string", | ||
| 84 | "arrivalTerminalCode": "string", | ||
| 85 | "flightDuration": "string", | ||
| 86 | "baggages": [ | ||
| 87 | { | ||
| 88 | "baggageCode": "string", | ||
| 89 | "description": "string", | ||
| 90 | "price": 0, | ||
| 91 | "currency": "string", | ||
| 92 | "included": true | ||
| 93 | } | ||
| 94 | ] | ||
| 95 | } | ||
| 96 | ], | ||
| 97 | "returnSegments": [ | ||
| 98 | { | ||
| 99 | "airlineCode": "string", | ||
| 100 | "airlineName": "string", | ||
| 101 | "flightCode": "string", | ||
| 102 | "class": "string", | ||
| 103 | "lugageWeight": 0, | ||
| 104 | "handLugageWeight": 0, | ||
| 105 | "departureFlightDate": "2023-12-14T13:38:04.073Z", | ||
| 106 | "departureCountryName": "string", | ||
| 107 | "departureCityName": "string", | ||
| 108 | "departureAirportCode": "string", | ||
| 109 | "departureAirportName": "string", | ||
| 110 | "departureTerminalCode": "string", | ||
| 111 | "arrivalFlightDate": "2023-12-14T13:38:04.073Z", | ||
| 112 | "arrivalCountryName": "string", | ||
| 113 | "arrivalCityName": "string", | ||
| 114 | "arrivalAirportCode": "string", | ||
| 115 | "arrivalAirportName": "string", | ||
| 116 | "arrivalTerminalCode": "string", | ||
| 117 | "flightDuration": "string", | ||
| 118 | "baggages": [ | ||
| 119 | { | ||
| 120 | "baggageCode": "string", | ||
| 121 | "description": "string", | ||
| 122 | "price": 0, | ||
| 123 | "currency": "string", | ||
| 124 | "included": true | ||
| 125 | } | ||
| 126 | ] | ||
| 127 | } | ||
| 128 | ] | ||
| 129 | } | ||
| |
2.1 | 130 | } |
| 131 | } | ||
| 132 | {{/code}} | ||
| 133 | |||
| 134 | |||
| 135 | === Response example === | ||
| 136 | |||
| 137 | {{code language="Json"}} | ||
| |
3.1 | 138 | error |
| |
2.1 | 139 | {{/code}} |
| 140 | |||
| 141 | |||
| 142 | === Schema === | ||
| 143 | |||
| |
6.1 | 144 | {{success}} |
| |
4.1 | 145 | CalcOnlyAviaPackageResponse{ |
| |
6.1 | 146 | |
| 147 | |error|boolean | ||
| 148 | |errorCode|string | ||
| 149 | nullable: true | ||
| 150 | |errorDescription|string | ||
| 151 | nullable: true | ||
| 152 | |userErrorDescription|string | ||
| 153 | nullable: true | ||
| 154 | |package|OnlyAviaPackage{((( | ||
| 155 | |id|string | ||
| 156 | nullable: true | ||
| 157 | |priceCurrency|string | ||
| 158 | nullable: true | ||
| 159 | |totalPrice|number($double) | ||
| 160 | |flight|PackageFlight{((( | ||
| 161 | |id|string | ||
| 162 | nullable: true | ||
| 163 | |departureDate|string($date-time) | ||
| 164 | |returnDate|string($date-time) | ||
| 165 | nullable: true | ||
| 166 | |departureTicketsLeft|integer($int32) | ||
| 167 | |returnTicketsLeft|integer($int32) | ||
| 168 | |departureAvailabilityType|FlightAvailabilityTypestringEnum: | ||
| 169 | [ OnRequest, FreeSale, FewPlaces, StopSale ] | ||
| 170 | |returnAvailabilityType|FlightAvailabilityTypestringEnum: | ||
| 171 | [ OnRequest, FreeSale, FewPlaces, StopSale ] | ||
| 172 | |isTwoWay|boolean | ||
| 173 | |departureSegments|[ | ||
| 174 | nullable: trueFlightSegment{((( | ||
| 175 | |airlineCode|string | ||
| 176 | nullable: true | ||
| 177 | |airlineName|string | ||
| 178 | nullable: true | ||
| 179 | |flightCode|string | ||
| 180 | nullable: true | ||
| 181 | |class|string | ||
| 182 | nullable: true | ||
| 183 | |lugageWeight|number($double) | ||
| 184 | |handLugageWeight|number($double) | ||
| 185 | |departureFlightDate|string($date-time) | ||
| 186 | |departureCountryName|string | ||
| 187 | nullable: true | ||
| 188 | |departureCityName|string | ||
| 189 | nullable: true | ||
| 190 | |departureAirportCode|string | ||
| 191 | nullable: true | ||
| 192 | |departureAirportName|string | ||
| 193 | nullable: true | ||
| 194 | |departureTerminalCode|string | ||
| 195 | nullable: true | ||
| 196 | |arrivalFlightDate|string($date-time) | ||
| 197 | |arrivalCountryName|string | ||
| 198 | nullable: true | ||
| 199 | |arrivalCityName|string | ||
| 200 | nullable: true | ||
| 201 | |arrivalAirportCode|string | ||
| 202 | nullable: true | ||
| 203 | |arrivalAirportName|string | ||
| 204 | nullable: true | ||
| 205 | |arrivalTerminalCode|string | ||
| 206 | nullable: true | ||
| 207 | |flightDuration|string | ||
| 208 | nullable: true | ||
| 209 | |baggages|[ | ||
| 210 | nullable: trueBaggage{((( | ||
| 211 | |baggageCode|string | ||
| 212 | nullable: true | ||
| 213 | |description|string | ||
| 214 | nullable: true | ||
| 215 | |price|number($double) | ||
| 216 | |currency|string | ||
| 217 | nullable: true | ||
| 218 | |included|boolean | ||
| 219 | |||
| |
5.1 | 220 | }] |
| |
6.1 | 221 | ))) |
| 222 | |||
| |
5.1 | 223 | }] |
| |
6.1 | 224 | ))) |
| 225 | |returnSegments|[ | ||
| 226 | nullable: trueFlightSegment{((( | ||
| 227 | |airlineCode|string | ||
| 228 | nullable: true | ||
| 229 | |airlineName|string | ||
| 230 | nullable: true | ||
| 231 | |flightCode|string | ||
| 232 | nullable: true | ||
| 233 | |class|string | ||
| 234 | nullable: true | ||
| 235 | |lugageWeight|number($double) | ||
| 236 | |handLugageWeight|number($double) | ||
| 237 | |departureFlightDate|string($date-time) | ||
| 238 | |departureCountryName|string | ||
| 239 | nullable: true | ||
| 240 | |departureCityName|string | ||
| 241 | nullable: true | ||
| 242 | |departureAirportCode|string | ||
| 243 | nullable: true | ||
| 244 | |departureAirportName|string | ||
| 245 | nullable: true | ||
| 246 | |departureTerminalCode|string | ||
| 247 | nullable: true | ||
| 248 | |arrivalFlightDate|string($date-time) | ||
| 249 | |arrivalCountryName|string | ||
| 250 | nullable: true | ||
| 251 | |arrivalCityName|string | ||
| 252 | nullable: true | ||
| 253 | |arrivalAirportCode|string | ||
| 254 | nullable: true | ||
| 255 | |arrivalAirportName|string | ||
| 256 | nullable: true | ||
| 257 | |arrivalTerminalCode|string | ||
| 258 | nullable: true | ||
| 259 | |flightDuration|string | ||
| 260 | nullable: true | ||
| 261 | |baggages|[ | ||
| 262 | nullable: trueBaggage{((( | ||
| 263 | |baggageCode|string | ||
| 264 | nullable: true | ||
| 265 | |description|string | ||
| 266 | nullable: true | ||
| 267 | |price|number($double) | ||
| 268 | |currency|string | ||
| 269 | nullable: true | ||
| 270 | |included|boolean | ||
| 271 | |||
| |
5.1 | 272 | }] |
| |
6.1 | 273 | ))) |
| 274 | |||
| |
5.1 | 275 | }] |
| |
6.1 | 276 | ))) |
| 277 | |||
| |
2.1 | 278 | } |
| |
6.1 | 279 | ))) |
| 280 | |||
| |
2.1 | 281 | } |
| |
6.1 | 282 | ))) |
| 283 | |||
| |
4.1 | 284 | } |
| |
6.1 | 285 | {{/success}} |
| 286 | |||
| 287 |