Save payrun schedule
save_payrun_scheduleCreate or update a pay run schedule: frequency, pay day, the employees it pays, whether each new run is filled with draft payslips, and the tax returns it files. Omit id to create; pass an id to update that schedule. A created schedule is saved with payactionenabled false, so its runs never finalise themselves; arm it with an update only when the user asks. Opens no run; trigger_payrun_schedule does.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "save_payrun_schedule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| payday | No | The pay day. monthly and semimonthly: a day 1-31 or "last". weekly and fortnightly: a weekday such as "friday". | |
| enabled | No | ||
| returns | No | The tax returns finalising files, as source ids from get_payroll_setup. Leave it out for the country's defaults. | |
| populate | No | true fills each new run with a draft payslip per employee on the roster. | |
| employees | No | The employee ids the schedule pays; leave it out for everyone employed. "$delete" clears the list. | |
| frequency | No | How often the run pays: monthly, semimonthly (twice a month), fortnightly or weekly. | |
| payaction | No | ||
| payactionenabled | No | Whether each run the schedule opens finalises and posts itself on its pay date. A created schedule is always saved with false. On an update, true arms it; only arm a schedule the user has asked to arm. |