PayRun.prepared
Emitted each time a Pay Run is prepared.
PayRun.prepare emits PayRun.prepared when it completes on a Pay Run.
| Property | Value |
|---|---|
| Emitted by | PayRun.prepare |
| Noun | Pay Run |
| Wakes | None. |
Payload
Each delivery is an Event record. data holds what PayRun.prepare returns.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | required | PayRun.prepared. |
at | datetime | required | When it happened. |
seq | integer | Its position in the namespace, one more than the Event before; any seq is a cursor into the history. | |
data | json | required | The Thing as the Action left it. |
data.payRun | Pay Run | required | The prepared Pay Run, with every amount per employee. |
data.payRun.company | Company | required | The employer of record for everyone it pays. |
data.payRun.periodStart | date | required | The first day of the pay period. |
data.payRun.periodEnd | date | required | The last day of the pay period. |
data.payRun.payDate | date | required | The day net pay reaches each employee’s bank. |
data.payRun.kind | string | required | A regular run on the pay schedule, or an offCycle run for a bonus, a correction or final pay. |
data.payRun.humans | list of Human | The employees it pays. | |
data.payRun.gross | money | Pay before withholding and deductions, for everyone in the run. | |
data.payRun.withheld | money | Income and payroll taxes withheld from employees’ pay. | |
data.payRun.deductions | money | Benefit and retirement deductions the employees elected. | |
data.payRun.employerTax | money | Payroll taxes the Company owes on top of gross pay. | |
data.payRun.net | money | What reaches the employees’ banks: gross less withholding and deductions. | |
data.payRun.status | string | required | Where the Pay Run stands; only an approved run is paid. |
Example
{
"$id": "https: //api.sb/ kilnbakery.com/ events/ event_1",
"$type": "Event",
"name": "PayRun.prepared",
"at": "2026-10-22T12: 00: 00Z",
"data": {
"payRun": {
"$id": "https: //api.sb/ kilnbakery.com/ pay-runs/ pay_run_1",
"$type": "PayRun",
"company": "company_1",
"periodStart": "2026-10-22",
"periodEnd": "2026-10-22",
"payDate": "2026-10-22",
"kind": "regular",
"humans": [
"human_1"
],
"gross": {
"amount": 9,
"currency": "USD"
},
"withheld": {
"amount": 9,
"currency": "USD"
},
"deductions": {
"amount": 9,
"currency": "USD"
},
"employerTax": {
"amount": 9,
"currency": "USD"
},
"net": {
"amount": 9,
"currency": "USD"
},
"status": "prepared"
}
},
"seq": 1
}