🎟️Booking Created
booking.createdv1.0
Triggered when a new booking is made
Webhook Delivery
This event can be delivered to your webhook endpoint
Real-time Streaming
This event is available via WebSocket or SSE
Event Details
Schema definition and example payload
Event Properties
object
idstring
required
Unique booking identifier
sessionIdstring
required
Associated session ID
memberIdstring
required
ID of the member being booked
accountOwnerIdstring
required
ID of the account owner
statusstring
required
Enum:
confirmedpendingwaitlistpaymentStatusstring
Enum:
paidpendingfailedamountnumber
Booking amount in cents
Integration Examples
Example code for handling this event
// Handle booking.created event
app.post('/webhook', async (req, res) => {
const event = req.body;
if (event.type === 'booking.created') {
// Process the event
console.log('Received Booking Created:', event.data);
// Your business logic here
// Send confirmation email
await sendBookingConfirmation(event.data);
}
res.status(200).json({ received: true });
});