Discussions
Can I get reviews of a property with API?
Please let me know if it is possible to retrieve reviews of a property?
Posted by Trang Dev almost 2 years ago
Questions about the API
Hi, I have some questions about the API
1) Is there any way to close dates for a property with the API? (I know you can do it manually through the web page). If not that should be considered.
2) on GET Bookings in the inbox there is a string field to filter by status. In other API calls when the string field is an ENUM on the document about that call you show a select with the available options but on GET bookings there isn't
3) What's the difference between
https://api.lodgify.com/v1/reservation
https://api.lodgify.com/v1/reservation/not_read
When does a reservation go from not read to read?
4) Could you explain what this endpoint is for? GET
https://api.lodgify.com/v1/channel/xml
5) Why there isn't any endpoint for properties to change data about them? (availability, description, etc)
Posted by Ginés Sanz Sanchis over 1 year ago
Issues related to Rategenie and Lodgify
There are few issues that we need help with. We are performing some tests on stage and we are seeing
that we cannot push rates with your API.
Request example:
curl --request POST \
--url https://api.lodgify.com/v1/rates/savewithoutavailability \
--header 'Content-Type: application/json' \
--header 'X-ApiKey: ........' \
--data '{
"property_id": 402102,
"room_type_id": 468018,
"rates": [
{
"is_default": false,
"start_date": "2022-12-02",
"end_date": "2022-12-03",
"price_per_day": 777,
"min_stay": 1,
"max_stay": 1
},
{
"is_default": true,
"price_per_day": 100,
"min_stay": 1,
"max_stay": 2
}
]
}'
Response is 400
{
"message": "Cannot get data from /api/v1/rates/external/402102. The endpoint responded with: {\"success\":false,\"statusCode\":\"UnauthorizedIAMException\",\"message\":\"Permission denied.\"}",
"code": 666,
"correlation_id": "0HMMJFP5FLEGE:00000099",
"event_id": "00000000000000000000000000000000"
}
----------------------
Secondly,
when we are trying to get rates/calendar:
curl --request GET \
--url 'https://api.lodgify.com/v2/rates/calendar?houseId=402102&roomTypeId=468018&startDate=2022-12-01&endDate=2023-12-01' \
--header 'X-ApiKey: ....'
we are getting 400 Bad Request with body:
{
"message": "No result was found.",
"code": 666,
"correlation_id": "0HMME4PMP2HBR:0000001B",
"event_id": null
}
Probably it means that there are no rates yet.
However, the request itself is not bad, the response code should not be 400 in this case.
Can Lodgify return 404 or (much better) 200 with an empty array of objects in this case?
Regards,
Posted by Nauman Shahzad over 1 year ago
Rates enpoint return and odd error
Hi for this request: /v2/rates/calendar?HouseId=274421&RoomTypeId=335600&StartDate=2023-02-17&EndDate=2024-02-17 i am getting
{
"message": "No result was found.",
"code": 666,
"correlation_id": "0HMOGQ5C6UBIJ:00000057",
"event_id": null
}
Posted by Luis Parada about 1 year ago
How to pass array of object roomTypes when get info of a quote?
The response says "Cannot get data from api/v1/rates/calculate. The endpoint responded with: RoomTypesSettings must be provided." when I try to get detail information of a quote.
I tried some syntax to pass the array of objects through this GET request:
https://api.lodgify.com/v2/quote/279715?arrival=2022-07-01&departure=2022-12-31&roomTypes=[{id: "342405", people: 2}]
Please show me what is the corrent way, thanks.
Posted by Trang Dev almost 2 years ago
How to get policies being applied for a Property?
I would like to ask which API request which I can use to retrieve information of a Property's polices such as: Payment schedule, Cancellation policy, Damage deposit
Posted by Trang Dev almost 2 years ago
Create a booking with a quote
With the POST https://api.lodgify.com/v1/reservation/booking I am importing reservations from our previous pms system. When trying to transfer the payment data like total amount of the booking and the prepaid amount I do not find how to add it here. Neither to "Total" amount nor any other payment data are shown in the booking after the post.
How to handle that? What did I get wrong?
Posted by Milan Lukas Reimann almost 2 years ago
Increase Booking Window
We're trying to get a quote for a property that's more than a year out in advance using the Quote endpoint (<https://docs.lodgify.com/reference/get_v2-quote-propertyid>). However, we're getting the following error: `The departure date is not valid`.
How do we increase the booking window so that we can call the API from our direct website? We saw that we can individually increase them per house per channel, but we're not sure if that would correlate to the API itself. We want to be able to let guests book 18 months in advance.
Thanks!
Posted by Mastela Vacations 2 months ago
Search booking by external locator and/or other filters
Hi,
Would it be possible get a booking filtering by its external locator and entrance date?
I see that the booking object has not a field to handle its external locator(booking.com, expedia, etc) in case it has.
Thank you in advance.
Best regards,
Posted by Xavi Gómez Ortega over 1 year ago
Display
I see this is fetching but how do I display the content? I'm trying to display the property details on a page. I see is calling properly but how do I display?
Here is what I am using:
const options = {
method: 'GET',
headers: {
Accept: 'text/plain',
'X-ApiKey': 'qL9Oq******************************************'
}
};
fetch('https://api.lodgify.com/v1/properties/XXXX', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
Posted by Evie almost 2 years ago