Skip to main content

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

EventDescriptionWhen Triggered
facilities.reservation.createdNew booking confirmedMember completes a reservation
facilities.reservation.rescheduledBooking time changedMember or admin reschedules
facilities.reservation.cancelledBooking cancelledMember or admin cancels
facilities.reservation.no_showNo-show recordedStaff 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