The Booking Webhook API enables real-time integration with the Favouritetable booking system by sending automated notifications when booking events occur.
The API supports the following event types:
The webhook endpoint must be a REST API URL capable of receiving HTTP POST requests. All webhook requests contain a JSON payload, providing a consistent and structured format for data exchange.
The New Booking event webhook notifies subscribers whenever a new booking is created in the system. This ensures that integrated systems receive real-time updates about new reservations. The webhook will send a JSON payload containing all relevant booking details to the subscriber's specified REST API endpoint.
The same webhook URL can be utilized for both new booking notifications and booking status updates. Each JSON object will include the appropriate Booking Status code, allowing subscribers to identify the type of event being communicated.
This dual functionality simplifies webhook management and reduces integration complexity, as there is no need for separate URLs for different booking events.
| URL | <to be provided by the integration partner> |
| Method | POST |
| Content-Type | application/json |
| Headers | <provided by the integration partner> |
| Body | JSON |
| Example | |
| Success Response | |
| Fail Response | |
Booking Status Code
Following are the valid Booking Status values and their description.
| Code | Description |
| 1 | Booked |
| 2 | Confirmed |
| 3 | Cancelled |
| 4 | Show |
| 5 | No Show |
| 6 | Complete |