- Terminate the employee:
- Use
DELETE /companies/{companyId}/employees/{employeeId}to terminate the employee on Cobee.
- Use
- Get the current payroll cycle:
- Use
GET /companies/{companyId}/payroll-cyclesto identify the current payroll cycle (payroll-cycle-id).
- Use
- Get the employee’s consumptions for the current cycle:
- Use
GET /companies/{companyId}/payroll-cycles/{payrollCycleId}/employees/{employeeId}/consumptionsto retrieve the employee’s consumptions for the current payroll cycle at the time of termination.
- Use
Key Points
- Always use the correct
payroll-cycle-idto ensure you are retrieving consumptions for the intended period.