create-timesheet
Create payroll timesheets in Xero by specifying employee details, calendar periods, and work hours to track and manage employee time for accurate payroll processing.
Instructions
Create a new payroll timesheet in Xero. This allows you to specify details such as the employee ID, payroll calendar ID, start and end dates, and timesheet lines.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"payrollCalendarID": "<payrollCalendarID>",
"employeeID": "<employeeID>",
"startDate": "<startDate>",
"endDate": "<endDate>"
},
"name": "create-timesheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endDate | Yes | The end date of the timesheet period (YYYY-MM-DD). | |
| startDate | Yes | The start date of the timesheet period (YYYY-MM-DD). | |
| employeeID | Yes | The ID of the employee. | |
| timesheetLines | No | The lines of the timesheet. | |
| payrollCalendarID | Yes | The ID of the payroll calendar. |