Retires the employee with the given id, like the app's retire dialog: date (today by default) is the first day they are no longer employed. Their current contract ends the day before, so no hours or vacation accrue from that date on. If the date is today or in the past, the status is set to retired right away and the login is revoked: sessions are deleted, a pending invite is withdrawn and the account is deleted if no other employee uses it. A future date only schedules the status change for that day, like the app's dialog: the login is not revoked, neither now nor when the status flips. The employee is not deleted: they stay retrievable and listed, and their contracts and history are kept. An active license seat is not cancelled. The company owner cannot be retired (403). The request is rejected with 409 if the employee is already retired, has a contract starting on or after the date, or still has time entries or roster entries dated on or after it unless deleteDanglingEntries is set, in which case those entries are discarded. The request takes no body. This is a partner-level operation: the API client behind the auth token must hold the employee:retire partner permission.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
204The employee was successfully retired.
400date lies before the commit date.
