When a booking is created or cancelled via the API, or via the SDK or widgets web hooks are available to notify your server.
Available Events
Event | Description |
---|---|
booking.created | A booking has been created via the AllTheTables API |
booking.cancelled | A booking has been cancelled via the AllTheTables API |
Registering Webhooks
Webhooks can be registered in your partner portal. You can select which events are triggered for each webhook and if a webhook is for live
or Test Mode
Webhook Events
booking.created
The event booking.created
is triggered when a booking has been successfully created and injected into the venues reservation system
Example payload for booking.created
booking.created
{
"id": "evt_1MqqbKLt4dXK03v5qaIbiNCC",
"object": "event",
"api_version": "2024-06-20",
"created": 1680064028,
"type": "booking.created",
"data": {
"object": {
"id": "sub_1Mqqb6Lt4dXK03v50OA219Ya",
"object": "booking",
"covers": 2,
"dateTime": 1680064028,
"venue": {
"id": "",
"name": "Example restaurant"
},
"customer": {
"id": "",
"firstName": "Oliver",
"lastName": "Mahoney",
"email": "[email protected]",
"phone": "+447123456789"
},
"created": 1680064014
}
},
"livemode": false,
"pending_webhooks": 1,
"request": {
"id": null,
"idempotency_key": null
}
}