Overtime
GET /external/v1/overtime
Returns approved overtime hours for the current week, grouped by employee.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
branchId | string | No | Filter by branch/location ID |
Response
[
{
"userId": "a1b2c3d4-...",
"jobRole": "Cashier",
"hours": 4.5
},
{
"userId": "e5f6a7b8-...",
"jobRole": "Supervisor",
"hours": 2.0
}
]
Response Fields
| Field | Type | Description |
|---|---|---|
userId | string | The employee's user ID |
jobRole | string | The employee's job role title |
hours | number | Total 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.