List schedules

Returns a list of all schedules in the company for all employees

image-png-Mar-22-2024-01-24-05-8317-PM /schedules

https://api.oauth.pabau.com/{api_key}/schedules

 

Request

 

Query Parameters:  
api_key *  
date Date in format YYYY/MM/DD
per_page If not sent, default 20. Max 50
page If not sent, first are returned in ASC order
order ASC or DESC

 

Response sample

application/json

{
  "success": true,
  "total": 3,
"schedules": [
    {
    "id": "1",
    "employee_id": "1",
    "user_id": "1",
    "user_name": "Test Pabau",
      "shift_date": "03/04/2024",
      "start_time": "09:00",
      "end_time": "15:00",
    "location": "2",
      "is_holiday": 0
    },
    {
    "id": "2",
    "employee_id": "1",
    "user_id": "1",
    "user_name": "Test Pabau",
      "shift_date": "04/04/2024",
      "start_time": "09:00",
      "end_time": "15:00",
    "location": "2",
      "is_holiday": 0
    },
    {
    "id": "3",
    "employee_id": "1",
    "user_id": "1",
    "user_name": "Test Pabau",
      "shift_date": "05/04/2024",
      "start_time": "09:00",
      "end_time": "15:00",
    "location": "2",
      "is_holiday": 0
    }
  ],
  "rota_permission": "1"
}