Changes for page 2. CalcPackage

Last modified by Giorgi Mdivnishvili on 2024/04/12 18:58

From version 11.1
edited by Giorgi Mdivnishvili
on 2024/01/09 12:53
Change comment: There is no comment for this version
To version 12.2
edited by Giorgi Mdivnishvili
on 2024/04/12 18:58
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -39,10 +39,8 @@
39 39  
40 40  {{code language="Json"}}
41 41  {
42 - "packageId": "onlyhotel:c4e23e7e-3d54-4efa-a3db-88508230ce91:504f63ca-6dd5-4d84-8245-cf7e77ccff73",
43 - "extraServicePriceCodes": [
44 -
45 - ]
42 + "packageId": "onlyhotel:25a0ce83-047e-485a-8fd7-f2b5a7a1fa37:9963330c-2346-4330-b9cf-7abbb0f64636",
43 + "includeInsurance": false
46 46  }
47 47  {{/code}}
48 48  
... ... @@ -140,41 +140,47 @@
140 140  {{code language="Json"}}
141 141  {
142 142   "package": {
143 - "id": "onlyhotel:c4e23e7e-3d54-4efa-a3db-88508230ce91:504f63ca-6dd5-4d84-8245-cf7e77ccff73",
141 + "id": "onlyhotel:25a0ce83-047e-485a-8fd7-f2b5a7a1fa37:9963330c-2346-4330-b9cf-7abbb0f64636",
144 144   "priceCurrency": "USD",
145 - "totalPrice": 381.70,
143 + "totalPrice": 46.94,
146 146   "agentCommissionPercent": 0.00,
147 147   "agentCommissionAmount": 0.00,
148 148   "hotel": {
149 - "hotelPriceId": "504f63ca-6dd5-4d84-8245-cf7e77ccff73",
150 - "providerId": 13,
151 - "hotelName": "Golden Tulip Al Barsha Hotel",
152 - "hotelCode": "ed0820c5-29b0-4e1b-8bcf-9f3c181e7961",
153 - "nigths": 4,
147 + "hotelPriceId": "9963330c-2346-4330-b9cf-7abbb0f64636",
148 + "hotelName": "Royal Continental Hotel",
149 + "hotelCode": "03cf038c-df96-4926-af5f-0f285e600405",
150 + "nigths": 1,
154 154   "mealPlan": "RO",
155 155   "hotelClass": "4",
153 + "hotelColor": "#000000",
156 156   "availabilityType": "FreeSale",
157 157   "availableRoomsCount": 0,
158 158   "fewRooms": true,
159 - "roomCategoryCode": "e63ea5ac-4883-4059-bb0a-795a534bbbfb",
160 - "roomCategoryName": "Superior Twin",
161 - "placementTypeName": "SNGL + CHILD(6-11.99)sharing",
162 - "checkInDate": "2024-02-17T08:00:00.000Z",
163 - "checkOutDate": "2024-02-21T08:00:00.000Z",
164 - "adults": 1,
165 - "children": 1,
166 - "districtUID": "4c65f6ed-902b-4fd8-9419-af7884c22c5e",
167 - "districtName": "Al Barsha",
157 + "roomCategoryCode": "ff13e5ec-2116-46d1-9ff4-ae76be84ff91",
158 + "roomCategoryName": "Superior King Room",
159 + "placementTypeName": "DBL",
160 + "checkInDate": "2024-06-30T00:00:00.000",
161 + "checkOutDate": "2024-07-01T00:00:00.000",
162 + "adults": 2,
163 + "children": 0,
164 + "districtUID": "aaff2238-fa72-4900-83f8-a16990415547",
165 + "districtName": "Deira",
168 168   "cityUID": "f5185fa3-3f56-44ed-bf6b-80386a33caa2",
169 169   "cityName": "Dubai",
170 170   "countryCode": "AE",
171 171   "countryName": "United Arab Emirates",
172 - "hasAlcohol": true,
170 + "hasAlcohol": false,
173 173   "hasFreeWifi": true,
174 174   "hasMetro": false,
175 175   "hasPool": true,
176 176   "hasMall": false,
177 - "cancellationPolicyDescription": "Cancellation Policy: 15 Day Before Arrival: 100.00 %, Early Departure: 100.00 %, NoShow: 100.00 %",
175 + "infantMaxAge": 5.99,
176 + "childMinAge": 6.00,
177 + "childMaxAge": 11.99,
178 + "teenMinAge": 0.0,
179 + "teenMaxAge": 0.0,
180 + "adultMinAge": 12.00,
181 + "cancellationPolicyDescription": "Cancellation Policy: 1 Day Before Arrival: 1.00 Night, Early Departure: 100.00 %, NoShow: 100.00 %",
178 178   "cancellationPolicy": {
179 179   "noShowChargeValue": 100.00,
180 180   "noShowChargeValueType": "%",
... ... @@ -182,17 +182,30 @@
182 182   "earlyDepartureChargeValueType": "%",
183 183   "conditions": [
184 184   {
185 - "timeunits": 15,
189 + "timeunits": 1,
186 186   "timeunitType": "Day",
187 187   "timeOffsetTypeName": "Before Arrival",
188 - "chargeValue": 100.00,
189 - "chargeValueType": "%"
192 + "chargeValue": 1.00,
193 + "chargeValueType": "Night"
190 190   }
191 191   ]
192 192   }
193 193   },
194 - "extraServices": []
198 + "extraServices": [],
199 + "insurancePrice": {
200 + "name": "Insurance (10000 USD) with COVID coverage",
201 + "price": 8.96,
202 + "actualStartDate": "2024-06-30T00:00:00.000",
203 + "actualEndDate": "2024-07-01T00:00:00.000",
204 + "optional": true,
205 + "includedInPackagePrice": false
206 + },
207 + "sortCheckInOut": "30.06.2024-01.07.2024",
208 + "sortHotelName": "royal continental hotel",
209 + "sortDetails": "ro",
210 + "sortPlacement": "superior king room dbl"
195 195   },
212 + "refreshPriceResult": "Success",
196 196   "error": false
197 197  }
198 198  {{/code}}
... ... @@ -336,4 +336,25 @@
336 336  }
337 337  {{/success}}
338 338  
339 -
356 +
357 +
358 +== Important ==
359 +
360 +{{error}}
361 +=== Implementing Authorization in Subsequent Requests ===
362 +
363 +For every API request after the initial authentication, it's crucial to include the authorization token in the request header. This ensures your requests are authorized and can access the necessary resources. Here's how to properly include your token:
364 +
365 +* **Header Key:** Authorization
366 +* **Header Value:** Bearer [Your Token Here] - Use the bearer token provided in the initial authentication response. The authorization type should be specified as Bearer Token.
367 +
368 +Additionally, to ensure your requests are properly formatted and recognized, include the following headers:
369 +
370 +* **Content-Type:** Specify this header as application/json to indicate the format of the request body.
371 +* **Header Key:** X-nugios-timezone
372 +* **Header Value:** 240 - Adjust this value to match your local timezone offset in minutes.
373 +
374 +Incorporating these headers with their respective values is essential for the successful processing of your API requests.
375 +{{/error}}
376 +
377 +