v1

latestOpenAPI 3.0.32026-07-2672165314.6 KB
Webhooks

Subscribes to a webhook.

Subscribes to a Lodgify webhook.

post/webhooks/v1/subscribe

Request body

target_urlstring nullable

The call-back URL Lodgify site will call when the event is triggered in the system. This has to be unique each time. If it is not unique, we will return a 409 HTTP status code.

event'rate_change' | 'availability_change' | 'booking_new_any_status' | 'booking_new_status_booked' | 'booking_change' | 'booking_status_change_booked' | 'booking_status_change_tentative' | 'booking_status_change_open' | 'booking_status_change_declined' | 'guest_message_received'

Response

Created

idstring nullable

The unique Id associated with this Webhook. Store this on your side, you will need it later to unsubscribe.

secretstring nullable

The secret associated with this Webhooks. This is needed to verify signatures when receiving a webhook to make sure its coming from Lodgify. This value will only be returned after the creation of the webhook