Skip to main content

Stripe dispute management with Google Sheets ledger & Gmail notifications

Workflow preview

Workflow preview
100%
Stripe dispute management with Google Sheets ledger & Gmail notifications preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Description This automation manages Stripe disputes by fetching dispute data, formatting it, logging it into Google Sheets, updating related payment records, and notifying the customer via email. I...

Best for

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

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.stickynote, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.googlesheets, n8n-nodes-base.if, n8n-nodes-base.gmail

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Stripe dispute management with Google Sheets ledger & Gmail notifications
Workflow name
Stripe dispute management with Google Sheets ledger & Gmail notifications

Description

This automation manages Stripe disputes by fetching dispute data, formatting it, logging it into Google Sheets, updating related payment records, and notifying the customer via email. It ensures finance and support teams always have up-to-date dispute information while keeping customers informed automatically.

What This Template Does (Step-by-Step)

  • 📋 Manual Trigger → Start the workflow manually.
  • 🔗 Fetch Latest Disputes from Stripe → Retrieves the 5 most recent disputes via the Stripe API.
  • 🛠 Format Stripe Dispute Data → Cleans and restructures the raw Stripe response (dispute_id, charge_id, amount, currency, reason, status, respond_by, etc.).
  • 📊 Log Dispute in Disputes Sheet → Appends a new row in the Disputes sheet for historical record-keeping.
  • 📧 Send Customer Dispute Notification Email → Notifies the customer about the dispute with all relevant details (amount, status, respond-by date).
  • 📑 Find Payment in Ledger → Searches the Payments Sheet for a matching charge_id.
  • ✅ Check if Payment Exists → Confirms whether the disputed payment already exists in the ledger.
  • ✏️ Update Payment Record with Dispute Info → If found, updates the existing payment row with dispute details (status, dispute amount, respond_by date, etc.).

Prerequisites

  • Stripe account + API key
  • Google Sheets with:
  • Disputes Sheet (for logging disputes)
  • Payments Sheet (for updating transactions)
  • Gmail account with OAuth2 credentials

Key Benefits

✅ Keeps a historical log of all disputes in one sheet ✅ Updates existing payment records with dispute status ✅ Sends automatic customer notifications to reduce confusion ✅ Helps finance and support teams track disputes in real time

Perfect For

  • Finance teams handling payment disputes
  • Support teams needing automatic customer updates
  • Businesses that want clear visibility into disputes alongside payment records

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 - When clicking ‘Execute workflow’

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

Block 2 - Sticky Note

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

Block 3 - Sticky Note1

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

Block 4 - Sticky Note2

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

Block 5 - Sticky Note3

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

Block 6 - Sticky Note4

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

Block 7 - Sticky Note5

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

Block 8 - Sticky Note6

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

Block 9 - Fetch Latest Disputes from Stripe

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

Block 10 - Format Stripe Dispute Data

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

Block 11 - Log Dispute in Disputes Sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 12 - Find Payment in Ledger

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 13 - Check if Payment Exists

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

Block 14 - Update Payment Record with Dispute Info

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 15 - Send Customer Dispute Notification Email

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

3. Summary Table

Workflow Stripe dispute management with Google Sheets ledger & Gmail notifications
Complexity advanced
Nodes 15
Categories Invoice Processing
Author Rahul Joshi
Published 26 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8954/8954.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 Stripe dispute management with Google Sheets ledger & Gmail notifications do?

Description This automation manages Stripe disputes by fetching dispute data, formatting it, logging it into Google Sheets, updating related payment records, and notifying the customer via email. I...

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.