Skip to content

Query

bookingActivityNextAvailability

bookingActivityNextAvailability(activity: EntityRef!, after: DateTime!): 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.

Arguments

activityEntityRef!
afterDateTime!

Returns

DateTime

Try it

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