Payroll runs

The calculation of employee pay for one pay period.

Fields

The API name is what the API, MCP and the CLI use.

NameAPI nameTypeRequiredDescription
IDidRecord IDYes
NamelabelText I18n
Run numberuidTextThe number is a human-readable, unique identifier for the record.
Accounting datedateDateYesCalendar date for this value.
UseruserIdUser
Pay periodpayrollperiodIdReferenceYes
Tax registrationtaxregistrationIdReference
KindkindConstantYes
NetnetSigned amountSigned monetary amount; negative values are allowed.
Statutory valuesstatutoryValueIdsJSON
Distributable amount (PTU)amountDistributableCurrencyDistributable profit used as the PTU base in this run.
GrossgrossCurrency
Tax withheldtaxWithheldCurrency
Employer contributionsemployerContributionsCurrency
DeductionsdeductionsCurrency
Other paymentsotherPaymentsCurrency
CreditscreditsCurrency
Cancel reasoncancelReasonText AreaRequired explanation when canceling this record.
Reopen reasonunapproveReasonText AreaRequired explanation when reversing approval.
TagstagIdsTags
DescriptiondescriptionText Area
Created bycreatedByUser
Created atcreatedAtDate and TimeYes
Updated byupdatedByUser
Updated atupdatedAtDate and TimeYes
Started bystartedByUser
Started atstartedAtDate and Time
Processed byprocessedByUser
Processed atprocessedAtDate and Time
Paid bypaidByUser
Paid atpaidAtDate and Time
Calculated bycalculatedByUser
Calculated atcalculatedAtDate and Time
Approved byapprovedByUser
Approved atapprovedAtDate and Time
Canceled bycanceledByUser
Canceled atcanceledAtDate and Time
Blocked byblockedByUser
Blocked atblockedAtDate and Time
Archived byarchivedByUser
Archived atarchivedAtDate and Time

Relations

Owned records (solid line) are deleted with their owner. Grouped records (dashed line) can exist alone.

FieldPoints toKind
User userIdUsersreference
Pay period payrollperiodIdPayroll periodsreference
Tax registration taxregistrationIdTax registrationsreference
Tags tagIdsTagsreference

Actions

What you can do with a record. Every action also sends the webhook event payrollruns.<action>. Reads (find, get, count) work on every table.

NameAPI nameDescriptionWhere
CreatecreateAdd a new run.App · WebMCP · API · MCP · CLI
EditupdateSave changes to this run.App · WebMCP · API · MCP · CLI
ApproveapproveApprove this run so the next step can run.App · WebMCP · API · MCP · CLI
StartstartMarks the run as started before calculation.App · WebMCP · API · MCP · CLI
ProcessprocessPost this run. You cannot undo it.App · WebMCP · API · MCP · CLI
Cancel payrollcancelReverse the posted effect of this run.App · WebMCP · API · MCP · CLI
CalculatecalculateCalculate earnings, deductions and taxes for every slip in the run.App · API · MCP · CLI
BlockblockStop edits and deletion of this run. It stays visible and can still appear on existing documents. Unblock to edit again.App · WebMCP · API · MCP · CLI
UnblockunblockAllow edits and deletion of this run again.App · WebMCP · API · MCP · CLI
ArchivearchiveRetire this run from daily use. It leaves active lists and pickers, and most actions stop. Unarchive to restore it.App · WebMCP · API · MCP · CLI
RestoreunarchiveReturn this run to active lists and actions.App · WebMCP · API · MCP · CLI
DeletedeleteDelete this run and the data that belongs with it. This cannot be undone.App · WebMCP · API · MCP · CLI

States

How a record moves from state to state. Archive and block can happen in any state.

ActionAPI name
Approveapprove
Startstart
Cancel payrollcancel
Remove approvalunapprove
Processprocess
Calculatecalculate