If you have a class scheduled you can call ListBookings to get all the classes you have scheduled.
Okay, So if I go to the calendar on the dashboard. Click Create, change event type to class, Select a previously created class, Schedule the class for september 12 at 2:00pm to 3:00pm. add 25 spots. And then click save.
I can then go to GET /v2/bookings - Square API Explorer
Run the following query using bookings listBookings
await client.bookings.list({
locationId: “LH1TAFGC58WYE”,
startAtMin: “2025-09-11T19:19:44.901Z”,
});
And I should get something back? Currently when I do each of the steps I have mentioned, I only see an empty bookings array
{
“bookings”: ,
“errors”:
}
Classes aren’t currently supported by the API and won’t be returned in the results.
Great. When I said to start this thread 6 days ago with “When I create a new class to use the bookings api, every location in my account (only 1) is added to the absent_at_locations_id array. Thus I cannot query available bookings.” It would have been nice to know that you cannot use the bookings API for a class. I wasted 6 days on this when it could have been cleared up in the first post.