This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Sets or updates attendance information for a booking session. This
information is stored in an attendance
object.
If an attendance
object already exists for the session, it's updated.
Otherwise, a new object is created.
By default, numberOfAttendees
is set to 1
, but you can specify a higher
number if multiple participants attended. Do not set numberOfAttendees
to
0
to indicate no attendance, instead specify {"status": "NOT_ATTENDED"}
.
Validation guidelines:
numberOfAttendees
and status
. For example, make sure that your code doesn't specify
{"status": "NOT_ATTENDED"}
with {"numberOfAttendees": 5}
.numberOfAttendees
to exceed the booking's
numberOfParticipants
. Use higher values only when scenarios like
walk-ins justify the exception.You can only call this method when authenticated as a Wix app or Wix user identity.
Attendance to create or update.
Information about whether to send a message to a customer after their attendance was set.
Created or updated attendance.
curl -X POST \
'https://www.wixapis.com/bookings/v2/attendance/set' \
-H 'Authorization: <AUTH>' \
-d '{
"attendance": {
"bookingId":"88214716-6ed1-4273-b089-8015c4ab2f4b",
"sessionId":"2mmoW0vwKcSFyxtOfCdMqTntk7dVhOyHRtg53bu4e0cvIFpCA9sAC0M0ZiAJcAcni80UUc0DZWeZiSWqQEpqEHzb6cLa99kNRZDp",
"status": "ATTENDED",
"numberOfAttendees": 1
}
}'
{
"attendance": {
"id": "9fc7a1cc-55ba-4943-afac-5849f1a3cdd9",
"bookingId": "88214716-6ed1-4273-b089-8015c4ab2f4b",
"sessionId": "2mmoW0vwKcSFyxtOfCdMqTntk7dVhOyHRtg53bu4e0cvIFpCA9sAC0M0ZiAJcAcni80UUc0DZWeZiSWqQEpqEHzb6cLa99kNRZDp",
"status": "ATTENDED",
"numberOfAttendees": 1
}
}
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.