
XERO n8n INTEGRATION: AUTOMATE XERO WITH N8N
Looking to automate Xero with n8n? You're in the right place. The Xero n8n integration gives you access to 8 powerful actions that let you manage your accounting workflows without writing a single line of code.
With this native integration, you can create and update invoices, manage contacts, and synchronize your financial data across your entire tech stack. Whether you're automating invoice creation when a sale closes, syncing contact information between your CRM and Xero, or building custom reporting workflows, n8n makes it straightforward to connect Xero to hundreds of other applications.
In this guide, you'll discover exactly how to set up the Xero n8n connection, explore each available action in detail, and learn practical tips to build robust accounting automation workflows.
Need help automating Xero with n8n?
Our team will get back to you in minutes.
Why automate Xero with n8n?
The Xero n8n integration gives you access to 8 actions covering the two most critical areas of your accounting workflow: invoice management and contact management. You can create, retrieve, and update both invoices and contacts directly from your n8n workflows, enabling end-to-end automation of your financial operations.
The benefits are substantial. Save hours every week by eliminating manual data entry—no more copying invoice details from your e-commerce platform or manually creating contacts from your CRM. Improve accuracy by removing human error from repetitive tasks; when data flows automatically between systems, typos and forgotten entries become a thing of the past. React instantly to business events: the moment a deal closes in your sales tool, an invoice can be created in Xero within seconds.
Here's what you can build with this integration: automatically generate invoices when orders are placed in Shopify or WooCommerce, sync new leads from HubSpot or Pipedrive as Xero contacts, update invoice statuses based on payment notifications from Stripe, pull invoice data into Google Sheets for custom reporting, or trigger Slack notifications when high-value invoices are created. The possibilities multiply when you connect Xero to n8n's library of 400+ integrations.
How to connect Xero to n8n?
! 1 stepHow to connect Xero to n8n?
- 01
Add the node
The Xero n8n integration uses OAuth2 authentication, which means you'll authorize n8n to access your Xero account through a secure login flow—no need to manually handle API keys.Basic configuration:Add a Xero node to your n8n workflow by searching for "Xero" in the node panel and dragging it onto your canvas.Create new credentials by clicking on the "Credential to connect with" dropdown and selecting "Create New Credential."Configure OAuth2 by entering your Xero app's Client ID and Client Secret. You'll need to create an app in the Xero Developer Portal first if you haven't already.Authorize the connection by clicking the authorization button and logging into your Xero account. Grant n8n permission to access your organization's data.Select your organization if you have multiple Xero organizations connected to your account.
TIP💡 TIP: When creating your Xero app in the Developer Portal, make sure to set the correct redirect URI provided by n8n. Also, request the appropriate scopes (accounting.transactions, accounting.contacts) based on the actions you plan to use. If you're working with multiple Xero organizations, you can switch between them using the "Organization Name or ID" parameter in each action. For more advanced workflows, check our n8n training to master automation best practices.- 01
Need help automating Xero with n8n?
Our team will get back to you in minutes.
Xero actions available in n8n
01 Action 01Create a contact
This action lets you add new contacts directly to your Xero account from any trigger in your n8n workflow. It's the foundation for keeping your accounting contacts in sync with your other business systems.
Key parameters:
- Credential to connect with: Select your authorized Xero account from the dropdown. This is required to authenticate the API request.
- Organization Name or ID: Text field where you specify which Xero organization to add the contact to. Supports expressions for dynamic input.
- Name: Text field for the contact's name—this is the primary identifier in Xero.
- Additional Fields: Expandable section where you can add optional properties like email address, phone number, tax number, bank account details, and addresses.
Use cases: Automatically create a Xero contact when a new customer signs up on your website, sync new leads from your CRM (HubSpot, Pipedrive, Salesforce) to Xero, or add supplier contacts when you receive their first invoice via email.

02 Action 02Get a contact
This action retrieves detailed information about a specific contact from your Xero account. Use it when you need to verify contact details, check existing data before updates, or pull contact information into other parts of your workflow.
Key parameters:
- Credential to connect with: Dropdown to select your Xero account credentials. Required for authentication.
- Organization Name or ID: Text field to specify the organization. Accepts dynamic expressions from previous workflow steps.
- Contact ID: Text field where you enter the unique identifier of the contact you want to retrieve. Supports expressions for dynamic input.
Use cases: Verify a contact exists before creating a duplicate, pull contact details to populate an invoice or quote in another system, or retrieve contact information for personalized email campaigns.

03 Action 03Get many contacts
Need to work with multiple contacts at once? This action fetches a list of contacts from your Xero account, perfect for bulk operations, reporting, or synchronization tasks.
Key parameters:
- Credential to connect with: Select your Xero account credentials. Required.
- Organization Name or ID: Optional text field to scope the query to a specific organization.
- Return All: Toggle switch—when enabled, retrieves all contacts regardless of count. When disabled, respects the Limit parameter.
- Limit: Numeric field (default 100) that caps how many contacts are returned when "Return All" is off.
- Options: Expandable section for additional filters and customization.
Use cases: Export all contacts to Google Sheets for review or analysis, compare Xero contacts against your CRM for sync discrepancies, or build a daily backup workflow that archives contact data.

