be able to overwrite timesheets via the API
There is no way to delete Approved timesheets or revert them to Draft through the API. Sending a timesheet that already exists returns a message from Xero saying that the TimesheetID needs to be supplied as the timesheet already exists. Supplying the TimesheetID then returns a message saying that the timesheet is not in Draft. Another option would be to let the user revert multiple timesheets to Draft (in a similar way to how they can approve multiple timesheets at once).
Alex Ghiculescu (Tanda) commented
This would be a life saver.
Matthew Schinckel commented
This is actually turning into a pretty big deal.
It's compounded by the fact that an employee may only have one timesheet for a given period, even if the existing timesheet is already processed. This breaks the ability for using timesheets to do corrections (or advances, but I suggest that's not really the best way to do that anyway).
We are not prepared to send through timesheets as DRAFT, as they have already been approved in our system, and approving 300 timesheets again is a fairly big ask.
A workaround might be to send through the data as an EarningsRateLine in a Payslip, but in that case the cost cannot by associated with a Tracking Category.