Save employee
save_employeeCreate or update a payroll employee: name, number, contact and identity details, role, department, employments and standing package. Omit id to create; pass an id to update that employee. An update that ends the employee's employment (a new end date with no employment starting the next day) files their tax certificates; a status change, a re-sent end date or a create files nothing. Writes no payslip and posts nothing to the ledger.
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_employee"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| city | No | ||
| name | No | ||
| role | No | ||
| No | |||
| notes | No | ||
| number | No | ||
| suburb | No | ||
| address | No | ||
| contact | No | The id of the contact this employee is linked to: a contact, customer or supplier id from this business. "$delete" unlinks it. | |
| country | No | ||
| starred | No | ||
| address2 | No | ||
| archived | No | ||
| idnumber | No | ||
| addresses | No | The full list of addresses. It replaces the stored list: an address left out is removed. Leave the key out to keep the stored list; send [] to clear it. | |
| birthdate | No | ||
| taxnumber | No | ||
| department | No | ||
| postalcode | No | ||
| employments | No | ||
| identifiers | No | The full list of the employee's ID, passport and tax numbers. It replaces the stored list: an identifier left out is removed. Leave the key out to keep the stored list; send [] to clear it. idnumber and taxnumber are kept in step with it. | |
| packagekind | No | How the package is paid. annual, monthly and weekly: packageamount is the pay for that period and packagequantity is not sent. hourly and daily: packageamount is the RATE per hour or day and packagequantity is the normal hours or days per week. "$delete" clears it. | |
| jurisdiction | No | The employee's jurisdiction id within the business's payroll pack, when the pack has more than one. | |
| contactnumber | No | ||
| packageamount | No | The package amount; see packagekind. "$delete" clears it. | |
| packagequantity | No | Normal hours or days per week, for an hourly or daily package only. "$delete" clears it. | |
| paysliptemplate | No | The id of the payslip template whose lines this employee's payslips start from. | |
| leaveentitlements | No | The employee's own yearly leave days per leave type (PROD-3501). Accrual uses, for each month, the row for the type in force then, in place of the leave type's yearly rate; 0 stops that type for the employee. Each row applies from its effectivefrom date (PROD-3502), so a change adds a row and leaves the old one as history. The list replaces the stored one: leave the key out to keep it, send [] to clear it. A row that is in force on or before the employee's last finalised payslip cannot be changed or removed (leaveentitlement-affects-finalised-payslips, with lockedthrough). |