Companies
Companies
📄️ List companies of the token owner's tenant
List companies of the token owner's tenant
📄️ Create a company under the token owner's tenant
Creates the company together with its defaults: Merkez branch, Merkez department, a default rotation and an annual leave group. The company shares the tenant's license. Employees can then be created with only the X-Company-Id header; department_id, rotation_id and annual_leave_group_id are optional.
📄️ Get a company
Get a company
📄️ Update a company
Update a company
📄️ Delete a company (soft delete)
Same as deactivate, plus employees are marked deleted and the company is soft-deleted. Cards stay assigned to employees; only device authorities are revoked.
📄️ Bulk employee leave (company stays active)
Passivates all active employees of the company with the given leave date: the date is saved as their leave date, app logins are disabled and their cards' device authorities are revoked (cards stay assigned). The company itself is not changed. The date must be today or in the past.
📄️ Deactivate a company
Sets the company passive, passivates its employees, disables their app logins and revokes their cards' device authorities. Cards stay assigned to employees. The freed seats return to the tenant's shared license.
📄️ Activate a passive company
Only the company is activated. Employees stay passive and card authorities are NOT restored; reactivate employees individually (PUT /v1/employees/{id} with status=1, subject to the license capacity).