Xero Payroll Guide: Add two tracking categories in employee salary & timesheet

Do you use Xero for your payroll management, and have you encountered any restrictions with tracking categories?

If so, this article is right for you because I will cover the entire problem and provide multiple solutions to overcome the limitations.

Problem: Xero’s Payroll Tracking Limitations

When consulting business owners for Xero integration, I found that timesheets can only have one tracking category, which is problematic for payroll administrators needing detailed tracking.

Isn’t it a strange limitation?

Rather than worrying about why a major company like Xero would enforce such a limit, let’s understand the problem and derive solutions to it.

I am hoping that someday xero will make this enhancement to its core product. until then you can keep using this workaround to have multiple tracking categories

Here is some proof of other customers having similar problems reported in Xero Central.

Xero central discussions under payroll & employees

Screenshot of a discussion post on Xero Payroll about splitting an employee's salary across two departments, featuring responses, view count, and a log-in button.

A Xero product idea to assign multiple tracking categories to employees has received 8 upvotes as of July 2024(https://central.xero.com/s/question/0D53m00007ERyhUCAT/can-i-split-an-employees-salary-across-two-tracking-categories)

Screenshot showing 8 upvotes for Xero feature request to assign multiple tracking categories to employee, timesheet and payroll setting

According to [Xero’s official documentation](https://central.xero.com/s/article/Payroll-tracking-in-Xero), payroll tracking currently allows the assignment of only 1 employee group and 1 tracking category.

To assign a tracking category in Xero Payroll, navigate to payroll settings. Look for the highlighted section where you can select a category under "Employee Groups" or "Timesheet Categories." This streamlined process ensures accurate payroll management and efficient tracking.
Dropdown menus for "Employee Groups" and "Timesheet Categories," both featuring "Department" as an option, seamlessly integrate with Xero Payroll. Logo of Satva Solutions in the bottom right corner.

In this, the client must assign both tracking categories in pay run/timesheet transactions.

This basic limitation in Xero has many reports in the Xero business community (Xero central) and product idea requests, showing it is a common concern among users.

Let’s Investigate in Xero Tracking Categories

Xero is powerful accounting software suitable for Small and Medium Businesses, allowing accountants to track transactions with features called tracking categories.

To find out if payroll tracking categories are limitations?

Screenshot of a tracking categories page in business software, similar to Xero Payroll, showing options to add new categories and configure existing ones. Includes sections for department management and the ability to archive them efficiently.

Technically, Xero allows you to create any number of tracking categories. However, Xero allows only 2 active tracking categories to be used within all transaction pages, including quotes, invoices, payments, bills, bill payments, and manual journals.

However, Xero doesn’t provide the same coverage of two tracking categories in payroll modules like payroll settings, timesheets, and pay runs.

Below is the Proof

Configuring Default Timesheet Category in Xero Payroll Settings

To configure a default timesheet category in Xero Payroll Settings, follow these steps:

  1. Log in to Xero: Enter your credentials and access your Xero account.
  2. Navigate to Payroll Settings: Click on the “Payroll” tab in the main menu.
  3. Open Payroll Settings: Select “Payroll Settings” from the dropdown menu.
  4. Configure Default Timesheet Category: In the Payroll Settings page, locate the section for configuring the default timesheet category and set your preferred tracking category.
Screenshot of a company dashboard featuring Xero Payroll options, highlighting sections like primary checking, invoices, bills, accounts watchlist, and a handy dropdown menu for payroll management.

Configure timesheet categories for payroll tracking. Payroll settings are showing only one tracking category selection, notice that Xero doesn’t show two tracking categories for payroll tracking configuration.

Screenshot of an organization settings page in Xero Payroll software, displaying options for bank accounts, payroll tracking, and payroll options.

Demonstrating Tracking Category Limitations in Xero Payroll

To illustrate the limitations of tracking categories in Xero Payroll, let’s go through the following steps:

let’s select one tracking category for the department in the Timesheet Categories select box.

Screenshot of Xero Payroll's organization settings page displaying payroll tracking and pay slip options, complete with a dropdown menu open for timesheet categories.

Now let’s add a time log for one of the employees, Notice that the screenshot below it shows only one select box of tracking category.

Screenshot of a Xero Payroll timesheet page for February 2024, showing status as draft. It includes fields for ordinary hours and department, along with options to delete, save, or approve the timesheet.
The timesheet draft for February 2024 is displayed on the screen, featuring department selection options and an hours input grid, seamlessly integrated with Xero Payroll.

These screens prove that only 1 tracking category selection is allowed for posting timesheets in Xero.

In contrast, Xero invoice transactions support two tracking categories, highlighting the difference in functionality between payroll and transaction modules.

  • Bill Transactions: Xero allows two tracking categories.
  • Quote Transactions: Xero supports two tracking categories.
  • Expense Receipt Transactions: Xero supports two tracking categories.

This highlights the difference in functionality between the payroll module and other transaction modules in Xero.

The invoice creation interface integrates seamlessly with Xero Payroll, displaying product details, quantity, price, and tax. It offers options to input department and client information. The total amount is conveniently shown at the bottom as 220.00.
Screenshot of an online invoicing system integrated with Xero Payroll, showcasing a new invoice template. Fields include issue date, due date, invoice number, reference, and line items. Total amount is 220.00.

Same way Xero bill transaction has support for two tracking category

A digital bill form from an accounting software interface, such as Xero Payroll, displays fields for vendor, date, due date, reference, item descriptions, quantity, unit price, account, and total amount.

Xero Quote transaction has two tracking categories supported

Screenshot of a web application page for creating a new quote, seamlessly integrated with Xero Payroll. Includes fields for contact, date, currency, and items. Totals are displayed at the bottom.

Xero expense receipt transaction has two tracking categories supported.

Screenshot of a web application page for creating a new quote, seamlessly integrated with Xero Payroll. Includes fields for contact, date, currency, and items. Totals are displayed at the bottom.

Solution for Managing Two Tracking Categories in Xero Payroll

When Xero creates a pay run for an employee’s timesheets, which has only one tracking category, it generates a journal entry behind the scenes for the pay run.

Let’s understand this with an example of Alex Martin’s timesheet.

Below is a fictitious timesheet for Alex for one week. Note that one department has been assigned:

A timesheet for February 2024 in Xero Payroll shows the approved status for Alex Martin with 126 monthly hours, ending on 07 Feb 2024. Earnings detail reveals that 20 hours were dedicated to development work.

Let’s process a pay run in Xero for 1 employee for 1 week

Post the Pay Run: Once you post the pay run in Xero, you can view it in the “pay run journal” report. This report shows the account, description, debit, and credit entries.

The Xero Payroll dashboard displays a draft for February 2024, featuring details like total earnings (5,280), taxes (1,184), and net pay (1,336) for one employee. The payment date is set for 01 Mar.

We can retrieve this pay-run journal original data using Xero API and then repost the same data as a “manual journal with two tracking categories”.

This is a screenshot of a Pay Run Journal report from a demo company using Xero Payroll. It displays wages, windings, and wages payable in a table with account, debit, and credit columns. The total debits and credits both tally up to 2,530.00.

Below is an example of a manual journal showing the same account, description, debits, and credits, but with two tracking categories: department and client.

This approach allows you to bypass the limitation of only one tracking category in the payroll module, ensuring comprehensive tracking and reporting.

A screenshot of a Xero Payroll manual journal entry displays earnings, taxes, and wages with corresponding accounts and amounts, totaling 2,520.00 AUD.

Also Read: Bank Revaluation in XERO

High-Level Technical Solution for Managing Tracking Categories in Xero Payroll

To develop a technical solution for managing tracking categories in Xero Payroll, follow these high-level steps:

  1. Retrieve Last Pay Run Data using Xero API
  2. Copy and Modify Pay Run Line Items:
    • Copy all pay run line items.
    • Add these items to a new manual journal.
    • Assign a second tracking category to each line item.
  3. Post New Manual Journal:
  4. Delete Original Pay Run:

Multiple approaches can be used to achieve this solution:

  1. SaaS Integration Tool – Make.com:
    • Use Make.com to automate the process of retrieving, modifying, and reposting pay run data.
  2. SaaS Integration Tool – Zapier:
    • Use Zapier to create automated workflows that handle the retrieval and reposting of payroll journals with multiple tracking categories.
  3. Xero Custom Solution:
    • Develop a custom solution tailored to your specific needs to manage payroll journals and handle multiple tracking categories effectively.

By following these steps and considering the various approaches, you can efficiently manage and report payroll data with the desired tracking categories in Xero.

Solution 1: Make.com

Let’s look at the feasibility of using the SaaS integration tool Make.com

Screenshot of a connection creation window with options to select scopes, including one labeled "paypal.payouts.read" highlighted in a red box. Below, a note discusses Integromat's evolution to Make, highlighting its enhanced integration capabilities with tools like Xero Payroll.

Assuming you already have a make.com account, you create a scenario with a custom Xero connection.

While creating a new connection, make.com shows that it has the capability for access to pay runs, and timesheets within the scope selection

But when you search for the entity in make.com with the word “pay” I can’t find any entity showing the ability to retrieve pay runs.

Screenshot of a Xero Payroll interface showing options under 'Payments,' 'Employees,' 'Asset Types,' and 'Tracking Categories.' A search for "pay" is highlighted at the bottom.

Documentation Review:

  • After reviewing Make.com’s documentation (https://www.make.com/en/help/app/xero), it’s clear that it does not support the Payroll API.

Due to these limitations, Make.com cannot be used to solve this problem quickly. As a result, it is not a viable option for this particular solution.

Solution 2: Zapier

Let’s try the first AI copilot in Zapier, it’s in beta as of now.

It seems the copilot understands what I need, but is not able to translate that understanding to correct zap.

A screenshot of a chat with Copilot Beta discussing a Zap for Xero Payroll. The steps involve creating a new payment in Xero and adding an inventory item. Satva Solutions logo is present.

Let’s skip Copilot and create Zap manually,

But as shown in the screenshot below, there is no event available for pay-run data reading.

Screenshot of an app interface displaying event selection for Xero Payroll Premium. User enters "pay" in the search field, revealing options such as New Payment and New Reconciled Payment listed below.

API Limitations:

  • The key reason for this limitation is that Xero has multiple APIs available based on usage.
  • The most common API is the Accounting API, whereas the Pay run endpoint falls under the Payroll API.

Neither Zapier nor Make.com supports the Payroll API.

Screenshot of a webpage showcasing the PayRun API, featuring an overview and specifics on the GET PayRuns request. The sidebar includes navigation options related to Xero Payroll for seamless integration insights.

Additionally, the Payroll API is only available for Australia, New Zealand, and the United Kingdom. It is not available in other countries like Canada, the USA, etc.

Solution 3: Custom Xero Integration

To develop a custom Xero integration with the Xero Payroll API, the following API endpoints can be used

The table, titled "Original Pay Run Data," integrates seamlessly with Xero Payroll, showcasing columns like Employee Name, Employee Group, Hours Worked, First Tracking Category (Department), and Amount. The rows feature data for four employees. Logo: Satva Solutions.
  1. Retrieve Pay Runs:

    • Use the Xero Payroll API to retrieve pay runs via the GET API: GET Pay Runs(https://developer.xero.com/documentation/api/payrollau/payruns#get-payruns)
    • Alternatively, you can scan through the Journal report within a specific account to get all pay-run journals using the GET Journals API(https://developer.xero.com/documentation/api/accounting/journals#get-journals).
  2. Create Rules in Xero Spreadsheet:

    • Develop a spreadsheet where rules are defined to assign a second tracking category. This can be based on the first tracking category, employee, or employee group.
  3. Payroll Automation with Custom App:

    • Develop a custom Xero app that uses the rules defined in the spreadsheet.
    • This app will automate the process of recreating journals with the second tracking category and posting them
      Table illustrating Xero Payroll rules for assigning a second tracking category to employees, based on their first tracking category and department.
  4. based on the rules spreadsheet, a Xero custom app can do automation to recreate journals and post them.
  5. at the moment delete API for the pay run is not available so, deletion of the pay run has to be done manually.

By following these steps, you can efficiently manage and automate payroll journal entries with multiple tracking categories in Xero.

Conclusion on adding two tracking categories in XERO

Until Xero adds the feature of supporting two tracking categories in payroll. The best way to move forward is to develop a custom solution that recreates the manual journal for each pay run because make.com and Zapier both don’t support the payroll API endpoints.

Writing custom functions in both integration tools would be more complex and time-consuming. So creating a custom Xero app for handling this would be the best option which gives flexibility, scalability, and control.

Have you faced a similar issue? How did you fix it? Let us know via email!

Article by

Chintan Prajapati

Chintan Prajapati, a seasoned computer engineer with over 20 years in the software industry, is the Founder and CEO of Satva Solutions. His expertise lies in Accounting & ERP Integrations, RPA, and developing technology solutions around leading ERP and accounting software, focusing on using Responsible AI and ML in fintech solutions. Chintan holds a BE in Computer Engineering and is a Microsoft Certified Professional, Microsoft Certified Technology Specialist, Certified Azure Solution Developer, Certified Intuit Developer, and Xero Developer.Throughout his career, Chintan has significantly impacted the accounting industry by consulting and delivering integrations and automation solutions that have saved thousands of man-hours. He aims to provide readers with insightful, practical advice on leveraging technology for business efficiency.Outside of his professional work, Chintan enjoys trekking and bird-watching. Guided by the philosophy, "Deliver the highest value to clients," Chintan continues to drive innovation and excellence in digital transformation strategies from his base in Ahmedabad, India.