Integration

Magento 2 Xero integration

Every order from Magento 2 arrives in Xero as a sales invoice, purchase invoice or quote. Products and stock from Xero keep your webshop up to date, without retyping anything.

3 flows available
From €20.49 per month
Set up yourself or let us do it
Magento 2
Magento 2
Xero
Xero
ProductsSales ordersStock
Flows

What can you connect between Magento 2 and Xero?

We group the data that can be exchanged into flows. Add one flow or combine several; you pay per flow per month.

Products

€24.98per month

The range from Xero also appears in your webshop. Changed products are created, or updated by product code if you switch that on. Every variant becomes its own product under the main product.

  • Products flow only towards Magento 2
  • Recognised by product code, written by product number
  • Existing product fails if updating is off
  • Empty date or no change stops the run
Magento 2Xero€24.98per month
Try now for free

Sales orders

€23.98per month

Nobody has to re-enter invoices in the accounts any more. An order from the shop becomes an invoice or quote in Xero. An invoice from Xero comes back as a sales order in Magento 2.

  • Both directions, each in its own form
  • Order stops without a product on product number
  • Existing customer in Xero stays as it is
  • Underlying order lines are not sent
Magento 2Xero€23.98per month
Try now for free

Stock

€20.49per month

The stock level from Xero is written to the product in Magento 2. That product must already exist, because this flow does not create new products and only takes the first stock line.

  • Stock flows only towards the webshop
  • Level on the product, not per source
  • Unknown product number receives no stock
  • Quantity above zero means in stock
Magento 2Xero€20.49per month
Try now for free

Your webshop and your accounts both need the same data entered twice. An order sits in Magento 2, but you still build the invoice by hand in Xero. A product you change in Xero does not show up in your shop, and the stock on your site falls behind what your records say. Retyping costs time every week and creates gaps between what customers can buy and what you actually have.

Products flow from Xero to Magento 2. Anything changed since the saved date is created or updated in the shop by product code, but only if updating is switched on. Without variants you get a plain product. With variants, each one becomes its own product linked to the main product. Stock follows the same route and writes the quantity onto the product itself. Sales orders go both ways: an invoice from Xero becomes an order in the shop, and an order from Magento 2 becomes a sales invoice, purchase invoice or quote in Xero.

You choose the document type in Xero. The default is a sales invoice. You can also have a purchase invoice or a quote created. A quote receives no payments. If you switch rounding on, a due date, a ledger code per line and an account per payment are included, and that account must already exist in Xero. If you switch rounding off, no status is sent. In the shop you decide whether a guest order is allowed and whether an invoice that has already been processed is sent again when a new status combination occurs.

In practice

What this integration solves

1

Webshop order to the accounts

At the end of the day you want the webshop revenue in the accounts. Pending orders go to Xero, oldest first, and arrive there as sales invoices. The order reference points to an existing invoice. If it is already there, the connection skips it. A deleted invoice can be created again.

2

Invoice becomes a shop order

An invoice in Xero must also appear as an order in the shop. Number, contact, date, currency, and outstanding, paid and credited amounts can all be sent. In Magento 2 an order is created that has not yet been processed. Each line looks up the product by product number. Without that product the order does not arrive.

3

Stock after a movement

After a stock movement in Xero, the webshop must not sell too much. Changed products carry their quantity over to Magento 2. Only the first line counts, on the product itself and not per source. An unknown product number delivers nothing, but you do get a notice. Above zero, the product is in stock.

How do you set up the Magento 2 Xero integration?

  1. 1Create a free APIcenter account.
  2. 2Add Magento 2 and Xero in the wizard and authorise both.
  3. 3Choose the flows you need and check the settings.
  4. 4Test with a few records in the activity log and switch the integration on.

Set it up yourself

Create a free account, start the wizard and follow the manuals per application.

  • Access to the APIcenter dashboard
  • Manuals and videos per application
  • Choose the data you want to synchronise
from €995.00

Installation package

Our onboarding team sets up your integration and makes sure the basics work perfectly.

  • Installation by APIcenter experts
  • Authorisation of both applications
  • Configuration of your first flow
  • Video call to walk you through it

Frequently asked questions

Which data moves in which direction between Magento 2 and Xero?

Products and stock move from Xero to Magento 2 and not back. Sales orders do move between systems. An order from the shop becomes a sales invoice in Xero by default, or a purchase invoice or quote if you choose that. An invoice from Xero becomes an unprocessed order in the shop. There is no separate customer flow: the debtor is created with the document.

What if the product, customer or order does not yet exist on the other side?

An order sent to Xero requires an email address, a first name and a last name. The debtor is looked up by email, created if missing, and not updated if it already exists. Without a name, the first name becomes the customer name. In the shop the order fails as soon as a line has no product on product number. Stock does not create a product. A product without a product number fails, and an existing number fails as long as updating is off.

How often does the connection run and which records are included?

Products and stock from Xero are read from a date onwards. That date moves to the last changed product, starting 1 January 2026. If the date is missing, or nothing has changed, the run stops. If you set the date back, the products come through again. Orders from the shop are taken by change date, oldest first. Invoices from Xero have no moving date: a processed invoice stays behind, except when a new status combination occurs.

How does the connection recognise existing records, and are they overwritten?

Products from Xero are recognised by product code and looked up in the shop by product number. Only with updating switched on is an existing product overwritten; with it off, that line fails. An invoice in Xero matches the order reference, a quote matches the quote number, and an existing document is not created again. The debtor in Xero remains unchanged. For an order sent to the shop, the customer follows the same update switch.

Which choice matters specifically for Magento 2 and Xero?

Stock writes one number onto the product and leaves sources alone: only the first stock line counts. Lines that sit under another line in the shop do not go to Xero. A quote receives no payments. If you want to send a status along, switch rounding on and fill in a due date, a ledger code on each line and an existing payment account. Without that account, the payment is not created.

Connect Magento 2 and Xero today

Create a free account and set up your integration with the wizard, or order the installation package in your dashboard.