Restaurant table booking

Hello. How do you book a table at a restaurant through the API?

Currently im using the bookings API for testing, and in it, there’s the search_availability endpoint which returns the available slots. But it requires service_variation_id in the segment_filters. Should i be creating services in Appointments (in the sandbox for now) and naming them as table for 2 or table for 4 and so on? And then using the catalog API to get their respective service_variation_id?

Or is there a specific restaurant reservations API that handles table bookings?

Thank you.

:waving_hand: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Onboard to Square Appointments
https://developer.squareup.com/docs/bookings-api/what-it-is
Test in the Sandbox

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

Yes, that is what you’ll need to do if your going to use Square Bookings API to reserve tables in a Restaurant. :slight_smile:

1 Like