Skip to content

bookingActivityNextAvailability

bookingActivityNextAvailability(activity: EntityRef!, after: DateTime!, services: [EntityRef!]): DateTime

The start of the earliest open booking increment strictly after after (scanning forward up to a bounded horizon), so a booking calendar can jump the customer to the next day/week that actually has availability. Null when there's none within the horizon, the activity isn't bookable, or the appointments feature is off. Pass services for a services-priced activity so the opening spans the selection's full derived duration.

Arguments

activityEntityRef!
afterDateTime!
services[EntityRef!]

Returns

DateTime

Try it

Authentication
Example
Query
query BookingActivityNextAvailability($activity: EntityRef!, $after: DateTime!, $services: [EntityRef!]) {
  bookingActivityNextAvailability(activity: $activity, after: $after, services: $services) {
    __typename
  }
}
Variables
{}
POST https://go.sessions.website/api/graphql