Discussions

Ask a Question

Payments methods

Can I add a new payment method using API
ANSWERED

Add messages to a booking sync problem

Hi, if I post a message usinng API (https://api.lodgify.com/v1/reservation/booking/{id}/messages), the message is visible in Longify. But it does not have that green check icon 'The message was succesfully sent' and it is not synchronized with Airbnb etc. It works only like if posted directly from chat window. Looks like that 'subject' is not passed correcly. call: { "subject": "test", "message": "test", "type": "Owner" } response: { "subject": null, "message": "test", "type": "Owner", "is_replied": true, "created_at": "2022-08-09T13:14:47" } thanks
ANSWERED

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));
ANSWERED

Can I get reviews of a property with API?

Please let me know if it is possible to retrieve reviews of a property?
ANSWERED

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
ANSWERED

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.
ANSWERED

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.
ANSWERED

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?
ANSWERED

Why does create booking result in "Value cannot be null. (Parameter 'source')" ?

When I send a create booking request with the following body: (I removed the property_id for this question) '{ "source":"Manual", "arrival":"2022-07-11", "departure":"2022-07-13", "property_id":######, "source_text":"Website" }' I get this response: message": "Value cannot be null. (Parameter 'source')",
ANSWERED

CORS Issue with JavaScript on page

The Lodgify server does not return an Access-Control-Allow-Origin header on the preflight OPTIONS request when sent from JavaScript, which then fails any GET request to the server.