The roster endpoints manage payroll records (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.
nóminas) for the sublimation module. A roster entry represents a payroll period for a specific employee, tracking the start and end dates, the calculated state, and references to both the company and employee. Payroll calculations apply Colombian statutory deductions (health 4%, pension 4%) and transport allowance for salaries up to two minimum wages.
All roster endpoints require
TokenAny plus TokenAuthorize('Admin', 'Super Admin'). Pass your token using token-access: Bearer $TOKEN.POST /api/roster/:company_id/:employee_id
Creates a new payroll roster (nómina header) for a specific employee within a payroll period. The roster is saved withstade set to "Draft".
Path parameters
MongoDB ObjectId of the company.
MongoDB ObjectId of the employee this roster belongs to.
Start date of the payroll period (e.g.,
"1/8/2024").End date of the payroll period (e.g.,
"31/8/2024")."Nomina creada exitosamente" on success.true on success.The created roster document.
POST /api/roster/:company_id/calculate/:nomina_id/nomina/:employee_id
Calculates payroll for a specific roster entry. The controller iterates over all active employees (stade_employee: "Activo"), computes earnings and deductions using base_saraly_employee, and creates DetailedPayroll and PayrollConcept records. The roster stade is updated to "Calculada" on completion.
Path parameters
MongoDB ObjectId of the company.
MongoDB ObjectId of the roster (nómina) to calculate.
MongoDB ObjectId of the employee to calculate for.
"Nomina calculada exitosamente" on success.true on success.POST /api/roster/recalcular/:company_id/nomina/:nomina_id
Recalculates a payroll roster that was previously calculated. The controller deletes all existingPayrollConcept and DetailedPayroll records linked to this roster, resets stade to "draft", then calls the calculation logic again from scratch. Use this endpoint when employee salary data changes after an initial calculation.
Path parameters
MongoDB ObjectId of the company.
MongoDB ObjectId of the roster to recalculate.
"Nomina calculada exitosamente" on success (the recalculation delegates to the same calculation handler).true on success.Roster States
| State | Description |
|---|---|
Draft | Roster created but payroll not yet calculated |
Calculada | Payroll has been calculated |
Pagada | Payroll has been paid out |