Changes for page 2. Hotel Prices

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

From version 9.1
edited by Giorgi Mdivnishvili
on 2024/02/27 11:56
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,31 +1,18 @@
1 -= Method Description =
1 +**https:~/~/restapi.rustaronline.com/v1.01/api/hotelprices**
2 2  
3 ->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.
3 +Method: GET
4 4  
5 -
6 -== Endpoint URL - [Method - GET] ==
7 -
8 -(% class="box infomessage" %)
9 -(((
10 -[[https:~~/~~/restapi.rustaronline.com/v1.01/api/hotelprices>>https://restapi.rustaronline.com/v1.01/api/hotelprices]]
11 -)))
12 -
13 13  Parameters to pass: agentid, agentpassword, hotelid
14 14  
15 15  Sample URL:
16 16  
17 -== 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**
18 18  
19 -(% class="box infomessage" %)
20 -(((
21 -|**Key**|**Value**|**Request URL**
22 -|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]]**
23 -|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]]**
24 -|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]]**
25 -|removedublicates|false|
26 -)))
27 27  
12 +The method returns the object with three list of prices for specified hotel. ContractPrices, Promotions, PromotionsWithConditions
28 28  
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 +
29 29  Return value example:
30 30  
31 31  
... ... @@ -286,4 +286,6 @@
286 286  |**}**|
287 287  |**isactive**| Boolean. True if the price is active and can be used. False if the price is deactivated/inactive.
288 288  
276 +
277 +
289 289  Please be noted, that the prices are already calculated with all possible discounts.