bookingActivitySlots
bookingActivitySlots(activity: EntityRef!, from: DateTime!, to: DateTime!, services: [EntityRef!]): [AppointmentSlot!]!Open, bookable increments for a structure: booking activity within the [from, to] window — the activity's weekly windows minus the assigned resource's commitments, honoring its booking notice + advance window. Each slot is one increment; customers compose a longer booking from a contiguous run (bounded by minIncrements/maxIncrements). Empty when the activity isn't bookable or the appointments feature is off.
For a services-priced activity pass the selected services: each returned slot is then a valid appointment start spanning the selection's full derived duration (the summed service durations rounded up to the slot increment), so only starts whose whole run is open are returned.
Arguments
Returns
[AppointmentSlot!]!
See AppointmentSlot for the full shape.
Try it
Authentication
Example
Query
query BookingActivitySlots($activity: EntityRef!, $from: DateTime!, $to: DateTime!, $services: [EntityRef!]) {
bookingActivitySlots(activity: $activity, from: $from, to: $to, services: $services) {
__typename
}
}
Variables
{}
POST
https://go.sessions.website/api/graphql