References¶
Webhook Self-Enrolment¶
Enable or disable the Booking and Incident webhooks for your account.
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¶
Sample Request — Disable booking webhook only¶
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
}
]
}