Changes for page 2. Hotel Prices

Last modified by Giorgi Mdivnishvili on 2024/02/27 12:01

From version 11.1
edited by Giorgi Mdivnishvili
on 2024/02/27 11:58
Change comment: There is no comment for this version
To version 6.1
edited by Giorgi Mdivnishvili
on 2024/02/27 09:52
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,39 +1,18 @@
1 -{{box cssClass="floatinginfobox" title="**Contents**"}}
2 -
1 +**https:~/~/restapi.rustaronline.com/v1.01/api/hotelprices**
3 3  
4 -{{toc/}}
5 -{{/box}}
3 +Method: GET
6 6  
7 -= Method Description =
8 -
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.
10 -
11 -
12 -
13 -== Endpoint URL - [Method - GET] ==
14 -
15 -(% class="box infomessage" %)
16 -(((
17 -[[https:~~/~~/restapi.rustaronline.com/v1.01/api/hotelprices>>https://restapi.rustaronline.com/v1.01/api/hotelprices]]
18 -)))
19 -
20 20  Parameters to pass: agentid, agentpassword, hotelid
21 21  
22 22  Sample URL:
23 23  
24 -== Request Parameters ==
9 +**https:~/~/restapi.rustaronline.com/v1.01/api/hotelprices?agentid=test.test&agentpassword=TestP@ssw0rd&hotelid=d6f9299f-5d94-4955-85e7-003e0383023c&removedublicates=false**
25 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 35  
12 +The method returns the object with three list of prices for specified hotel. ContractPrices, Promotions, PromotionsWithConditions
36 36  
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 +
37 37  Return value example:
38 38  
39 39  
... ... @@ -294,4 +294,6 @@
294 294  |**}**|
295 295  |**isactive**| Boolean. True if the price is active and can be used. False if the price is deactivated/inactive.
296 296  
276 +
277 +
297 297  Please be noted, that the prices are already calculated with all possible discounts.