Calendar & Scheduling

Sessions

A Session represents an occurrence of a SessionType.

get/shop/sessions

List Sessions

listSessions

This endpoint lists all Sessions. per_page may be at most 100 when include_bookings is true and at most 1000 otherwise. A negative per_page returns every matching Session.

Query parameters

  • cancelledbooleanoptional

    Whether to exclusively return cancelled Sessions.

  • idstringoptional

    A comma separated list of Session ids to search for.

  • include_bookingsbooleanoptional

    Whether to include associated Bookings.

  • include_cancelledbooleanoptional

    Whether to include cancelled Sessions.

  • practitioner_idstringoptional

    A comma separated list of Practitioner ids.

  • recurrence_group_idstringoptional

    A comma separated list of SessionRecurrenceGroup ids.

  • room_idstringoptional

    A comma separated list of Room ids.

  • session_type_idstringoptional

    A comma separated list of SessionType ids.

  • zone_idstringoptional

    A comma separated list of Zone ids.

  • datedateoptional

    A date string to retrieve results for

  • dateFromdateoptional

    A date string to retrieve results from

  • dateTodateoptional

    A date string to retrieve results to

  • pageintegeroptional

    The page to retrieve results from

  • per_pageintegeroptional

    The number of results to return per page

  • site_idstringoptional

    Filter results by the site they belong to

  • start_time_fromdate-timeoptional

    Filter results by when they start.

  • start_time_todate-timeoptional

    Filter results by when they end.

Responses

  • 200

    The Sessions were successfully retrieved.

  • 401

    The user is unauthenticated

get/shop/sessions/{sessionId}

Fetch a Session

getSession

Returns a single Session model.

Path parameters

Query parameters

Responses

  • 200

    The Session was successfully retrieved.

  • 401

    The user is unauthenticated

  • 404

    The resource couldn't be found

put/shop/sessions/{sessionId}

Update a Session

updateSession

Updates an in-flight Session occurrence — practitioner, room, times, capacity, waitlist behaviour. Only fields included in the request body are written; everything else is left unchanged.

Note this updates a single occurrence rather than the underlying SessionType or SessionRecurrenceGroup — for repeating session changes use the recurrence-group endpoints instead.

Path parameters

Query parameters

Request body

  • practitioner_idstringoptionalnullable

    The practitioner scheduled to lead this session. null for sessions that don't require a specific staff member (e.g. a free-access spa slot). Must reference an active practitioner on site_id.

  • room_idstringoptional

    The room the session takes place in. Must reference a room configured on site_id. Used by the staff console to colour the session in the schedule view and to enforce per-room capacity caps.

  • start_timedate-timeoptional

    The date and time the session starts.

  • end_timedate-timeoptional

    The date and time the session ends.

  • capacityintegeroptional

    The total capacity of the session.

  • max_basketsintegeroptionalnullable

    The maximum number of baskets that may have bookings for this session.

  • max_waitlist_sizeintegeroptionalnullable

    The maximum number of customers allowed on the waitlist for this session. Null means the waitlist is unlimited.

Responses

  • 200

    The Session was successfully updated.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found

  • 422

    The request didn't pass validation

delete/shop/sessions/{sessionId}

Cancel a Session

deleteSession

Cancels a single Session occurrence. Any existing bookings on the session are notified per the site's session-cancellation settings; the session itself is soft-deleted so it can be restored (see POST /shop/sessions/{sessionId}/restore).

Path parameters

Query parameters

Responses

  • 204

    The session was successfully cancelled.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found

post/shop/sessions/{sessionId}/restore

Restore a deleted session

restoreSession

Un-deletes a previously soft-deleted Session. The session returns to its pre-deletion state, including its slot on the calendar. Customers booked into the session before deletion are NOT automatically rebooked — their bookings remain cancelled.

Requires the SETTINGS_MANAGE permission on the session's site. No request body.

Path parameters

Responses

  • 200

    The session was restored successfully.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found

get/shop/sessions/{sessionId}/waitlist

Fetch a Session's waitlist

getSessionWaitlist

Returns a support/admin-facing view of a Session's waitlist: who is currently queued (in order), who has already been promoted off the waitlist, and the waitlist-related entries from the session log — so "why did X get in ahead of Y?" can be answered without a database query.

Requires the RESERVATIONS_VIEW permission on the session's site.

Path parameters

Responses

  • 200

    The session's waitlist was successfully retrieved.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found