🎟️Booking Cancelled

booking.cancelled
v1.0

Triggered when a booking is cancelled

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
id
string
required

Unique booking identifier

reason
string

Cancellation reason

cancelledBy
string
required

ID of user who cancelled

cancelledAt
string
required
date-time
refundAmount
number

Refund amount in cents

Integration Examples

Example code for handling this event

// Handle booking.cancelled event
app.post('/webhook', async (req, res) => {
  const event = req.body;
  
  if (event.type === 'booking.cancelled') {
    // Process the event
    console.log('Received Booking Cancelled:', event.data);
    
    // Your business logic here
    
    
    // Send confirmation email
    await sendBookingConfirmation(event.data);
    
  }
  
  res.status(200).json({ received: true });
});