n8nflow.net logo

Stripe Dispute Management with Google Sheets Ledger & Gmail Notifications

by Rahul Joshiβ€’Updated: Last update 4 days agoβ€’Source: n8n.io
Loading workflow viewer...

Getting Started

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