Skip to content

PayRun.prepare

POST /{namespace}/pay-runs/prepare

Prepare computes one pay period’s gross pay, withholding, deductions and employer taxes for each employee, and holds the Pay Run for approval.

Mode
do
Event
PayRun.prepared

Inputs

InputTypeRequiredDescription
companyCompanyrequiredThe employer Company.
periodStartdaterequiredThe first day of the pay period.
periodEnddaterequiredThe last day of the pay period.
payDatedaterequiredThe day net pay should land.
kindstringDefaults to regular; offCycle pays outside the schedule.
humanslist of HumanOnly these employees. Defaults to every employee of the Company.

Outputs

OutputTypeRequiredDescription
payRunPay RunrequiredThe prepared Pay Run, with every amount per employee.

Effects

  • Emits PayRun.prepared.
  • Performed by the Payroll Specialist.
  • Two-way: it runs at once, in the try, send and do modes.
  • Reads each employee’s pay rate from their employment Agreement and withholds for the state where they work.
  • Adds the Benefits deductions each employee elected.
  • Opens a Task for the Payroll Specialist when a rate, a tax setup or a bank account is missing.

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

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.