Note: This module is universal. Functions in this module can run on both the backend and frontend, unless specified otherwise.
With the Wix Bookings Attendance API, you can retrieve and manage a booked session's attendance information by:
The Attendance
object holds information about the attendance of a booked session, such as:
The number of session Attendance
objects available depends on session types:
Attendance
object per appointment.Attendance
object for each session of the class. The number of sessions for a class is defined in Schedule and Sessions' schedule.capacity
property.Attendance
object for each session of the course. The number of sessions for a class is defined in Schedule and Sessions' schedule.capacity
property.Common business usages for this API include:
For a comprehensive glossary of Wix Bookings terms, see Terminology.
Validation capabilities are limited. Make sure your code validates that:
numberOfAttendees
and attendanceStatus
to make sure, for example, that attendanceStatus
is not NOT_ATTENDED
while numberOfAttendees
is 5
.numberOfAttendees
and the booking's numberOfParticipants
correspond. For example, the number of attendees usually should not exceed the booking's intended number of participants (unless perhaps you allow walk-ins that did not sign up in advance).To use the Bookings Services API, import { attendance }
from the wix-bookings.v2
module in your Velo code: