Create Xero Invoices for New Shopify Orders
Whenever a new order is placed in your Shopify store, this workflow automatically creates a matching invoice in Xero, complete with customer details and line items. If the customer isn’t already in Xero, the workflow adds them first, then generates the invoice. This eliminates manual data entry and ensures your ecommerce orders flow directly into your accounting system, keeping your financial records accurate and up to date.
Trusted by 1,000+ Shopify merchants — from solo operators to scaling brands.

How it works
9 steps to automatically create Xero invoices from Shopify orders while managing customer contacts
Order Created
Order Created
Retrieve Shop
Retrieve Shop
Get List of Contacts
Get List of Contacts
Get List of Accounts
Get List of Accounts
Shopify Customer Exists in Xero
Shopify Customer Exists in Xero
Create Invoice
Create Invoice
Shopify Customer Does Not Exist in Xero
Shopify Customer Does Not Exist in Xero
Create or Update Contacts
Create or Update Contacts
Create Invoice
Create Invoice
Ready to automatically create Xero invoices from Shopify orders while managing customer contacts
Get setup in 15 minutes.
Frequently asked questions
What happens if a customer's email changes between orders?
If a customer uses a different email address for a new order, the workflow treats them as a new customer and creates a separate Xero contact. This can result in duplicate contacts for the same person with different email addresses. To prevent this, you could modify the workflow to search Xero by customer name in addition to email, or manually merge duplicate contacts in Xero periodically.
Can I create invoices in draft status instead of automatically approving them?
Yes, you can modify the invoice creation steps (Steps 6 and 9) to set the invoice status. Add a "Status" field to the invoice body with value "DRAFT" instead of leaving it as default (which typically creates submitted/approved invoices). Draft invoices allow you to review orders before officially issuing invoices to customers, useful for wholesale or custom orders requiring verification.
How are line items handled for orders with multiple products?
The workflow uses Liquid array syntax ({{shopify.line_items[].name}}) to iterate through all products in an order. Each product becomes a separate line item in the Xero invoice with its own description, quantity, and unit price. Shopify order line items map directly to Xero invoice line items, maintaining the same structure. If you have complex products with variants or customizations, these details appear in the description field.
Make this template your own!
Customize this workflow even further:
You're in good company
"MESA has been a game changer for us. And, if you ever get stuck, their support team is always super helpful."
"It's like Zapier but exactly designed for Shopify. I have been able to complete all the workflows that I've needed."
"The MESA team has been amazing at helping us set up our automations. We would highly recommend this app!"
Ready to automatically create Xero invoices from Shopify orders while managing customer contacts?
7-day free trial • 15 min setup • Cancel anytime
Need help? Our automation experts will help you personalize this workflow for free. Contact support