Skip to content

PayRun.approve

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

Approve accepts a prepared Pay Run within the approver’s Mandate, books its cost, and schedules payment to land on the pay date.

Mode
do
Event
PayRun.approved

Inputs

InputTypeRequiredDescription
payRunPay RunrequiredThe prepared Pay Run.

Outputs

OutputTypeRequiredDescription
payRunPay RunrequiredThe approved Pay Run, scheduled for its pay date.

Effects

  • Emits PayRun.approved.
  • Performed by the Payroll Specialist.
  • One-way (money): it waits out its delay window, and runs in the send and do modes.
  • Above the Payroll Specialist’s Limit, waits for an Approval from the Founder.
  • Schedules PayRun.pay early enough for the money to land on the pay date.

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.approve

When it waits

GateDefault
Decision classMedium: one-way, bounded (money)
Delay window1 business hour, in which a watcher can pause, redirect or cancel it; then it runs.
LimitThe spend Limit of the Permission or Mandate 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.