Page 1 of 1

Difference between JSON_HotelAvail and getRoomDates

Posted: Thu Jul 18, 2024 10:35 am
by developer_villafinder
Hello!

I found that the getRoomDates endpoint is similar to JSON_HotelAvail, should I use getRoomDates endpoint?
when I posted the json data using getRoomDates endpoint, it returned the correct data, but JSON_HotelAvail endpoint is just returning empty array.
I use the same data for both

Code: Select all

{
    "authentication": {
        "apiKey": "xxx",
        "propKey": "xxx"
    },
    "roomId": 111,
    "from": "20240718",
    "to": "20250816"
}

JSON_HotelAvail can be found here: https://wiki.beds24.com/index.php/OTA
and getRoomDates can be found here: https://api.beds24.com/

Thank you!

Re: Difference between JSON_HotelAvail and getRoomDates

Posted: Mon Jul 22, 2024 11:46 am
by ashergibson
Hello,

We recommend you use the equivalent endpoint in API V2 which is GET /inventory/rooms/calendar, more information can be found here: https://beds24.com/api/v2/#/Inventory/g ... s_calendar

Best regards,
Asher.