04 Action 04Update a contact
Keep your Xero contacts accurate and up-to-date by modifying existing contact records. This action is essential for maintaining data integrity across your systems.
Key parameters:
- Credential to connect with: Dropdown for selecting your authenticated Xero account. Required.
- Organization Name or ID: Text field to identify the organization context.
- Contact ID: Text field for the unique identifier of the contact to update. Required to target the correct record.
- Update Fields: Section where you specify which properties to modify—click "Add Field" to select attributes like name, email, phone, address, or other contact details.
Use cases: Update contact email addresses when customers change their details in your CRM, sync phone number changes from your sales platform to Xero, or batch update contact classifications or groupings.

05 Action 05Create an invoice
This is arguably the most powerful action in the Xero n8n integration. Automatically generate invoices based on triggers from your sales, e-commerce, or project management tools.
Key parameters:
- Credential to connect with: Select your Xero credentials. Required.
- Organization Name or ID: Text field specifying the target organization.
- Type: Text field indicating the invoice type (e.g., ACCREC for accounts receivable, ACCPAY for accounts payable). Required.
- Contact ID: Text field for the contact this invoice is addressed to.
- Line Items: Section to add individual invoice line items—each line can include description, quantity, unit amount, account code, and tax type.
- Additional Fields: Optional section for due date, reference number, currency, and other invoice properties.
Use cases: Generate invoices automatically when deals close in your CRM, create invoices from new orders in Shopify, WooCommerce, or Stripe, or bill clients when projects are marked complete in Asana or Monday.com.

06 Action 06Get an invoice
Retrieve complete details of a specific invoice from Xero. Essential for status checks, payment reconciliation workflows, and data verification.
Key parameters:
- Credential to connect with: Dropdown for Xero account authentication. Required.
- Organization Name or ID: Text field to specify the organization context.
- Invoice ID: Text field where you enter the unique invoice identifier. Supports dynamic expressions from previous steps.
Use cases: Check invoice status before sending payment reminders, pull invoice details into Slack notifications for your finance team, or verify invoice amounts match expected values in reconciliation workflows.

07 Action 07Get many invoices
Fetch multiple invoices at once for reporting, analysis, or batch processing workflows. This action is your go-to for building custom financial dashboards and monitoring tools.
Key parameters:
- Credential to connect with: Select your Xero credentials. Required.
- Organization Name or ID: Optional text field for organization scope.
- Return All: Toggle to retrieve all invoices (ignores Limit when on).
- Limit: Numeric field defaulting to 100—controls batch size when "Return All" is off.
- Options: Section for additional filters like date ranges, invoice status, or contact filters.
Use cases: Generate weekly reports of unpaid invoices sent to Slack or email, export invoice data to Google Sheets for custom financial analysis, or build overdue invoice monitoring with automatic follow-up triggers.

08 Action 08Update an invoice
Modify existing invoices in Xero—update statuses, correct line items, or adjust payment terms. Critical for keeping your invoicing accurate as business circumstances change.
Key parameters:
- Credential to connect with: Dropdown for Xero authentication. Required.
- Organization Name or ID: Text field to target the correct organization.
- Invoice ID: Text field for the unique invoice identifier. Required.
- Update Fields: Section to specify properties to modify—add fields via the dropdown to update status, amounts, due dates, line items, and more.
Use cases: Mark invoices as sent when email confirmation is received, update invoice amounts after discounts are applied in your sales tool, or adjust due dates based on customer payment negotiations.

Build your first workflow with our team
Drop your email and we'll send you the catalog of automations you can ship today.
- Free n8n & Make scenarios to import
- Step-by-step setup docs
- Live cohort + community support
Frequently asked questions
Is the Xero n8n integration free to use?
The Xero n8n integration itself is completely free and included in all n8n plans, including the self-hosted community edition. However, you'll need a Xero subscription to access your accounting data, and if you're using n8n Cloud rather than self-hosting, your workflow executions count toward your plan's limits. For most small businesses, the combination of Xero's standard plan and n8n's free tier provides plenty of capacity for essential accounting automations.What data can I sync between Xero and n8n?
The Xero n8n integration focuses on two core resources: contacts and invoices. For contacts, you can create new records, retrieve individual or bulk contact data, and update existing contact information including names, emails, addresses, and tax details. For invoices, you have full CRUD capabilities—create new invoices with line items, retrieve invoice details and statuses, fetch multiple invoices for reporting, and update invoice properties. While the native integration doesn't cover all Xero resources (like bank transactions or purchase orders), you can use n8n's HTTP Request node with Xero's API for additional functionality.How long does it take to set up the Xero n8n integration?
Most users complete the setup in under 10 minutes. The OAuth2 authentication flow is straightforward—you'll create a Xero developer app (about 3 minutes), configure the credentials in n8n (2 minutes), and authorize the connection (1 minute). The actual workflow building depends on complexity: a simple "create contact" workflow takes 5 minutes, while a multi-step invoice automation with error handling might take 30 minutes to an hour. If you encounter issues, our n8n troubleshooting guide can help you resolve common problems quickly.



