Changes for page 1. SearchOnlyAvia

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

From version 6.1
edited by Giorgi Mdivnishvili
on 2023/12/18 12:50
Change comment: There is no comment for this version
To version 12.1
edited by Giorgi Mdivnishvili
on 2024/01/10 17:52
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -SearchOnlyAviaPackages
1 +1. SearchOnlyAviaPackages
Content
... ... @@ -6,13 +6,13 @@
6 6  
7 7  = Method Description =
8 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.
9 +This method is used to find only avia packages (only avia tickets) with all flight details.
10 10  
11 11  
12 12  == Endpoint URL - [POST] ==
13 13  
14 14  {{info}}
15 -[[https:~~/~~/online-api.kazunion.com/api/OnlyAviaPackages/SearchOnlyAviaPackages>>https://online-api.kazunion.com/api/OnlyAviaPackages/SearchOnlyAviaPackages]]
15 +[[https:~~/~~/integration.kazunion.com/api/OnlyAviaPackages/SearchOnlyAviaPackages>>https://integration.kazunion.com/api/OnlyAviaPackages/SearchOnlyAviaPackages]]
16 16  {{/info}}
17 17  
18 18  
... ... @@ -30,8 +30,8 @@
30 30  {
31 31   "flightRequests": [
32 32   {
33 - "departureDate": "2023-12-18T08:33:20.358Z",
34 - "returnDate": "2023-12-18T08:33:20.358Z",
33 + "departureDate": "2023-12-18",
34 + "returnDate": "2023-12-18",
35 35   "departureLocation": "string",
36 36   "departureType": "string",
37 37   "arrivalLocation": "string",
... ... @@ -52,8 +52,9 @@
52 52  }
53 53  {{/code}}
54 54  
55 -== (% id="cke_bm_10575S" style="display:none" %) (%%)Request Body example ==
56 56  
56 +== Request Body example ==
57 +
57 57  {{code language="Json"}}
58 58  {
59 59   "flightRequests": [
... ... @@ -60,10 +60,10 @@
60 60   {
61 61   "arrivalLocation": "DXB",
62 62   "arrivalType": "airport",
63 - "departureDate": "2023-12-22T20:00:00.000Z",
64 + "departureDate": "2023-12-22",
64 64   "departureLocation": "ALA",
65 65   "departureType": "airport",
66 - "returnDate": "2023-12-28T20:00:00.000Z"
67 + "returnDate": "2023-12-28"
67 67   }
68 68   ],
69 69   "adults": 1,
... ... @@ -764,4 +764,23 @@
764 764  }
765 765  {{/success}}
766 766  
767 -
768 +
769 +
770 +== Important ==
771 +
772 +{{error}}
773 +It's Important to in every other request header, put Auth token
774 +
775 +**Key **- Authorization
776 +
777 +**Value **- Bearer Token what is given in this response.
778 +
779 +
780 +**also note in headers that:**
781 +
782 +Content-Type - application/json
783 +
784 +**Key - **X-nugios-timezone
785 +
786 +**Value **- 240
787 +{{/error}}