Changes for page 2. Hotel Prices

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

From version 12.1
edited by Giorgi Mdivnishvili
on 2024/02/27 11:59
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,42 +1,21 @@
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 -
14 -== Endpoint URL - [Method - GET] ==
15 -
16 -(% class="box infomessage" %)
17 -(((
18 -[[https:~~/~~/restapi.rustaronline.com/v1.01/api/hotelprices>>https://restapi.rustaronline.com/v1.01/api/hotelprices]]
19 -)))
20 -
21 21  Parameters to pass: agentid, agentpassword, hotelid
22 22  
23 23  Sample URL:
24 24  
25 -== 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**
26 26  
27 -(% class="box infomessage" %)
28 -(((
29 -(% class="table-bordered" %)
30 -|**Key**|**Value**|**Request URL**
31 -|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]]**
32 -|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]]**
33 -|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]]**
34 -|removedublicates|false|
35 -)))
36 36  
12 +The method returns the object with three list of prices for specified hotel. ContractPrices, Promotions, PromotionsWithConditions
37 37  
38 -== Return value example: ==
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.
39 39  
16 +Return value example:
17 +
18 +
40 40  {{code language="json"}}
41 41  {
42 42   "Code": "00",
... ... @@ -252,9 +252,6 @@
252 252  {{/code}}
253 253  
254 254  
255 -== Definitions ==
256 -
257 -(% class="table-bordered" %)
258 258  (% class="info" %)|**Value**|(((
259 259  **Description**
260 260  )))
... ... @@ -297,4 +297,6 @@
297 297  |**}**|
298 298  |**isactive**| Boolean. True if the price is active and can be used. False if the price is deactivated/inactive.
299 299  
276 +
277 +
300 300  Please be noted, that the prices are already calculated with all possible discounts.