SuprSync
Developer Portal
Sign In

Overtime

GET /external/v1/overtime

Returns approved overtime hours for the current week, grouped by employee.

Query Parameters

ParameterTypeRequiredDescription
branchIdstringNoFilter by branch/location ID

Response

[
  {
    "userId": "a1b2c3d4-...",
    "jobRole": "Cashier",
    "hours": 4.5
  },
  {
    "userId": "e5f6a7b8-...",
    "jobRole": "Supervisor",
    "hours": 2.0
  }
]

Response Fields

FieldTypeDescription
userIdstringThe employee's user ID
jobRolestringThe employee's job role title
hoursnumberTotal approved overtime hours for the current week

Example

curl -X GET "https://api.suprsync.com/external/v1/overtime" \
  -H "x-api-key: api_your_client_id" \
  -H "x-api-secret: sec_your_client_secret"

With branch filter

curl -X GET "https://api.suprsync.com/external/v1/overtime?branchId=branch-uuid-here" \
  -H "x-api-key: api_your_client_id" \
  -H "x-api-secret: sec_your_client_secret"

Notes

  • Only approved overtime requests are included.
  • The "current week" is Monday through Sunday.
  • Sensitive fields (name, picture, email) are stripped from the response.