PayrollAu
Updates a timesheet
Changed onUpdate properties on a single timesheet
post/Timesheets/{TimesheetID}
Request
- Base URL: https://api.xero.com/payroll.xro/1.0
- URL: https://api.xero.com/payroll.xro/1.0/Timesheets/{TimesheetID}
- Auth: OAuth 2 (authorization code, authorization URL https://login.xero.com/identity/connect/authorize, token URL https://identity.xero.com/connect/token, scopes: payroll.timesheets)
Path parameters
TimesheetIDstring uuid required
Example:4ff1e5cc-9835-40d5-bb18-09fdb118db9c
Timesheet id for single object
Headers
Idempotency-Keystring
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
Request body
Example request
[
{
"EmployeeID": "72a0d0c2-0cf8-4f0b-ade1-33231f47b41b",
"StartDate": "/Date(322560000000+0000)/",
"EndDate": "/Date(322560000000+0000)/",
"Hours": 31,
"TimesheetID": "049765fc-4506-48fb-bf88-3578dec0ec47",
"TimesheetLines": [
{
"EarningsRateID": "966c5c77-2ef0-4320-b6a9-6c27b080ecc5",
"TrackingItemID": "ae777a87-5ef3-4fa0-a4f0-d10e1f13073a",
"NumberOfUnits": [
3
],
"UpdatedDateUTC": "/Date(1583967733054+0000)/"
}
],
"UpdatedDateUTC": "/Date(1583967733054+0000)/"
}
]Response
A successful request
Example response
{
"Timesheets": [
{
"EmployeeID": "72a0d0c2-0cf8-4f0b-ade1-33231f47b41b",
"StartDate": "/Date(322560000000+0000)/",
"EndDate": "/Date(322560000000+0000)/",
"Hours": 31,
"TimesheetID": "049765fc-4506-48fb-bf88-3578dec0ec47",
"TimesheetLines": [
{
"EarningsRateID": "966c5c77-2ef0-4320-b6a9-6c27b080ecc5",
"TrackingItemID": "ae777a87-5ef3-4fa0-a4f0-d10e1f13073a",
"NumberOfUnits": [
3
],
"UpdatedDateUTC": "/Date(1583967733054+0000)/"
}
],
"UpdatedDateUTC": "/Date(1583967733054+0000)/"
}
]
}Changes
- breaking
request body became required
- breaking