Optional host command handler. Validate the request, publish confirmed data and reject on failure. Omit for a read-only view.
Data and integration
Preview
A payroll run with a review exception and an upcoming cutoff.
Inputs
Provide id, revision, organisation, payDate, currency, grossMinor, employeeCount, status and exceptions. Optionally supply cutOffAt, observedAt and canApprove.
Source options
Use authorised payroll data and a single business calendar. Define cutoff and observation time as Unix milliseconds.
Actions
Review the run and exceptions. An eligible ready run can submit { type: 'approve-run', id, revision } after confirmation. The host verifies eligibility.
Integration requirements
Statuses are draft, ready, approved or paid. Exception fields are id, label, severity (review or blocking) and optional note. A known cutoff must be in the future for approval. Blocking exceptions prevent the action.