Discussions

Ask a Question
Back to All

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,