Employees
Employees
📄️ Create employees in bulk (max 100 per request)
Each row uses the same fields and rules as POST /v1/employees. License capacity is checked once for the whole batch (shared by all active companies of the tenant); if it is not enough, nothing is created. Each row is created in its own transaction; failed rows do not block the others. Returns 200 if at least one row was created, otherwise 422.
📄️ List employees of all companies in the tenant (cursor paginated)
Requires the companies.switch scope. Ordered by id; follow pagination.next_cursor until has_more=false. With updated_since, only employees changed since then are returned, including passivated and deleted ones (see is_passive / is_deleted), so a local copy can be kept in sync.
📄️ List all employees
List all employees
📄️ Create a new employee
With X-Id-Type: external (integrator mode): employee_no is required (digits, unique within the company; duplicate → 409 EmployeeNoExists); username, password, phone, email and birth_date become optional. Without username no app login account is created (the employee still works with cards / gate password).
📄️ Get employee
Get employee
📄️ Update an existing employee
Update an existing employee
📄️ Delete employee
Delete employee
📄️ Search employee
Search employee
📄️ Update gate password of an employee
Update gate password of an employee