Skip to main content

Connect to Xero

Description of how the integration with Xero works

A
Written by Andraž Furlan

This guide explains how the Xero integration works in My Hours, what gets imported and transferred, which workflows are available, and the key behaviors to expect especially around contact selection, duplicates, renaming, and invoice fields.

What gets imported/transferred (field mapping)

Xero → My Hours

Workflow

Xero

My Hours

One-time import

Contact (all contacts)

Client + Project

Scheduled contact import

Contact with account number MH

Client + Project

Rule: a Xero contact picked up by the scheduled import creates 1 Client in My Hours and 1 Project in My Hours with the same name as the Client/Contact. The one-time import creates clients only — no projects.

My Hours → Xero

My Hours

Xero

Invoice

Invoice

Contacts & projects import workflows (Xero → My Hours)

Two workflows are available.

1) One-time import

Runs on demand and imports all of your Xero contacts into My Hours as clients. No projects are created. Use this to populate your client list in one go.

The MH account number filter does not apply here this import brings in every contact in your Xero organisation, regardless of account number.

2) Scheduled contact import

Unlike the one-time import, this workflow is selective. It runs automatically on a schedule and picks up only the Xero contacts that have MH as their account number, creating a client and a project in My Hours for each.

Selecting which contacts get transferred

To mark a contact for the scheduled import, open it in Xero and enter MH in the Account Number field. Any contact without that value is skipped.

This is the only setup required to control the sync — there is no manual mapping on the My Hours side.

Duplicate prevention & renaming behavior

Both workflows try to prevent duplicates.

How duplicates are avoided. The workflows check whether the same contact/project already exists in My Hours. The check is done by name.

What happens if names change. Because matching is done by name, renaming has a side effect. If you rename a contact in Xero, the next import will not rename the existing My Hours items it will import the renamed contact as new, creating a new client (and, for the scheduled import, a new project).

Bottom line: name changes on either side can result in a new client/project being created.

Import limitations (Xero → My Hours)

All data is transferred except:

  • Tax name

  • Tax value

  • Custom ID

Invoice transfer workflow (My Hours → Xero)

Invoices are transferred from My Hours to Xero using one scheduled workflow intended specifically for invoice transport.

What is transferred

  • Line items

  • Quantity

  • Price

  • Issue date

  • Due date

  • Reference

  • Currency

  • Invoice number

What is not transferred

  • Tax

  • Discount

Both need to be set up or adjusted in Xero after the invoice is transferred.

Reference & currency rules. The Reference field in Xero is populated with the My Hours Invoice ID. Currency is set to match the currency configured in the My Hours account.


Quick setup steps

  1. Connect Xero to My Hours.

  2. Choose how you want to import contacts/projects:

    • Manual import, or

    • Scheduled import

  3. Enable the scheduled invoice workflow (My Hours → Xero) if you want invoices transferred.


Security & Authentication

How integrations handle authorization:

  • After you connect and authorize any app, My Hours automatically generates an API key for your workspace.

  • This key is required for the integration to run.

  • Data exchange is handled via Paragon, our trusted integration provider.

  • You can disconnect the integration at any time from the Configuration tab (and revoke the API key if needed).

Did this answer your question?