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
Change comment: There is no comment for this version
To version 8.1
edited by Giorgi Mdivnishvili
on 2024/02/27 11:55
Change comment: There is no comment for this version

Summary

Details

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