The employee endpoints manage the staff records attached to a company in the sublimation module. Employees can be assigned to production jobs and are referenced in payroll rosters. Each employee record tracks contract type, document information, and employment status.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/fredy-rizo/MultiSas/llms.txt
Use this file to discover all available pages before exploring further.
All employee endpoints require
TokenAny plus TokenAuthorize('Admin', 'Super Admin'). Pass your token using token-access: Bearer $TOKEN.POST /api/employee/create/:company_id
Creates a new employee record for the specified company. Thestade_employee field is automatically set to "Inactivo" on creation and cannot be provided in the request body.
Path parameters
MongoDB ObjectId of the company the employee belongs to.
Full name of the employee.
Document type (e.g.,
CC for Cédula de Ciudadanía, PP for Pasaporte, EXT for Extranjero).Document number.
Base salary. Note: the field name contains a typo (
saraly instead of salary) — this matches the source schema exactly and must be used as-is.Contract type. Accepted values:
Fijo, Indefinido, Prestaciones.Employee role within the company (e.g.,
Diseñador, Operador, Vendedor)."Empleado creado correctamente" on success.true on success.The created employee document including
_id, all submitted fields, stade_employee ("Inactivo"), company, createdAt, and updatedAt.PUT /api/employee/update/:company_id/:employee_id
Updates an existing employee record. All fields are optional — only provided fields are updated. Path parametersMongoDB ObjectId of the company.
MongoDB ObjectId of the employee to update.
Updated full name.
Updated document type.
Updated document number.
Updated base salary. Note: the field name contains a typo (
saraly) matching the source schema.Updated contract type. Accepted values:
Fijo, Indefinido, Prestaciones.Employment status. Use
Activo to activate the employee or Inactivo to deactivate.Updated employee role.
"Empleado actualizado correctamente" on success.true on success.GET /api/employee/list/:company_id/:pag?/:perpage?
Returns a paginated list of all employees (active and inactive) for a company. Path parametersMongoDB ObjectId of the company.
Page number (optional, defaults to
1).Items per page (optional).
"Cargando empleados" on success.true on success.Array of employee documents sorted by
_id descending.GET /api/employee/list-active/:company_id/:pag?/:perpage?
Returns only employees withstade_employee set to Activo.
Path parameters
MongoDB ObjectId of the company.
Page number (optional, defaults to
1).Items per page (optional).
"Cargando empleados activos" on success.true on success.Array of active employee documents sorted by
_id descending.Pagination metadata with
pag, perpage, and pags.GET /api/employee/list-inactive/:company_id/:pag?/:perpage?
Returns only employees withstade_employee set to Inactivo.
Path parameters
MongoDB ObjectId of the company.
Page number (optional, defaults to
1).Items per page (optional).
"Cargando empleados inactivos" on success.true on success.Array of inactive employee documents sorted by
_id descending.Pagination metadata with
pag, perpage, and pags.DELETE /api/employee/remove/:employee_id
Permanently deletes an employee record. Path parametersMongoDB ObjectId of the employee to delete.
"Empleado eliminado exitosamente" on success.true on success.