Overview
Before running payroll, you must ensure all "incidences" (events affecting pay) are recorded and approved. This includes vacation days, sick leave, unpaid absences, overtime hours, and one-off bonuses.
1. List Pending Incidences
Get a list of all incidences that need approval.
GET
/api/v1/incidences/events?status=PENDING2. Approve Overtime
Approve extra hours so they are paid out in the next cycle.
PUT
/api/v1/incidences/events/{id}/approve3. Report Absences
Log an unpaid absence for an employee.
POST
/api/v1/incidences/eventsRequest Body
{
"employeeId": "emp-123",
"typeId": "incidence-absence",
"date": "2024-05-20",
"days": 1,
"comments": "No show"
}