Changes for page 5. Get Price Details
Last modified by Giorgi Mdivnishvili on 2024/03/01 17:25
From version 8.1
edited by Giorgi Mdivnishvili
on 2024/03/01 17:25
on 2024/03/01 17:25
Change comment:
There is no comment for this version
To version 3.1
edited by Giorgi Mdivnishvili
on 2024/02/29 11:53
on 2024/02/29 11:53
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -10,7 +10,7 @@ 10 10 With the parameters provided in GetHotels and GetCities reponse, it’s avaible to search hotels with the desired parameters in Hotels Search. 11 11 12 12 13 -endpoint : [[https:~~/~~/testapi.rustaronline.com ~~/~~/api/Hotels/GetPriceDetails>>https://testapi.rustaronline.com//api/Hotels/GetPriceDetails]]13 +endpoint : [[https:~~/~~/testapi.rustaronline.com/api/Hotels/Search>>url:https://testapi.rustaronline.com/api/Hotels/Search]] 14 14 15 15 Method POST 16 16 ... ... @@ -41,28 +41,16 @@ 41 41 42 42 (% class="table-bordered" %) 43 43 (% class="info" %)|**Parameter**|**Value**|**Description** 44 -|** "contragentContactUID"**| "55a2fcfb-8378-4b73-ab1e-bc8e5c836f4e",|A unique code assigned to each application user 45 -|** "countryMask"**|"TR",|Country code, which can be retrieved in [[Get Cities>>Get Cities]] method, in parameter [countrycode] 44 +|** "MaxResultCount"**|2,|Maximum number of results to display 45 +|** "MaxHotelCount"**|2,|Maximum number of hotels to display results 46 +|** "contragentContactUID"**| "55a2fcfb-8378-4b73-ab1e-bc8e5c836f4e",|A unique code assigned to each application user 47 +|** "countryMask"**| "TR",|Country code, which can be retrieved in [[Get Cities>>Get Cities]] method, in parameter [countrycode] 46 46 |** "CheckInDate"**| "2024-05-06",|Check in date "YY-MM-DD" 47 47 |** "CheckOutDate"**| "2024-05-07",|Check out date "YY-MM-DD" 48 48 |** "Adults"**| 1,|number of Adults 49 49 |** "Children"**| 0,|Number of children 50 50 |** "ChildrenAges"**| "",|children ages, the must be separated with "," 51 -|((( 52 -**~ "priceCode"** 53 -)))|((( 54 -"CVNP", 55 -)))|**priceCode**code taken from [[Hotel Search>>doc:APIs.Calculate API.Hotel Search .WebHome]] method 56 -|((( 57 -**"roomCategoryCode"** 58 -)))|((( 59 -"TWTW", 60 -)))|**roomCategoryCode **code taken from [[Hotel Search >>doc:APIs.Calculate API.Hotel Search .WebHome]]method 61 -|((( 62 -**~ "hotelCode"** 63 -)))|((( 64 -"da9b081d-b963-4fb7-ad19-8c375ce60da1" 65 -)))|**hotelCode**code taken from [[Hotel Search >>doc:APIs.Calculate API.Hotel Search .WebHome]]method or [[Get Hotels>>Get Hotels]] 53 +|** "cityUID"**| "e1344ba0-5273-4fc1-b6c4-72446260f430"|Code of the city, which is available in method [[Get Cities>>Get Cities]] in parameter [cityid] 66 66 67 67 (% class="wikigeneratedid" %) 68 68 In case there is need to display hotels in whole country, no mater cities, it's possible to remove "arrivalCities" parameter. ... ... @@ -74,8 +74,8 @@ 74 74 { 75 75 "result": [ 76 76 { 77 - "resultID": 165644 8260000000001,78 - "hotelID": 177798,65 + "resultID": 1656447933000000001, 66 + "hotelID": 715569, 79 79 "providerID": 8, 80 80 "roomCategoryCode": "TWTW", 81 81 "roomCategoryName": "Deluxe Guest room, 2 Twins", ... ... @@ -107,9 +107,9 @@ 107 107 } 108 108 ] 109 109 }, 110 - "searchId": 170919 4519,98 + "searchId": 1709193102, 111 111 "hotelCode": "da9b081d-b963-4fb7-ad19-8c375ce60da1", 112 - "id": 165644 8260000000001,100 + "id": 1656447933000000001, 113 113 "hotel": { 114 114 "hotelCode": "da9b081d-b963-4fb7-ad19-8c375ce60da1", 115 115 "hotelName": "Delta Hotels Istanbul Halic",