Registration State
GET/courses/:id/registration_state
Return per-family-member registration state for the course. Detail-only; anonymous users are denied.
members lists the participating, non-deleted members of the active customer's family; in provider mode that is the customer named by the customer header or active_customer parameter. Each member carries registration_blocked, a prerequisites block (BEFORE-timing forms, waivers and unfulfilled requisites plus completion_url; AFTER-timing items are listed in deferred_forms / deferred_waivers and never block), and one entry per active series. The BEFORE/AFTER split applies only when the provider has forms v2 (forms) / waivers v2 (waivers) enabled; with the flag off, every required form or waiver is listed under forms / waivers and the matching deferred_* list is empty.
Each series entry has the course-level bookable / bookable_with_membership outcome, booked_count out of session_count for the member's registration on that series, and attending_sessions (id, course session attendance id attendance, and a drop_in / substitution tag).
Each session has an action:
attending: the member is booked on it.addable: it can be added to an existing registration at no cost;registration_seriesis the series to send toPUT /courses/{id}/sessions.max_booked: a registration would take it, but has no sessions left;registration_seriesis that registration's series (swap a session out of it to add this one).dropin_bookable: it can be bought as a drop-in atdropin_price.series_only: the member has no registration on this series and can only get it by booking the series.blocked: none of the above;reasonsays why.
reason and bookable_reason are trimmed of surrounding whitespace; empty when bookable.
Session actions do not apply the member's registration block: clients must gate every booking on registration_blocked.
Providers
- Must have one of the following permissions:
manage_events,attendances,instructor_manage_events,instructor_attendances,developer.
Customers
- Any customer can perform this action.
Unregistered Customers
- No access.
Request
Responses
- 200