get https://api-sandbox.seamlesshr.app/v1/leave/requests
This endpoint can be used to list all leave requests for all the employees in the company.
However, if you need to get the leave requests of a particular employee, you will need to include employee_code as part of the query parameters.
This endpoint can further be used to get leave requests based on the status. You can achieve this by passing status as part of the query parameters.
NOTE: When the status is set to ON LEAVE, the API will return only employees on leave. When the status is set to UPCOMING LEAVE, the API will return only employees that will be going on leave within the next 5 days. Lastly, when the status is set to ON LEAVE TODAY, the endpoint will return only employees on leave today.