List payroll runs
Lists payroll runs, latest period first, optionally of one PeriodicidadPago. Each run reports its receipts' count and net per state, and how many receipts wait for a salary (missingSalary).
- Endpoint
GET /v1/payroll/runs- Authorization
- Required permission: `employees:read`.
- Environments
- Production and sandbox
- Idempotency
- Not required.
Update payroll settings PUT
Replaces the payroll settings. Omitted fields are cleared, so send the complete object, minimumWageZone included: without it only employees with their own minimumWageZone are calculated. Runs prepared or recalculated afterwards use the new settings. Changing when weekly or catorcenal periods start returns 409 conflict while the latest run of that frequency still has receipts to stamp.
Prepare payroll run POST
Returns the run of a pay period, creating it when none exists: one run per PeriodicidadPago and period start. A run keeps its period after the pay calendar changes and is found by its own start. Receipts are calculated in the background from each active employee's salary; read the run until calculating is false. A date that starts no period returns 400 naming the start of the period that contains it; a period overlapping another run of the same frequency returns 409 conflict naming that run's period. The status is 200 whether the run was created or already existed.