Skip to main content

Send automated payment reminders for Xero invoices via Outlook email

Workflow preview

Workflow preview
100%
Send automated payment reminders for Xero invoices via Outlook email preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Who's this for Small business owners, finance teams, accountants, and bookkeepers who use Xero for invoicing and want to improve cash flow by automating payment reminders. If you're spending time m...

Best for

  • Invoice Processing automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.xero, n8n-nodes-base.if, n8n-nodes-base.code, n8n-nodes-base.httprequest, n8n-nodes-base.stickynote, n8n-nodes-base.microsoftoutlook

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Patrick Campbell .

Original n8n.io source

1.1 Workflow description

Title
Send automated payment reminders for Xero invoices via Outlook email
Workflow name
Send automated payment reminders for Xero invoices via Outlook email

Who's this for

Small business owners, finance teams, accountants, and bookkeepers who use Xero for invoicing and want to improve cash flow by automating payment reminders. If you're spending time manually following up on unpaid invoices or struggling with late payments, this workflow eliminates the manual effort and ensures consistent, timely communication with customers while maintaining a complete audit trail.

What it does

This workflow automatically monitors all invoices in your Xero account and sends friendly payment reminders to customers when invoices are approaching their due date. It runs daily at noon, checks every invoice, calculates how many days until payment is due, sends personalized email reminders for invoices due within 7 days, and logs each reminder activity back into Xero's invoice history. The automation ensures no invoice slips through the cracks, reduces the administrative burden of accounts receivable management, and maintains professional customer relationships through polite, timely reminders—all while keeping your Xero records up to date with reminder tracking.

How it works

The workflow executes automatically every day at 12 PM and follows this process:

  • Triggers the daily check using the Schedule Trigger node
  • Fetches all invoices from your Xero account using the Xero API integration
  • Filters out invoices that are already marked as "PAID" to avoid sending unnecessary reminders
  • Calculates the number of days remaining until each unpaid invoice is due using a JavaScript code node
  • Identifies invoices that are due within the next 7 days (customizable threshold)
  • Sends personalized email reminders to customers via Microsoft Outlook, including invoice number, due date, and amount
  • Logs the reminder activity back into Xero's invoice history with the date sent and days until due
  • Creates a complete audit trail in Xero showing when reminders were sent for each invoice

The workflow only sends reminders for invoices meeting the criteria, so customers aren't bombarded with unnecessary emails. The Xero history logging ensures your team can see at a glance which customers have been reminded and when, preventing duplicate reminders and providing accountability.

Requirements

  • Xero account with API access enabled (available to all Xero users at no additional cost)
  • Microsoft Outlook or Office 365 account for sending email reminders
  • Valid email addresses configured for all customers in your Xero contact records
  • n8n instance (self-hosted or cloud) with credentials configured for:
    • Xero OAuth2 connection (used twice: once for fetching invoices, once for logging history)
    • Microsoft Outlook OAuth2 connection

Setup instructions

1. Enable Xero API access

Ensure your Xero account has API access enabled. This is available by default for all Xero accounts. You'll need administrator access to create the API connection.

2. Configure n8n credentials

In your n8n instance, set up OAuth2 credentials for:

  • Xero: Follow n8n's Xero credential documentation to authorize access to your Xero organization. Make sure the credentials have permission to both read invoices and write to invoice history.
  • Microsoft Outlook: Set up OAuth2 connection to allow n8n to send emails on your behalf

3. Assign credentials to nodes

Open the workflow and assign your configured credentials to these nodes:

  • "Fetch All Xero Invoices" → Select your Xero credential
  • "Send Email Reminder to Customer" → Select your Microsoft Outlook credential
  • "Log Reminder in Xero History" → Select your Xero credential (same as above)

4. Customize the email template

Edit the "Send Email Reminder to Customer" node to personalize the message:

  • Update the sender name and signature
  • Add your company branding or logo
  • Include payment instructions or online payment links
  • Adjust the tone to match your customer communication style
  • Add any legal disclaimers or terms if required
  • Customize the subject line if needed

5. Adjust the reminder threshold (optional)

By default, reminders are sent for invoices due within 7 days. To change this:

  • Open the "Calculate Days Until Due" code node
  • Find the line: isDueSoon: diffDays <= 7 && diffDays >= 0
  • Change 7 to your preferred number of days (e.g., 14 for two weeks notice)

6. Test the workflow

Before enabling the daily schedule:

  • Use the manual trigger to test with your actual Xero data
  • Verify that invoices are fetched correctly
  • Check that the date calculations are accurate
  • Send a test email to yourself to review the message format
  • Confirm the reminder is logged in Xero's invoice history
  • Verify only qualifying invoices trigger reminders

7. Activate the workflow

Once testing is complete, activate the workflow. It will run automatically every day at noon (or your customized schedule time).

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Daily Invoice Check Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 2 - Fetch All Xero Invoices

Type / Role
n8n-nodes-base.xero - xero
Config choices
Version 1

Block 3 - Filter Out Paid Invoices

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 4 - Filter Invoices Due Soon

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 5 - Calculate Days Until Due

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Log Reminder in Xero History

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 7 - Workflow Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Step 1 Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Step 2 Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Step 3 Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Send a message1

Type / Role
n8n-nodes-base.microsoftOutlook - microsoftOutlook
Config choices
Version 2

3. Summary Table

Workflow Send automated payment reminders for Xero invoices via Outlook email
Complexity intermediate
Nodes 11
Categories Invoice Processing
Author Patrick Campbell
Published 12 Jan 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/12648/12648.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Send automated payment reminders for Xero invoices via Outlook email do?

Who's this for Small business owners, finance teams, accountants, and bookkeepers who use Xero for invoicing and want to improve cash flow by automating payment reminders. If you're spending time m...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Invoice Processing use case.