Every v1 endpoint has a v2 equivalent, except where noted.
| What you do | v1 | v2 |
|---|---|---|
| List staff | GET /staffs | GET /staff, or GET /staff/{id} for one staff member |
| List services | GET /services | GET /services, or GET /services/{id} for one service |
| List categories | GET /services/categories | GET /categories, or GET /categories/{id} for one category |
| Services in a category | GET /services/categories/{category-key} | GET /categories/{id} returns the category with its service_ids. Then fetch each service with GET /services/{id}. |
| Get available slots | POST /slots | GET /slots (parameters are now query parameters) |
| Create a customer | POST /customer/create | POST /customers |
| Find customers | GET /customer | GET /customers (list), or GET /customers/{id}. The firstname, phone, and email filters are not available in v2. |
| Create an appointment | POST /appointment/create | POST /bookings with type set to APPOINTMENT |
| Fetch appointments | GET /appointments | GET /bookings/staffs/{id} (by staff member) or GET /bookings/customers/{id} (by customer) |
| Update an appointment label | PUT /appointments/{appointment-id}/label | PUT /bookings/{id}. Send the booking with the new label. |