Webhooks

Update a webhook subscription

Changed on

Replace the set of events a webhook is subscribed to. The destination URL is fixed at creation — sending a different url is rejected with 400, so create a new webhook instead. At least one valid event name is required. Returns 204 with no body on success.

put/webhooks/{id}

Request

  • Base URL
    https://open-api.guesty.com/v1
  • URL
    https://open-api.guesty.com/v1/webhooks/{id}
  • Auth
    API key in header authorization

Path parameters

idstring required

Webhook ID

Request body

urlstring uri

The endpoint URL that webhook event payloads are sent to.

eventsstring[]

add list of event to register for the provided url. Legacy reservation events (reservation.new, reservation.updated, reservation_update_shortlist) are deprecated and may require temporary allowlist approval.

Example request

{
  "url": "https://www.hookurl.com"
}

Response

Webhook was updated successfully

Changes

    • breaking

      removed the enum value calendar.updated.v2 of the request property

    • breaking

      removed the enum value guest.created of the request property

    • breaking

      removed the enum value guest.deleted of the request property

    • breaking

      removed the enum value guest.updated of the request property

    • breaking

      removed the enum value listing.calendar.updated of the request property

    • breaking

      removed the enum value listing.new of the request property

    • breaking

      removed the enum value listing.removed of the request property

    • breaking

      removed the enum value listing.updated of the request property

    • breaking

      removed the enum value payments.failed of the request property

    • breaking

      removed the enum value payments.method.received of the request property

    • breaking

      removed the enum value reservation.created.v2 of the request property

    • breaking

      removed the enum value reservation.messageReceived of the request property

    • breaking

      removed the enum value reservation.messageSent of the request property

    • breaking

      removed the enum value reservation.new of the request property

    • breaking

      removed the enum value reservation.updated of the request property

    • breaking

      removed the enum value reservation.updated.v2 of the request property

    • breaking

      removed the enum value reservation_update_shortlist of the request property

    • breaking

      removed the enum value task.created of the request property

    • breaking

      removed the enum value task.deleted of the request property

    • breaking

      removed the enum value task.updated of the request property

    • breaking

      the request property format changed from no format to uri

    • breaking

      removed the success response with the status

    • info

      api operation id accountsWebhookUpdate was added

    • info

      added the new guest-folio.created enum value to the request property /

    • info

      added the new guest-folio.updated enum value to the request property /

    • info

      added the new payments.authenticationRequired enum value to the request property /

    • info

      added the new payments.authorizationHoldFailed enum value to the request property /

    • info

      added the new payments.disputes enum value to the request property /

    • info

      added the new payments.invalidPaymentMethod enum value to the request property /

    • info

      added the new payments.overcharge.expected enum value to the request property /

    • info

      added the new payments.overcharged enum value to the request property /

    • info

      added the new payments.overdue enum value to the request property /

    • info

      added the new payments.received enum value to the request property /

    • info

      added the new payments.refunded enum value to the request property /

    • info

      added the non-success response with the status

    • info

      added the success response with the status