Changes for page 1. SearchHotelPrices
Last modified by Giorgi Mdivnishvili on 2024/11/06 10:47
From version 8.1
edited by Giorgi Mdivnishvili
on 2023/12/26 15:04
on 2023/12/26 15:04
Change comment:
There is no comment for this version
To version 13.1
edited by Giorgi Mdivnishvili
on 2024/01/10 17:54
on 2024/01/10 17:54
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -6,13 +6,13 @@ 6 6 7 7 = Method Description = 8 8 9 -Th einitialmethodoftheintegration processisauthorization. You willbeprovidedwithatestuserusername and passwordtogeneratehe accesstokenthatyouwillneedtopassinall thefollowingmethods.9 +This method is used to retrieve only hotel prices. It's possible to receive data as current dates, also in date ranges using parameter "stayDays": 0, "stayDaysTo": 0. the maximum difference between the days can be 7. Below you can see examples. 10 10 11 11 12 12 == Endpoint URL - [POST] == 13 13 14 14 {{info}} 15 -[[https:~~/~~/ online-api.kazunion.com/api/OnlyHotelPackages/SearchHotelPrices>>https://online-api.kazunion.com/api/OnlyHotelPackages/SearchHotelPrices]]15 +[[https:~~/~~/integration.kazunion.com/api/OnlyHotelPackages/SearchHotelPrices>>https://integration.kazunion.com/api/OnlyHotelPackages/SearchHotelPrices]] 16 16 {{/info}} 17 17 18 18 ... ... @@ -38,9 +38,9 @@ 38 38 "tag": "string" 39 39 } 40 40 ], 41 - "checkInDate": "2023-12-14 T08:09:42.770Z",42 - "checkInDateTo": "2023-12-14 T08:09:42.770Z",43 - "checkOutDate": "2023-12-14 T08:09:42.770Z",41 + "checkInDate": "2023-12-14", 42 + "checkInDateTo": "2023-12-14", 43 + "checkOutDate": "2023-12-14", 44 44 "stayDays": 0, 45 45 "stayDaysTo": 0, 46 46 "adults": 0, ... ... @@ -82,8 +82,8 @@ 82 82 {{code language="Json"}} 83 83 { 84 84 "countryCode": "AE", 85 - "checkInDate": "2024-02-15 T08:00:00.000Z",86 - "checkInDateTo": "2024-02-20 T08:00:00.000Z",85 + "checkInDate": "2024-02-15", 86 + "checkInDateTo": "2024-02-20", 87 87 88 88 "stayDays": 4, 89 89 "stayDaysTo": 6, ... ... @@ -346,8 +346,41 @@ 346 346 {{/success}} 347 347 348 348 349 - Important ==349 +== Definitions == 350 350 351 + 352 +=== Paging and Caching === 353 + 354 +During the first request, Paging id must be empty like this ( "pagingId": "",) pagenumber is the number of the page, pagerowcount means number of the given result in one page. So in the first request we can search like this: 355 + 356 + 357 +==== first request ==== 358 + 359 +{{code language="Json"}} 360 + { 361 + "pagingId": "", 362 + "pageNumber": 1, 363 + "pageRowCount":10 364 + } 365 +{{/code}} 366 + 367 + 368 +==== Request with caching ==== 369 + 370 +as we receive response, in the end we can see pagingId- number, chich we can use for caching, and then just switch pagenumbers. for cleaning cache, it's important to make new request without pagingID 371 + 372 +{{code language="Json"}} 373 + { 374 + "pagingId": "80", 375 + "pageNumber": 1, 376 + "pageRowCount":10 377 + } 378 +{{/code}} 379 + 380 + 381 + 382 +== Important == 383 + 351 351 {{error}} 352 352 It's Important to in every other request header, put Auth token 353 353 ... ... @@ -364,4 +364,3 @@ 364 364 365 365 **Value **- 240 366 366 {{/error}} 367 -