Recalculate payroll run
Recalculates in the background, from current employee data and tax rules, every receipt not yet sent to SAT, and adds or removes employees who joined or left the run. Read the run until calculating is false.
- Endpoint
POST /v1/payroll/runs/{runId}/recalculate- Authorization
- Required permission: `employees:manage`.
- Environments
- Production and sandbox
- Idempotency
- Required for safe retries.
Discard payroll run DELETE
Discards a run whose receipts were never sent to SAT: the run is removed at once, and its receipts and their unsent drafts follow in the background. Returns 409 conflict once any receipt is queued, stamping, or stamped.
Stamp payroll receipts POST
Queues every ready receipt of the run for stamping in one request. Send the ready count and net you checked (the run's rows.ready); if they changed, it returns 409 conflict and stamps nothing. Each receipt is stamped in the background on its own, so a rejected receipt never holds back the rest. Returns 202 with the run; follow progress through its counts and its receipts' states. Stamps are charged to the API wallet.