Xero
Connect Xero so customers, suppliers, invoices, payments, purchase orders and bills stay in step both ways.
For business owners, office managers and administrators. Most steps need no technical knowledge.
What the integration does
Job Manager and Xero are kept in step in both directions. Xero is the source of truth: if the same record is changed in both places before they sync, Xero's version is kept.
- Customers and suppliers: adding, editing or deleting one here updates the matching Xero contact (deleting archives it in Xero). Contacts edited or archived in Xero are updated here.
- Invoices: new invoices are sent to Xero straight away, drafts as drafts and everything else as approved. Edits and cancellations here are sent to Xero; edits, voids and new invoices made in Xero come back here.
- Payments: payments recorded here, including card payments taken online, are recorded in Xero. Changing or deleting a payment here changes it in Xero. Payments recorded in Xero (for example from bank reconciliation) appear here against the invoice.
- Purchase orders: sent to Xero as purchase orders once they are placed (drafts as drafts; quote requests are not sent until they become orders). Cancelling an order deletes it in Xero. Changes made to purchase orders in Xero are picked up within 10 minutes.
- Bills: when the supplier's invoice arrives, use Create Bill on the purchase order. The bill is sent to Xero and the purchase order is marked as billed. Bill payments and voids are sent too, and bills entered or paid in Xero appear here.
- VAT: each invoice, purchase order and bill line carries a VAT rate, matched to the active tax rates in your Xero organisation. Totals are worked out the same way Xero does, line by line, so they always agree.
- Changes Xero will not accept: Xero does not allow paid or voided documents to be changed. If you change one here, the change is undone, Xero's version is restored, and the reason is shown in the Accounting Sync report.
- Email alerts: you are emailed if sync failures build up, or if Xero disconnects.
What it does not do
- Quotations are not sent. Quotes stay in Job Manager until they become jobs and invoices.
- Credit notes are not synced. Credit notes raised in Xero are listed as skipped in the Activity tab of the Accounting Sync report. Record refunds against the invoice here.
- Unused Xero contacts are not added. Xero only marks a contact as a customer or supplier once it has a sales invoice or bill. Until then it stays in Xero only; it is added here as soon as it is used.
- Archived Xero contacts are not changed. Xero does not let other apps edit archived contacts. To bring one back, restore it in Xero (Contacts → Archived → Restore).
- Your Xero account is not managed. Your accountant still handles bank reconciliation, payroll, VAT returns and year-end work in Xero.
- Your Chart of Accounts and tax rates are not set up. These must already exist in Xero before connecting.
Before you start
- An active Xero subscription (Starter, Standard or Premium).
- Your Xero bank, sales and purchases account codes; see Find your account codes.
- A Xero developer app (Client ID, Client Secret, Webhook Key); see Register a Xero app.
- Access to Company Settings.
Find your account codes
You need three codes from your Xero Chart of Accounts: the bank account payments are recorded against (for example 090), the sales account for invoice lines (for example 200 Sales), and the purchases account for purchase order and bill lines (for example 300 Purchases).
- In Xero, go to Accounting → Chart of Accounts.
- Find your main bank account, your sales income account and your purchases account.
- Note the short numbers in the Code column. You enter them when you connect.
Not sure which accounts to use? Ask your accountant.
Register a Xero app
Xero needs a registered "app" to create a secure connection. This is a one-time setup you can hand to your IT person.
- Go to developer.xero.com and sign in with your Xero credentials.
- Click New App and enter a name such as Job Manager Invoicing.
- Under OAuth 2.0 redirect URI, enter exactly:
https://yourcompany.job-manager.co.uk/company/xero/oauth-callback - Click Create App.
- Copy the Client ID and keep it somewhere safe.
- Click Generate a secret and copy the Client Secret. Treat it like a password and do not share it by email.
- In the left menu, click Webhooks and add the delivery URL:
https://yourcompany.job-manager.co.uk/webhooks/xero - Copy the Webhook Key shown next to the URL, then click Save.
Connect in Company Settings
- Go to Company Settings and open the Xero tab.
- Turn on Enable Xero Integration.
- Enter the Client ID and Client Secret, then click Save Settings.
- Click Authorise with Xero, sign in if asked, pick your organisation and click Allow Access. If you see an error on return, check the Client ID and Secret have no extra spaces.
- Once your organisation shows under Connected Organisation, fill in:
- Bank/Clearing Account Code: the bank code (for example
090). - Currency Code: for example
GBP. It follows the currency in Regional settings until you change it here. - Webhook Secret: the Webhook Key from your Xero app.
- Sales Account Code: for invoice lines (for example
200). Required; Xero will not accept approved invoices without it. - Purchases Account Code: for purchase order and bill lines (for example
300). Required for purchase orders and bills to sync.
- Bank/Clearing Account Code: the bank code (for example
- Click Save Settings.
Run the setup check
- Click Test Setup on the Xero tab.
- Each check shows a green tick or a red cross with a message saying exactly what to fix.
- Fix any failures, save, and run it again until you see All checks passed — ready to sync.
Common problems it catches: a wrong or missing account code, no active Xero tax rate for a VAT rate you use, a missing Webhook Key, or a currency not enabled in Xero.
Sync with Xero
Run this once after connecting, and again after reconnecting. Afterwards, changes sync automatically.
- Brings in from Xero: customers, suppliers, sales invoices and their payments, bills and their payments, and purchase orders. Existing records are matched (contacts by name or email, invoices and bills by number, purchase orders by order number), so nothing is duplicated. Where both hold the same record, Xero's version is kept.
- Sends to Xero: anything not in Xero yet, and anything changed here while Xero was disconnected.
- Number counters: afterwards the invoice and quotation counters are moved past the highest number brought in, so new documents never clash.
To start it, go to Company Settings → Xero, click Sync with Xero… (the number of invoices and bills and an estimated time are shown), then Confirm & Start Sync. It runs in the background and progress refreshes every 10 seconds. It is safe to run again.
Xero allows about 60 requests a minute, so the sync paces itself:
| Records | Rough time |
|---|---|
| Up to 500 | Under 5 minutes |
| 500–2,000 | 5 to 20 minutes |
| 2,000–5,000 | 20 to 60 minutes |
| 5,000+ | Over an hour; Xero's 5,000-requests-a-day limit means very large syncs carry on the next day automatically |
When it finishes, create a test invoice, check Reports → Accounting Sync shows it as Synced, then check the contact and invoice in Xero.
Questions for your accountant
- Which Xero bank account code should payments be recorded against?
- Which VAT rates apply to your sales and purchases (20%, 5% or 0%)? Each must exist as an active tax rate in Xero.
- If you invoice in other currencies, is the currency enabled in Xero (Settings → Currencies)? Multi-currency needs the Established plan or higher.
- Which income account code should invoice lines go to?
- Which expense account code should purchase order and bill lines go to?
Troubleshooting
| Problem | What to check |
|---|---|
| Test Setup shows red items | Follow the message beside each failed check, save, and run it again. |
| Something shows Failed in the sync report | The reason is shown under the status. Usual causes: a wrong account code, no matching tax rate in Xero, or an expired connection. Fix it, then click Re-sync. |
| "Xero version kept" | The record changed in both places before syncing. Xero's version replaced the local change; make it again if still needed. |
| "Xero refused the change" | Xero does not allow changes to paid or voided invoices and bills, or to billed purchase orders. Make the change in Xero (for example remove the payment first). |
| Xero disconnected email | Go to Company Settings → Xero, click Authorise with Xero, then run Sync with Xero. No history is lost. |
| Wrong organisation connected | Click Disconnect, then Authorise with Xero and pick the right one. |
| A change made in Xero has not appeared | Changes arrive within seconds when the Webhook Key is set, otherwise within 10 minutes. The Activity tab of the Accounting Sync report lists skipped items (unused contacts, credit notes). |
| A purchase order is not in Xero | Quote requests are sent only once they become orders. Otherwise check Reports → Accounting Sync → Purchase Orders for a Failed row; the purchases account code must be set. |
| A bill is not in Xero | Bills are created with Create Bill on the purchase order. Check Reports → Accounting Sync → Bills for a Failed row. |
| A contact will not update in Xero | It is probably archived in Xero. Restore it (Contacts → Archived → Restore) and it syncs again. |
| Currency error from Xero | Your Xero plan may not support multi-currency, or the currency is not enabled (Settings → Currencies, Established plan or higher). |
| Sync shows "failed" or stops mid-way | The background worker may have stopped. Contact info@weztec.com; the sync is safe to run again. |