v1

latestOpenAPI 3.1.02026-07-2438302.6 MB

Get Timeoff Requests

get/timesheets/request/timeoff

Query parameters

filter.from_datestring date
filter.to_datestring date
filter.team_uidstring
filter.user_uidstring
filter.approval_status'PENDING' | 'APPROVED' | 'REJECTED'
filter.requested_atstring date
sort'ASC' | 'DESC'
sort_by'requested_at' | 'approval_status'

Response

200

statusstring

Example response

{
  "status": "success",
  "data": [
    {
      "request_uid": "0eb23511-f58e-434a-9e46-5bf2b5eda972",
      "request_from": "2024-09-19T04:30:00.000Z",
      "requested_at": "2024-09-19T11:37:27.000Z",
      "request_to": "2024-09-19T12:30:00.000Z",
      "all_day": true,
      "request_reason": "OFF",
      "request_remarks": "test",
      "approval_status": "APPROVED",
      "no_of_days": 1,
      "approved_at": "2024-09-19T11:37:27.000Z",
      "approval_remarks": "Auto Approved",
      "created_at": "2024-09-19T11:37:27.000Z",
      "requested_by": {
        "user_uid": "c425fe39-2309-4d2b-87b8-5b4b65546ccb",
        "first_name": "Velmurugan",
        "last_name": "K",
        "email": "velmurugan.k@zuper.co",
        "designation": "Admin",
        "emp_code": "Z111",
        "profile_picture": "https://s3.ap-south-1.amazonaws.com/staging.in.pro.zuper/attachments/6c287db0-ff7c-11e7-b3a8-29b417a4f3fa/0772b941-2f4e-4723-b0d4-cf6ba1064845.jpg",
        "hourly_labor_charge": 120,
        "is_active": true,
        "created_at": "2022-11-02T10:35:52.000Z",
        "updated_at": "2024-09-19T09:50:15.000Z"
      },
      "created_by_user": {
        "user_uid": "c425fe39-2309-4d2b-87b8-5b4b65546ccb",
        "first_name": "Velmurugan",
        "last_name": "K",
        "email": "velmurugan.k@zuper.co",
        "designation": "Admin",
        "emp_code": "Z111",
        "profile_picture": "https://s3.ap-south-1.amazonaws.com/staging.in.pro.zuper/attachments/6c287db0-ff7c-11e7-b3a8-29b417a4f3fa/0772b941-2f4e-4723-b0d4-cf6ba1064845.jpg",
        "hourly_labor_charge": 120,
        "is_active": true,
        "created_at": "2022-11-02T10:35:52.000Z",
        "updated_at": "2024-09-19T09:50:15.000Z"
      },
      "requested_by_team": {
        "team_uid": "18cada40-021b-11e8-8127-43a5add1a9e2",
        "team_name": "SF Team",
        "team_description": "This team covers 603211, 603222, 603223",
        "team_color": "#3498db"
      },
      "approved_by_user": {
        "user_uid": "c425fe39-2309-4d2b-87b8-5b4b65546ccb",
        "first_name": "Velmurugan",
        "last_name": "K",
        "email": "velmurugan.k@zuper.co",
        "designation": "Admin",
        "emp_code": "Z111",
        "profile_picture": "https://s3.ap-south-1.amazonaws.com/staging.in.pro.zuper/attachments/6c287db0-ff7c-11e7-b3a8-29b417a4f3fa/0772b941-2f4e-4723-b0d4-cf6ba1064845.jpg",
        "hourly_labor_charge": 120,
        "is_active": true,
        "created_at": "2022-11-02T10:35:52.000Z",
        "updated_at": "2024-09-19T09:50:15.000Z"
      }
    }
  ]
}