Templates / Count Xero invoices, bills, and credit notes with a voided/deleted filter

Count Xero invoices, bills, and credit notes with a voided/deleted filter

Ready for 3.0

by Sobek ✓ · 4 views · created 2026-06-17 · Document Extraction

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 12 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes. It also calls api.xero.com over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Count Options (Edit Fields (Set)): sets 1 field: includeVoidedDeleted
  2. Get Connections (HTTP Request): calls api.xero.com
  3. Count Sales Invoices (HTTP Request): calls api.xero.com
  4. Count Bills (HTTP Request): calls api.xero.com
  5. Count Sales Credit Notes (HTTP Request): calls api.xero.com
  6. Count Bill Credit Notes (HTTP Request): calls api.xero.com
  7. Tally Sales Invoices (Code): runs custom JavaScript code
  8. Tally Bills (Code): runs custom JavaScript code
  9. Tally Sales Credit Notes (Code): runs custom JavaScript code
  10. Tally Bill Credit Notes (Code): runs custom JavaScript code

…plus 1 more step. See the full node list below.

HTTP calls to: api.xero.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (5)

From the author

Quick overview This workflow runs on manual execution to count Xero Accounting records: sales invoices, bills, and sales/bill credit notes; with an optional filter to exclude VOIDED and DELETED statuses, returning a simple tally per record type. How it works…

Excerpt from Sobek's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.