Skip to content

PayRun.void

POST /{namespace}/pay-runs/{payRun}/void

Void sets aside a prepared Pay Run that is wrong, so a corrected one can be prepared; the record stays.

Mode
do
Event
PayRun.voided

Inputs

InputTypeRequiredDescription
payRunPay RunrequiredThe prepared Pay Run.
reasontextrequiredWhy it was set aside.

Outputs

OutputTypeRequiredDescription
payRunPay RunrequiredThe voided Pay Run.

Effects

  • Emits PayRun.voided.
  • Performed by the Payroll Specialist.
  • Two-way: it runs at once, in the try, send and do modes.
  • An approved Pay Run cannot be voided; a mistake in it is corrected in the next run.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.PayRun.void

When it waits

GateDefault
Decision classLow: two-way, nothing at stake
Delay windowNone: it runs once review passes.
LimitThe call Limit of the Permission it runs under.
Over the LimitIt waits pending for an Approval from the Founder. Approved, it runs; refused, it ends refused with limit-exceeded; unanswered by its deadline, it ends canceled.