Xero Bills Connector for Business Central
Bring approved supplier bills from Xero into Microsoft Dynamics 365 Business Central as purchase invoices, for one company or many, through a single Xero connection.
One company talks to Xero. Every company posts only its own bills.
Read-only from Xero, ready to post in Business Central
The connector reads approved bills, supplier contacts and tax rates from your Xero organisation and turns the bills into purchase invoices in Business Central. It only reads from Xero; it never changes anything there.
If several legal entities share one Xero organisation, each bill is tagged in Xero with a tracking option that says which company it belongs to. The connector uses that tag to send each bill to the right Business Central company.
- ✓Downloads approved bills with their lines, supplier contacts and tax rates on a schedule you choose.
- ✓Routes each bill to the right company and keeps bills with no company tag visible for review instead of dropping them.
- ✓Creates missing vendors from Xero contacts, using your vendor templates.
- ✓Creates purchase invoices and, if you choose, posts them straight away.
- ✓Checks VAT and totals against Xero before posting, so a wrong tax mapping is caught before it reaches the ledger.
- ✓Shows every bill's status in one list, with the reason for any error and a link back to the bill in Xero.
Connected company
Holds the only Xero connection. Downloads bills, contacts and tax rates into a list every company can see, and decides which company each bill belongs to.
Processing company
Picks up its own bills from that list, creates vendors and purchase invoices, and records the result. It never connects to Xero.
With only one company, it simply takes both roles.
Set up the connector, step by step
Check the prerequisites, connect one company to Xero, then set up each company that receives bills.
- ✓Business Central: Business Central online, Essentials or Premium. All companies that receive Xero bills must be in the same environment.
- ✓Xero access: a Xero user who can approve app connections for your organisation.
- ✓Business Central permissions: the Xero Integration – Admin permission set for whoever sets up the connection, and Xero Integration – Processor for finance users and the job queue user in each company.
- ✓Company tags in Xero: if you have more than one company, a tracking category (for example “Company Code”) filled in on every bill line.
- ✓Chart of accounts: Xero account codes that exist as G/L account numbers in each company, or a translation table (see field mappings).
- ✓VAT setup: VAT posting groups and VAT posting setup in each company for the tax rates you use in Xero.
Process bills
Open Xero Bills. In a processing company you see only that company's bills; in the connected company you see all of them.
- ✓Process All Ready processes every waiting bill now, the same as the scheduled job.
- ✓Process Selected processes only the bills you mark.
- ✓Open Purchase Invoice opens the Business Central document created from a bill.
- ✓Open in Xero opens the original bill in your browser.
Each bill is processed on its own. If one fails, nothing is left half-created and the rest carry on.
What each status means
| Status | Meaning | What to do |
|---|---|---|
| Ready | Waiting for its company's next run | Nothing |
| Created | Purchase invoice created, not posted, because automatic posting is off | Review the invoice and post it |
| Posted | Posted in Business Central | Nothing |
| Unmapped | The bill has no company tag, or its tag isn't in the company mapping | Fix the tag in Xero, or add it to Xero Company Code Mapping, then choose Reprocess |
| Error | Processing stopped; the reason is shown on the bill | See Troubleshooting, fix the cause, then process the bill again |
| Skipped | Voided or deleted in Xero before it was posted | Nothing |
Fix common errors
Most problems come from the connection to Xero or from mappings. Find the message you see and follow the fix.
Connecting to Xero
| Message | Cause | Fix |
|---|---|---|
| invalid_scope | An old or misspelled scope is in the Scope field | Use only the four scopes in step 3, then authorise again |
| unauthorized_client | Wrong Client ID, wrong app type, or redirect URI doesn't match | Make sure the Xero app is a Web app and the redirect URI matches character for character |
| invalid_grant | The authorisation code expired or was already used | Run Authorize App again and get the token immediately |
| 401 Unauthorized | The access token expired and wasn't renewed | Check the Refresh Access Token job is running; if it stopped for more than a few weeks, authorise again |
| 429 Too Many Requests | Xero's API limit was reached | No action needed; the next scheduled run carries on |
| No bills arrive | Wrong status filter or date window, or the connection is turned off | Check Invoice Status, the day limits and Enabled in Xero Setup, and the Integration Logs |
Processing bills
| Error on the bill | Fix |
|---|---|
| Tax type is not mapped | Fill in the new row in the TAX value map |
| Tax rate differs from Business Central | Correct the mapping or the VAT posting setup |
| Totals differ from Xero | Compare with the bill in Xero; check whether it's tax-inclusive, has discounts, or uses the wrong tax mapping |
| G/L account does not exist | Create the account, or add the Xero code to the G/L account translation table |
| Posting date is not within your allowed range | Open the period or adjust allowed posting dates for the job queue user |
| Vendor Invoice No. must have a value | Add a bill number in Xero; the bill is refreshed on the next pull |
| Mixed company codes | The bill's lines are tagged for more than one company; correct the tags in Xero |
Frequently asked questions
Need help setting up the connector, or stuck on an error? Our Business Central consultants can help. Help for all TSL Labs apps is in the Help Center.
Send an enquiryYour use of the Xero Bills Connector is governed by the TSL Labs Software Terms of Use, which cover the license, fees, your responsibilities for postings and tax mappings, warranty and limitation of liability. How the connector handles data is described in the TSL Labs Software Privacy Policy.
Xero is a trademark of Xero Limited. Microsoft and Dynamics 365 Business Central are trademarks of the Microsoft group of companies.
Does the connector change anything in Xero?
No. It uses read-only access and never creates, edits or approves anything in Xero.
Which Xero bills are imported?
Supplier bills (Accounts Payable) in the status you choose in Xero Setup, usually Authorised. Sales invoices are not imported.
Can a bill be posted twice?
No. Each bill is stored once using its Xero ID, and the connector checks for an existing posted invoice with the same ID before creating a new one.
Can our companies see each other's bills?
Processing pages show only the user's own company. Assign the Xero Integration – Admin and Viewer permission sets only to people who should see all companies.
We have one company. Do we still need company tags?
No. With one company it takes both roles, and every bill is processed there.
What happens if the Xero connection stops?
No new bills arrive, but nothing already imported is affected. The job sends an email alert, and you fix it once, in the connected company.
Where are the details of each Xero call?
In Integration Logs, with the address called, the result and Xero's response. Entries older than the retention period are removed automatically.