Wiki source code of CalcPackage
Version 3.1 by Giorgi Mdivnishvili on 2023/12/14 12:46
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 | 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 - [GET] == | ||
13 | |||
14 | {{info}} | ||
15 | [[https:~~/~~/online-api.kazunion.com/api/OnlyHotelPackages/CalcPackage>>https://online-api.kazunion.com/api/OnlyHotelPackages/CalcPackage]] | ||
16 | {{/info}} | ||
17 | |||
18 | |||
19 | == Request Parameters == | ||
20 | |||
21 | (% class="box infomessage" %) | ||
22 | ((( | ||
23 | None | ||
24 | ))) | ||
25 | |||
26 | |||
27 | == Request Body == | ||
28 | |||
29 | {{code language="Json"}} | ||
30 | none{ | ||
31 | "packageId": "string", | ||
32 | "extraServicePriceCodes": [ | ||
33 | "string" | ||
34 | ] | ||
35 | } | ||
36 | {{/code}} | ||
37 | |||
38 | == (% id="cke_bm_10575S" style="display:none" %) (%%)Request Body example == | ||
39 | |||
40 | {{code language="Json"}} | ||
41 | { | ||
42 | "packageId": "onlyhotel:c4e23e7e-3d54-4efa-a3db-88508230ce91:504f63ca-6dd5-4d84-8245-cf7e77ccff73", | ||
43 | "extraServicePriceCodes": [ | ||
44 | |||
45 | ] | ||
46 | } | ||
47 | {{/code}} | ||
48 | |||
49 | |||
50 | == Response == | ||
51 | |||
52 | {{code language="json"}} | ||
53 | [ | ||
54 | { | ||
55 | "hotelCode": "string", | ||
56 | "hotelName": "string", | ||
57 | "hotelClass": "string", | ||
58 | "cityUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6", | ||
59 | "countryCode": "string", | ||
60 | "countryName": "string", | ||
61 | "districtUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6", | ||
62 | "cityName": "string", | ||
63 | "districtName": "string", | ||
64 | "hotelType": "CityHotel", | ||
65 | "latitude": "string", | ||
66 | "longitude": "string", | ||
67 | "hasAlcohol": true, | ||
68 | "hasFreeWifi": true, | ||
69 | "hasMetro": true, | ||
70 | "hasPool": true, | ||
71 | "hasMall": true | ||
72 | } | ||
73 | ] | ||
74 | {{/code}} | ||
75 | |||
76 | |||
77 | === Response example === | ||
78 | |||
79 | {{code language="Json"}} | ||
80 | { | ||
81 | "package": { | ||
82 | "id": "onlyhotel:c4e23e7e-3d54-4efa-a3db-88508230ce91:504f63ca-6dd5-4d84-8245-cf7e77ccff73", | ||
83 | "priceCurrency": "USD", | ||
84 | "totalPrice": 381.70, | ||
85 | "agentCommissionPercent": 0.00, | ||
86 | "agentCommissionAmount": 0.00, | ||
87 | "hotel": { | ||
88 | "hotelPriceId": "504f63ca-6dd5-4d84-8245-cf7e77ccff73", | ||
89 | "providerId": 13, | ||
90 | "hotelName": "Golden Tulip Al Barsha Hotel", | ||
91 | "hotelCode": "ed0820c5-29b0-4e1b-8bcf-9f3c181e7961", | ||
92 | "nigths": 4, | ||
93 | "mealPlan": "RO", | ||
94 | "hotelClass": "4", | ||
95 | "availabilityType": "FreeSale", | ||
96 | "availableRoomsCount": 0, | ||
97 | "fewRooms": true, | ||
98 | "roomCategoryCode": "e63ea5ac-4883-4059-bb0a-795a534bbbfb", | ||
99 | "roomCategoryName": "Superior Twin", | ||
100 | "placementTypeName": "SNGL + CHILD(6-11.99)sharing", | ||
101 | "checkInDate": "2024-02-17T08:00:00.000Z", | ||
102 | "checkOutDate": "2024-02-21T08:00:00.000Z", | ||
103 | "adults": 1, | ||
104 | "children": 1, | ||
105 | "districtUID": "4c65f6ed-902b-4fd8-9419-af7884c22c5e", | ||
106 | "districtName": "Al Barsha", | ||
107 | "cityUID": "f5185fa3-3f56-44ed-bf6b-80386a33caa2", | ||
108 | "cityName": "Dubai", | ||
109 | "countryCode": "AE", | ||
110 | "countryName": "United Arab Emirates", | ||
111 | "hasAlcohol": true, | ||
112 | "hasFreeWifi": true, | ||
113 | "hasMetro": false, | ||
114 | "hasPool": true, | ||
115 | "hasMall": false, | ||
116 | "cancellationPolicyDescription": "Cancellation Policy: 15 Day Before Arrival: 100.00 %, Early Departure: 100.00 %, NoShow: 100.00 %", | ||
117 | "cancellationPolicy": { | ||
118 | "noShowChargeValue": 100.00, | ||
119 | "noShowChargeValueType": "%", | ||
120 | "earlyDepartureChargeValue": 100.00, | ||
121 | "earlyDepartureChargeValueType": "%", | ||
122 | "conditions": [ | ||
123 | { | ||
124 | "timeunits": 15, | ||
125 | "timeunitType": "Day", | ||
126 | "timeOffsetTypeName": "Before Arrival", | ||
127 | "chargeValue": 100.00, | ||
128 | "chargeValueType": "%" | ||
129 | } | ||
130 | ] | ||
131 | } | ||
132 | }, | ||
133 | "extraServices": [] | ||
134 | }, | ||
135 | "error": false | ||
136 | } | ||
137 | {{/code}} | ||
138 | |||
139 | |||
140 | === Schema === | ||
141 | |||
142 | {{code language="none"}} | ||
143 | [Hotel{ | ||
144 | hotelCode string | ||
145 | nullable: true | ||
146 | hotelName string | ||
147 | nullable: true | ||
148 | hotelClass string | ||
149 | nullable: true | ||
150 | cityUID string($uuid) | ||
151 | nullable: true | ||
152 | countryCode string | ||
153 | nullable: true | ||
154 | countryName string | ||
155 | nullable: true | ||
156 | districtUID string($uuid) | ||
157 | nullable: true | ||
158 | cityName string | ||
159 | nullable: true | ||
160 | districtName string | ||
161 | nullable: true | ||
162 | hotelType HotelTypeEnumstring | ||
163 | Enum: | ||
164 | [ CityHotel, BeachHotel, SecondLineBeach ] | ||
165 | latitude string | ||
166 | nullable: true | ||
167 | longitude string | ||
168 | nullable: true | ||
169 | hasAlcohol boolean | ||
170 | hasFreeWifi boolean | ||
171 | hasMetro boolean | ||
172 | hasPool boolean | ||
173 | hasMall boolean | ||
174 | }] | ||
175 | {{/code}} |