TimeLeafTimeLeaf
Back to site

Core Features

Payroll Integration

Export approved timesheets to payroll via CSV, QuickBooks Online, or Xero.

Overview

TimeLeaf connects your approved timesheets and leave data to your payroll system. All plans support CSV export. The Professional plan and above add direct integrations with QuickBooks Online and Xero.

CSV export

CSV export is the simplest way to get timesheet data into any payroll system.

Running an export

  1. Go to Reports > Payroll Export.
  2. Select the date range (typically your pay period).
  3. Choose the export format: Standard, QuickBooks, or Xero.
  4. Click Export CSV. The file downloads to your browser.

Only approved timesheets are included in the export. If a timesheet is still pending approval, it is excluded and a warning is shown.

Export formats

FormatDescription
StandardA general-purpose CSV with employee name, date, regular hours, overtime hours, and leave hours. Compatible with most payroll systems.
QuickBooksFormatted to match QuickBooks Online's time activity import schema. Includes employee display name, service item, and billable status.
XeroFormatted for Xero's timesheet import. Groups entries by employee and pay period with earnings rate codes.

Summary export

In addition to the detailed line-by-line export, you can generate a summary export that aggregates hours per employee for the pay period. This is useful for salaried payroll where you only need totals.

QuickBooks Online integration

The QuickBooks integration syncs approved timesheets as TimeActivity entries. Available on the Professional plan and above.

How it works

  1. Connect your QuickBooks account under Settings > Integrations > QuickBooks.
  2. Map TimeLeaf employees to QuickBooks employee records.
  3. When a timesheet is approved, TimeLeaf creates a corresponding TimeActivity in QuickBooks.
  4. The sync runs automatically on approval or can be triggered manually from the payroll export page.

See the QuickBooks integration guide for detailed setup instructions.

Xero integration

The Xero integration syncs approved timesheets as Xero timesheet entries, one per employee per pay period. Available on the Professional plan and above.

How it works

  1. Connect your Xero account under Settings > Integrations > Xero.
  2. Configure earnings rate mappings for regular hours, overtime, and leave.
  3. Approved timesheets sync to Xero as draft timesheets for review before payroll processing.

See the Xero integration guide for detailed setup instructions.

API endpoint

You can also retrieve payroll export data programmatically via the REST API.

GET /api/payroll/export

Query parameters:

ParameterTypeRequiredDescription
start_datestring (ISO 8601)YesStart of the pay period
end_datestring (ISO 8601)YesEnd of the pay period
formatstringNostandard, quickbooks, or xero. Defaults to standard.
summarybooleanNoIf true, returns aggregated totals per employee. Defaults to false.
team_idstringNoFilter by team.
location_idstringNoFilter by location.

The endpoint returns JSON by default. Add Accept: text/csv to the request header to receive CSV output.

API access requires the Professional plan or above and an API key with the payroll:read scope. Generate API keys under Settings > API.