- Terminate the employee:
- Use
DELETE /companies/{companyId}/employees/{employeeId}to terminate the employee on Cobee.
- Use
- Get the employee’s consumptions:
- Use
GET /companies/{companyId}/employees/{employeeId}/consumptions?payroll=YYYY-MMto retrieve consumptions for the specific cycle (FormatYYYY-MM) in which the employee was terminated.
- Use
Key Points
- Always use the correct
payrollparameter (formatYYYY-MM) to ensure you are retrieving consumptions for the intended period.