Docs
API referenceDocumentsPayroll

Prepare payroll run

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.

Endpoint
POST /v1/payroll/runs
Authorization
Required permission: `employees:manage`.
Environments
Production and sandbox
Idempotency
Required for safe retries.