Discussions

Ask a Question
Back to All

Not able to fetch PaymentLink urls for Booking Website

Hey team, I'm building our own Booking website using Lodgify APIs. From what I understand after reading the API docs, once the potential guest clicks on "Book" in our website, the flow should be:

Questions:

  1. Is this the advised flow or is there a more efficient way to create bookings?
  2. I'm running into this issue with "Create a Payment Link" step. What should I do to avoid this? And alternatively, Reservation status cannot be "Booked" while the payment is being made. If so, how should we handle the reservation if the drops during the payment step?
    "{
    "message": "Cannot accept payment. Reservation status is {Open}.",
    "code": 666,
    "correlation_id": "0HN9FQKE9560T:00000027",
    "event_id": null
    }"
  3. How can we know if the customer was charged or not? Are there any webhooks we can listen to for the same?