Save payslip
save_payslipCreate or edit a DRAFT payslip: employee, pay run, period, pay date and the earning, deduction and contribution lines. Omit id to create; pass an id to edit that payslip. A created payslip is always a draft and an edit never changes the draft flag, so this never posts to the ledger; a finalised payslip refuses an edit. A payslip on a pay run that finalises itself on its pay date is refused.
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_payslip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| lines | No | ||
| notes | No | ||
| payrun | No | ||
| paydate | No | ||
| employee | No | ||
| periodend | No | ||
| periodstart | No |