Create Xero invoices from HubSpot workflows

6 minute read · Written by admin · Last updated 31 Mar 2025

This article covers all the settings and configuration you need in order to automatically create Xero invoices direct from HubSpot. If you're just getting started and want a video walkthrough and more information - take a look at our article Create Invoices Automatically in HubSpot

How to set up your workflow

First head to the HubSpot workflows tool, and create a workflow. The workflow action is only available in a deal-based workflow, you can ignore the Invoice workflows as these only work with HubSpot's own payments platform.

When adding an action you should see the Invoice Stack action "Create Xero Invoice" or "Create Xero Recurring Invoice" - click to add the action and you'll see the settings page.

Image
Workflow Actions

 

Choosing your settings

Within the actions window you'll see the following options:

FieldOptionsDescription
ConnectionShows your Xero accountsSelect which Xero account you'd like to use. Invoice Stack supports multiple Xero accounts. If you see nothing listed here, please ensure that you are on a trial, Pro or Enterprise plan, and have connected up Xero in your dashboard.  
Invoice ContactCompany associated to dealWe'll use the Company associated to your HubSpot deal to search for a contact inside Xero
 Contact associated to dealWe'll use the email address from the Contact associated with the HubSpot deal to search for a contact inside Xero
 Specific Xero contactIf you know the internal Xero Contact ID of the contact, you can specify it here (this contact ID is synced back by Invoice Stack in a deal property)
Create contact if not found When checked, Invoice Stack will create the contact inside Xero using the data from the associated HubSpot Company or Contact. If you selected company, you'll need to define an email address (as this is not a default property in HubSpot)
Invoice Date or Start Date If recurring, start date is the date of the first invoice
 When workflow is triggeredSets the invoice date to the date the workflow runs
 On deal close dateSets the invoice date to the close date set in the deal
 Use a deal propertyChoose a deal property to use as the Invoice Date (this should be a date property)
Invoice Frequency (Recurring invoices only) How often the invoice should be created
Term (Recurring invoices only) How many invoices should be created
Invoice Due DateBased on invoice dateSet a certain number of days after the specified Invoice Date
 Use a deal property(One-off invoices only) Choose a deal property to use as the Due Date (this should be a date property)
Reference This will show next to the invoice inside Xero, and show to the customer. Common use cases are an Order Reference, Purchase Order number or Deal Name
Invoice Status Which status to sync your invoices to Xero as
 One-off invoices 
 DraftDraft invoice for your Finance team to review inside Xero
 Submitted for ApprovalInvoice added to the approval queue for your Finance team to review inside Xero
 AuthorisedInvoice is finalised and ready to send to your customer
 Recurring invoices 
 Create as DraftXero will create a draft invoice on schedule
 ApproveXero will create an approved invoice on schedule
 Approve and SendXero will create an approved invoice and automatically send it on schedule
Line Items Which line items do you want to include on the invoice
 AllInclude all line items attached to the deal in your invoice
 FilterInclude only some line items - choose a line item property to filter by (e.g. only include a certain product)
 SplitInclude all line items attached to the deal but split by a percentage value - you can then choose the percentage, whether you'd like to split the quantities and specify text to append. This works best if you have multiple actions chained together, e.g. one for 30% then the next action for 70%
 Only Weekly/Monthly/Quarterly/Annually(Recurring invoices only) Only include line items with the billing frequency set to the relevant option
Accounts and Taxes  
 Enter in Xero(One-off invoices only)  Only for Draft Invoices - leave accounts and taxes blank and fill them in in Xero
 Match with Xero ProductsMatch your HubSpot line item SKUs with your Xero products, and specify accounts and tax rates in Xero. Read more here
 Choose from a listChoose fixed values for all line items
Branding theme Choose from a list of your Xero branding themes

Remember, the great thing about Workflows in HubSpot is that you can branch them and create multiple variations - so if you need to, for example, not charge certain customers tax, you could branch based on the country, and create a new workflow action with slightly different settings.

Then all you need to do is turn your workflow on and Invoice Stack will run.

See your invoices in HubSpot

The great thing about the workflow action is that it's fully compatible with the rest of Invoice Stack. So, when your invoices get created they are visible in the sidebar next to your deal. You can even go in and manually add additional invoices. 

Invoice Stack will update your HubSpot deal properties when the invoice is created, or whenever anything changes in Xero, such as the invoice getting edited, paid or going overdue.

HubSpot workflows also has some really powerful debugging tools, so if your invoice generation has failed for any reason, you'll be alerted of this inside the HubSpot workflows, along with an error message (e.g. Could not find contact).

 

 

Give Invoice Stack a try

Getting started with Invoice Stack is easy! Try it for yourself with a 21-day free trial, no credit card required and get set up in minutes. Or, if you'd like to take a deeper dive or show your team - book a demo slot at a time that suits you.