Sync Stripe refunds to Xero and send dispute alerts with Slack
Ready for 3.0What 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).
- Process Refund Data (Code): runs custom JavaScript code
- Notify Failure on Slack (Slack): uses Slack
- Retrieve Dispute Charge (HTTP Request): calls an HTTP API
- Check Refund Status (If): checks a condition and branches into true / false
- Prepare Dispute Alert (Code): runs custom JavaScript code
- Fetch Charge Details (HTTP Request): calls an HTTP API
- Send Dispute Alert to Slack (Slack): uses Slack
- Fetch Stripe Invoice (HTTP Request): calls an HTTP API
- Retrieve Tax Configuration (Data table): get
- Map Refund to Xero (Code): runs custom JavaScript code
…plus 6 more steps. See the full node list below.
Services it uses
Other Stripe + Slack templates (27) · Other Xero + Slack templates (10)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Stripe Trigger
n8n-nodes-base.stripeTrigger - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Data table
n8n-nodes-base.dataTable - Slack
n8n-nodes-base.slack - Error Trigger
n8n-nodes-base.errorTrigger
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.…