Book treatments (services)
Requisites
Before you can book a service we need to create the following elements:
- Employees
- Clients
- Treatments
1. Login
Use the Login endpoint to obtain the token that gives access to the API.
Login
2. Create an employee
Use the Create employee endpoint to create the employee that is gonna serve the treatments.
Create employee
3. Create a client
Use the Create a client endpoint to create the client that is gonna attend the treatments
Create client
4. Create a treatment
Use the Create a treatment endpoint to create the service to book
Create treatment
Book the treatment
5. Get available hours
To get the available hours we have two options:
- Get available hours on a specific day
Available hours - Get available hours per week
See Calendar
6. Book treatment
To book a treatment use this endpoint
Book treatment
7. Bookings made by the client
In case is needed to see bookings made by the client (previous and current), use this endpoint:
See client bookings