Skip to content

References

Webhook Self-Enrolment

Enable or disable the Booking and Incident webhooks for your account.

POST /v1/webhooks

Note

Authenticate using your Booking.com OAuth credentials. See Authentication for details.

Request

Field Type Description Required
webhooks String Array Array of webhook types to enable/disable. Options: INCIDENT, BOOKING Yes
enabled Boolean true to enable, false to disable the specified webhooks. Yes

Sample Request — Enable both webhooks

{
  "webhooks": ["INCIDENT", "BOOKING"],
  "enabled": true
}

Sample Request — Disable booking webhook only

{
  "webhooks": ["BOOKING"],
  "enabled": false
}

Response

Field Type Description
webhookStatuses Array The updated statuses of the modified webhooks.

HTTP 200 - OK

{
  "webhookStatuses": [
    {
      "webhook": "BOOKING",
      "enabled": true
    },
    {
      "webhook": "INCIDENT",
      "enabled": true
    }
  ]
}

HTTP 400 - Bad Request

HTTP 401 - Unauthorized