Process Timesheet Batches for Xero Payroll Integration
Overview
Once scheduling is complete and employee shifts have been reviewed, create a Timesheet Batch and export it to Xero Payroll. Astalty creates draft Xero timesheets containing the mapped earnings-rate IDs and daily units. Review those drafts in Xero before processing the pay run.
Process Timesheet Batches
To create a batch for payroll export:
- Navigate to Scheduling and check that all Shift Alerts and Shift Approvals have been processed for the Pay Period. You can learn more on these processes by checking the following guides:
- Navigate to Timesheet Batches in Scheduling

- Click on Create Batch and choose how to generate it:
- By Xero payroll calendar - pick the Payroll calendar you're paying. The dates are set automatically to that calendar's next pay period, and only staff assigned to the calendar in Xero are included. This choice only appears once you have payroll calendars synced from Xero.
- Manual date range - set the From and To dates yourself. All staff with eligible shifts in the range are included. Xero export validation compares these dates with the next period for the default payroll calendar in your Xero settings, so the range must match that period exactly.
Review any warnings shown for the period, including unapproved shifts or shift alerts, shifts still in progress and staff with no payroll calendar. Then click Create Batch. See Creating Timesheet Batches for the full detail on both options.

Validate and Export the Batch
- Select the Batch from the Timesheet Batches page, and click Actions > Export Xero Timesheet (API).

- Click Validate. Blocking errors must be fixed before export. A warning can be accepted with Continue anyway after you review it. Most errors include a Fix issue button (wrench icon) that opens the relevant screen. See Resolving Timesheet Batch Validation Errors for the full list.

- Once validation passes, the Employees field appears. Leave it on All Employees to include every eligible employee in the batch, or click it to select specific employees. Review and accept the required agreements before clicking on Create Export.

The export runs in the background and moves through queued and processing states. Astalty sends and records each worker separately, so one rejection does not undo timesheets Xero already accepted.
| Result | What it means |
|---|---|
| Completed | Every selected worker was sent, or the export completed the required changes to earlier drafts. |
| Partially failed | Some workers were sent or had earlier draft hours removed, but others failed. Check the counts and reasons. |
| Failed | No worker was successfully sent or cleared. A failed worker can still have a partly updated draft, so check the error and the draft in Xero before retrying. |
Only one active export can run for a batch. Wait for a Queued or Processing export to finish before starting another export or deleting the batch. Successful workers receive Draft timesheets in Xero, where your payroll administrator can review and approve them before processing the pay run. The accounting integration's New Invoice Status setting does not change payroll timesheet status.

Recover From an Incomplete Draft
A worker can fail after Xero has accepted some changes to their draft. Read that worker's result before approving anything in Xero:
- Holds only part of this batch's hours means some of the intended hours are missing. Fix the reason Xero refused the line, then validate and export again to send the remaining hours.
- Only partly updated means the draft matches neither its previous hours nor the current batch. Check the draft in Xero, resolve the reported issue, then validate and export again.
- Only partly cleared means a worker who is no longer in the batch still has some hours from an earlier export in their draft. Fix the reported issue, then validate and export again so Astalty can remove the remaining hours.
Keep the affected timesheet as a draft until the export succeeds and its hours match the batch. Approving it early prevents Astalty from correcting it on the next export.
Re-exporting a Batch
Run Validate again before every re-export. Xero allows one timesheet per worker for a pay period, so Astalty handles existing timesheets according to their status:
| What Xero already has | What the export does |
|---|---|
| A draft for this worker and pay period | Warns that the draft's hours will be replaced, then replaces every line with the current batch when you continue. |
| A draft sent by another Astalty batch for the same dates | Leaves that draft unchanged and does not send this worker. |
| A timesheet that is no longer a draft | Leaves it unchanged and does not send this worker. |
| A later-period timesheet, with no timesheet for this batch's pay period | Leaves it unchanged and does not send this worker, because Xero will not accept a new timesheet for an earlier period. |
The last three cases are warnings because they affect only that worker. If there are no blocking errors, select Continue anyway to send everyone else. The export result lists anyone Xero refused.

If a previous export of this batch sent a worker who no longer has hours in the batch, validation warns that re-exporting will remove every hour from that earlier draft, including hours added in Xero since. Astalty can do this only while the timesheet is still a draft. If it is no longer a draft, the worker fails and the hours remain in Xero.
Choosing specific employees does not remove hours for an unselected worker who is still in the batch. A worker who has left the batch is still cleared because they no longer appear in the employee selection.
This automatic removal applies only when Astalty recorded the worker's draft during an earlier export of the same batch. Some older Astalty drafts may not have been recorded. Older drafts, drafts created manually, and drafts since used by another batch may need to be corrected in Xero.
Payslip Preview
After Xero processes payroll, the payslip reflects the pay items and rates configured in Xero. Astalty's export sends mapped earnings-rate IDs and daily units, not calculated dollar totals. Check the Xero pay run against the interpreted batch before posting it.

Processing Timesheet Batches Video Walk-Through
In this video, we walk through how to prepare and submit Timesheet Batches from Astalty to Xero.