3. Room Availabilities
Last modified by Giorgi Mdivnishvili on 2024/02/27 22:04
https://restapi.rustaronline.com/v1.01/api/roomavailabilities
Method: GET
Parameters to pass: agentid, agentpassword and hotelid
Sample URL:
https://restapi.rustaronline.com/v1.01/api/roomavailabilities?agentid=test.test&agentpassword=TestP@ssw0rd&hotelid=44EDF1C4-BFE0-4CA0-8091-014CF5C68A79
The method returns the list of stop sales or other statuses by room categories and dates for specified hotelid
Return value example:
{
"Code": "00",
"Message": "",
"Timestamp": "2016-06-27T19:20:00.7512185+04:00",
"Version": “1.01”,
"ResponseID": "b512a117-6745-493d-9fa4-828d79c0df1d",
"Data": [
{
"hotelid": "44edf1c4-bfe0-4ca0-8091-014cf5c68a79",
"roomcategory": "3691e0db-b5e0-411f-b14d-aa46ba90e8f1",
"roomcategorytype": "8f3c7364-46fa-4226-8582-ec3c3d54cd7e",
"roomcategoryname": "Family Room ",
"startdate": "2016-07-06T00:00:00",
"enddate": "2016-10-31T00:00:00",
"note": null,
"availability": "REQUEST"
},
{
"hotelid": "44edf1c4-bfe0-4ca0-8091-014cf5c68a79",
"roomcategory": "7bb7c883-b107-4223-9047-80686f6b3d52",
"roomcategoryname": "Classic Room",
"startdate": "2016-07-06T00:00:00",
"enddate": "2016-10-31T00:00:00",
"note": null,
"availability": "REQUEST"
}
]
}
"Code": "00",
"Message": "",
"Timestamp": "2016-06-27T19:20:00.7512185+04:00",
"Version": “1.01”,
"ResponseID": "b512a117-6745-493d-9fa4-828d79c0df1d",
"Data": [
{
"hotelid": "44edf1c4-bfe0-4ca0-8091-014cf5c68a79",
"roomcategory": "3691e0db-b5e0-411f-b14d-aa46ba90e8f1",
"roomcategorytype": "8f3c7364-46fa-4226-8582-ec3c3d54cd7e",
"roomcategoryname": "Family Room ",
"startdate": "2016-07-06T00:00:00",
"enddate": "2016-10-31T00:00:00",
"note": null,
"availability": "REQUEST"
},
{
"hotelid": "44edf1c4-bfe0-4ca0-8091-014cf5c68a79",
"roomcategory": "7bb7c883-b107-4223-9047-80686f6b3d52",
"roomcategoryname": "Classic Room",
"startdate": "2016-07-06T00:00:00",
"enddate": "2016-10-31T00:00:00",
"note": null,
"availability": "REQUEST"
}
]
}
Value | Description |
hotelid | GUID of the hotel in the database of Rustar. This GUID will be used to retrieve additional information (like prices) about the hotel |
roomcategory | GUID of the Room category |
roomcategorytype | GUID of the Room category type. Unique by description of the room |
roomcategoryname | string. The name of the room category |
startdate | Date. Start date of the limit period |
enddate | Date. End date of the limit period |
note | string. Free formed text |
pricestatus | string. Values can be |