Changes for page 2. Hotel Prices
Last modified by Giorgi Mdivnishvili on 2024/02/27 12:01
From version 6.1
edited by Giorgi Mdivnishvili
on 2024/02/27 09:52
on 2024/02/27 09:52
Change comment:
There is no comment for this version
To version 13.1
edited by Giorgi Mdivnishvili
on 2024/02/27 12:00
on 2024/02/27 12:00
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,21 +1,41 @@ 1 -**https:~/~/restapi.rustaronline.com/v1.01/api/hotelprices** 1 +{{box cssClass="floatinginfobox" title="**Contents**"}} 2 + 2 2 3 -Method: GET 4 +{{toc/}} 5 +{{/box}} 4 4 5 - Parametersto pass: agentid,agentpassword, hotelid7 += Method Description = 6 6 7 - SampleURL:9 +>The method returns the object with three list of prices for specified hotel. ContractPrices, Promotions, PromotionsWithConditionsNote: Parameter removedublicates is optional, used for removing duplicate seasons from the list and split prices by seasons. False is default value of this parameter. 8 8 9 -**https:~/~/restapi.rustaronline.com/v1.01/api/hotelprices?agentid=test.test&agentpassword=TestP@ssw0rd&hotelid=d6f9299f-5d94-4955-85e7-003e0383023c&removedublicates=false** 10 10 11 11 12 - Themethodreturnstheobjectwiththree listf prices for specifiedhotel.ContractPrices,Promotions, PromotionsWithConditions13 +== Endpoint URL - [Method - GET] == 13 13 14 -Note: Parameter removedublicates is optional, used for removing duplicate seasons from the list and split prices by seasons. False is default value of this parameter. 15 +(% class="box infomessage" %) 16 +((( 17 +[[https:~~/~~/restapi.rustaronline.com/v1.01/api/hotelprices>>https://restapi.rustaronline.com/v1.01/api/hotelprices]] 18 +))) 15 15 16 - Returnvalueexample:20 +Parameters to pass: agentid, agentpassword, hotelid 17 17 22 +Sample URL: 18 18 24 +== Request Parameters == 25 + 26 +(% class="box infomessage" %) 27 +((( 28 +(% class="table-bordered" %) 29 +|**Key**|**Value**|**Request URL** 30 +|agentid|test.test|**[[https:~~/~~/restapi.rustaronline.com/v1.01/api/hotelprices?agentid=test.test&agentpassword=TestP@ssw0rd&hotelid=d6f9299f-5d94-4955-85e7-003e0383023c&removedublicates=false>>https://restapi.rustaronline.com/v1.01/api/hotelprices?agentid=test.test&agentpassword=TestP@ssw0rd&hotelid=d6f9299f-5d94-4955-85e7-003e0383023c&removedublicates=false]]** 31 +|agentpassword|[[TestP@ssw0rd>>mailto:TestP@ssw0rd]]|**[[https:~~/~~/restapi.rustaronline.com/v1.01/api/hotelprices?agentid=test.test&agentpassword=TestP@ssw0rd&hotelid=d6f9299f-5d94-4955-85e7-003e0383023c&removedublicates=false>>https://restapi.rustaronline.com/v1.01/api/hotelprices?agentid=test.test&agentpassword=TestP@ssw0rd&hotelid=d6f9299f-5d94-4955-85e7-003e0383023c&removedublicates=false]]** 32 +|hotelid|d6f9299f-5d94-4955-85e7-003e0383023c|**[[https:~~/~~/restapi.rustaronline.com/v1.01/api/hotelprices?agentid=test.test&agentpassword=TestP@ssw0rd&hotelid=d6f9299f-5d94-4955-85e7-003e0383023c&removedublicates=false>>https://restapi.rustaronline.com/v1.01/api/hotelprices?agentid=test.test&agentpassword=TestP@ssw0rd&hotelid=d6f9299f-5d94-4955-85e7-003e0383023c&removedublicates=false]]** 33 +|removedublicates|false| 34 +))) 35 + 36 + 37 +== Return value example: == 38 + 19 19 {{code language="json"}} 20 20 { 21 21 "Code": "00", ... ... @@ -231,6 +231,9 @@ 231 231 {{/code}} 232 232 233 233 254 +== Definitions == 255 + 256 +(% class="table-bordered" %) 234 234 (% class="info" %)|**Value**|((( 235 235 **Description** 236 236 ))) ... ... @@ -274,5 +274,7 @@ 274 274 |**isactive**| Boolean. True if the price is active and can be used. False if the price is deactivated/inactive. 275 275 276 276 277 - 300 +(% class="box errormessage" %) 301 +((( 278 278 Please be noted, that the prices are already calculated with all possible discounts. 303 +)))