x

Booking API: How to list only available slots between particular dates.

Hi, 

I am working on an app to sync Twillio with Square-Up's Booking PHP API to book appointments via phone call.

 

I am successfully fetching booking calendar data from square-up API, but I see no filter in the documentation that can exclude pre-booked slots.

 

If 3 out of 10 slots are booked, Api lists that all 10 slots as available.

 

Thanks in anvance.

298 Views
Message 1 of 2
Report
1 REPLY 1
Admin

Hey @nichole4321, I'll do my best to help here! 

 

From chatting with our API team, if you'd like a list of available bookings, you'll need to use SearchAvailability . https://developer.squareup.com/reference/square/bookings-api/search-availability. With this endpoint they can further query on various attributes: SearchAvailabilityFilter

 

We also have a dedicated forum for Developers if you run into any issues in the future. 

Tra
Community Manager, Square
Have a burning question to ask in our Question of the Week? Share it with us!
281 Views
Message 2 of 2
Report