Discussions
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
How can I get the API occupancy charge?
I have added that after a certain number of guests there will be a charge of a certain amount of money. But when I want to get information of the prices per day it does not return me the price of a certain charge. I also don't see the possibility to pass by GET the number of guests, how can I get it?
Posted by David almost 2 years ago
How to get check-in, check-out times of a property?
I cannot find check-in, check-out times of a property (and its rooms) with API, please advise.
Posted by Trang Dev about 2 years ago
Function call for check in/out day restrictions
Hi,
Is there a function call that will report what the check in/ check out day restrictions are? I had thought it might be part of the results when retrieving the rates.
Thanks,
Gareth.
Posted by Gareth over 2 years ago