This guide explains how to obtain the final consumptions for an employee when they are terminated (e.g., offboarding, dismissal, resignation). Steps:Documentation Index
Fetch the complete documentation index at: https://docs.partners.api.cobee.io/llms.txt
Use this file to discover all available pages before exploring further.
- 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.