Templates / Sync Stripe refunds to Xero and send dispute alerts with Slack

Sync Stripe refunds to Xero and send dispute alerts with Slack

Ready for 3.0

by Intuz ✓ · 0 views · created 2026-11-02 · Invoice Processing

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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 19 nodes and runs on Stripe events (charge.refunded) (plus 2 other triggers). Along the way it connects Stripe and Slack. It also calls api.xero.com over HTTP.

How it runs

Trigger: On Stripe events (charge.refunded) (plus 2 other triggers).

  1. Process Refund Data (Code): runs custom JavaScript code
  2. Notify Failure on Slack (Slack): uses Slack
  3. Retrieve Dispute Charge (HTTP Request): calls an HTTP API
  4. Check Refund Status (If): checks a condition and branches into true / false
  5. Prepare Dispute Alert (Code): runs custom JavaScript code
  6. Fetch Charge Details (HTTP Request): calls an HTTP API
  7. Send Dispute Alert to Slack (Slack): uses Slack
  8. Fetch Stripe Invoice (HTTP Request): calls an HTTP API
  9. Retrieve Tax Configuration (Data table): get
  10. Map Refund to Xero (Code): runs custom JavaScript code

…plus 6 more steps. See the full node list below.

Services it uses

StripeSlack

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (7)

From the author

Quick overview This workflow listens for Stripe refund and dispute events, posts succeeded refunds to Xero as manual journals using a country-based mapping table, and sends Slack alerts for duplicates, disputes, and refund-sync failures. How it works 1.…

Excerpt from Intuz '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.