Create a webhook subscription
Changed onSubscribe a destination URL to one or more Guesty events. At least one event is required, and every event name must be one of the supported values — an unrecognized name is rejected with 400. An account may hold up to 100 webhooks.
Request
- Base URLhttps://open-api.guesty.com/v1
- URLhttps://open-api.guesty.com/v1/webhooks
- AuthAPI key in header authorization
Request body
Example request
{
"url": "https://www.hookurl.com"
}Response
The created webhook
Example response
{
"accountId": "563e0b6a08a2710e00057b82",
"_id": "563e0b6a08a2710e00057b82",
"url": "https://www.hookurl.com"
}Changes
- breaking
removed the enum value
calendar.updated.v2of the request property - breaking
removed the enum value
guest.createdof the request property - breaking
removed the enum value
guest.deletedof the request property - breaking
removed the enum value
guest.updatedof the request property - breaking
removed the enum value
listing.calendar.updatedof the request property - breaking
removed the enum value
listing.newof the request property - breaking
removed the enum value
listing.removedof the request property - breaking
removed the enum value
listing.updatedof the request property - breaking
removed the enum value
payments.failedof the request property - breaking
removed the enum value
payments.method.receivedof the request property - breaking
removed the enum value
reservation.created.v2of the request property - breaking
removed the enum value
reservation.messageReceivedof the request property - breaking
removed the enum value
reservation.messageSentof the request property - breaking
removed the enum value
reservation.newof the request property - breaking
removed the enum value
reservation.updatedof the request property - breaking
removed the enum value
reservation.updated.v2of the request property - breaking
removed the enum value
reservation_update_shortlistof the request property - breaking
removed the enum value
task.createdof the request property - breaking
removed the enum value
task.deletedof the request property - breaking
removed the enum value
task.updatedof the request property - breaking
the
request property format changed from no format touri - info
api operation id
accountsWebhookCreatewas added - info
added the new
guest-folio.createdenum value to the request property/ - info
added the new
guest-folio.updatedenum value to the request property/ - info
added the new
payments.authenticationRequiredenum value to the request property/ - info
added the new
payments.authorizationHoldFailedenum value to the request property/ - info
added the new
payments.disputesenum value to the request property/ - info
added the new
payments.invalidPaymentMethodenum value to the request property/ - info
added the new
payments.overcharge.expectedenum value to the request property/ - info
added the new
payments.overchargedenum value to the request property/ - info
added the new
payments.overdueenum value to the request property/ - info
added the new
payments.receivedenum value to the request property/ - info
added the new
payments.refundedenum value to the request property/ - info
added
subschema #1subschema #3to the response bodyallOflist for the response status - info
removed
subschema #1subschema #3from the response bodyallOflist for the response status - info
added the non-success response with the status
- breaking