Facility Events
The Facilities service provides real-time event notifications for reservation lifecycle changes. Subscribe to these events to integrate with your booking workflows.
Available Events
| Event | Description | When Triggered |
|---|---|---|
facilities.reservation.created | New booking confirmed | Member completes a reservation |
facilities.reservation.rescheduled | Booking time changed | Member or admin reschedules |
facilities.reservation.cancelled | Booking cancelled | Member or admin cancels |
facilities.reservation.no_show | No-show recorded | Staff marks member as no-show |
Event Data
All events include:
- reservationId - Unique booking identifier
- resourceId - The facility resource booked
- memberId - The member who made the booking
- startTime / endTime - Booking time window
- clubId / tenantId - Organization identifiers
Example: Reservation Created
{
"reservationId": "abc123",
"resourceId": "tennis-court-1",
"memberId": "member-456",
"startTime": "2026-01-15T08:00:00Z",
"endTime": "2026-01-15T09:00:00Z",
"pricing": {
"quotedPriceCents": 15000,
"currency": "ZAR"
}
}
Example: Reservation Cancelled
{
"reservationId": "abc123",
"resourceId": "tennis-court-1",
"memberId": "member-456",
"reason": "Member requested cancellation",
"cancelledBy": "admin-user"
}
Integration Options
Webhooks (Coming Soon)
Configure webhook endpoints in the admin portal to receive event notifications via HTTP POST.
Message Queue
For real-time integrations, events are published to a message queue. Contact your DigiWedge representative for queue access credentials.
Use Cases
- Confirmation emails - Send booking confirmations when reservations are created
- Calendar sync - Update external calendars when bookings change
- Billing integration - Trigger charges on booking or no-show events
- Analytics - Track booking patterns and cancellation rates
- Notifications - Alert members of upcoming bookings or changes