Employee Positions
Employee store positions (posiciones de empleado).
📄️ Get employee position by ID
Returns a single employee store position by its primary key.
📄️ Update employee position
Full replacement of an existing employee store position.
📄️ Delete employee position
Deletes an employee store position.
📄️ Merge-patch employee position
RFC 7396 merge-patch over `application/merge-patch+json`. Send only the fields you want to change; include a field with value `null` to remove it. Use the `If-Match` header for optimistic concurrency control.
📄️ List employee positions
Returns a paginated list of employee store positions with envelope `{data, totalCount, skip, limit, hasMore}`. Default sort is `name:asc`. Limit is capped at 200; skip is clamped to >= 0.
📄️ Create employee position
Creates a new employee store position. Business logic runs in the legacy WAR via the internal commands gateway.
📄️ Bulk delete employee positions
Removes every id in `ids` as a single all-or-nothing transaction. If any id is missing or outside the user's company scope the whole operation is rolled back. There is no `If-Match` header on this endpoint.
📄️ Bulk patch employee positions
Applies the same `patch` to every id in `ids` as a single all-or-nothing transaction. Editable fields are restricted to a whitelist (`enabled`, `blockType`, `description`, `commissionsEnabled`, identity (`code`, `name`), multi-tenant scope (`companyId`) and audit fields are rejected. If any id is missing or outside the user's company scope the whole operation is rolled back.
📄️ Prototype employee position for a creation form
Returns a non-persisted employee position pre-populated with backend defaults (current company, next numeric `code`, `enabled=true`). Optional hints: `companyId`, `copyFromId`. Call `POST /api/v2/employee-positions` afterwards to persist.