Stripe disputes

A Stripe dispute gives you one shot and a deadline

The money left your balance before you read the email. What you do next decides whether any of it comes back: answer inside the deadline, with the right evidence, in one submission you can't edit. Here's the whole Stripe dispute flow from the API side, what each step costs, and the chargeback evidence material from chapter 19.

A Stripe dispute is Stripe's name for a chargeback: a cardholder asked their bank to reverse a payment to you. Stripe debits the disputed amount plus a $15 fee from your balance, sends a charge.dispute.created event, and gives you a window, usually 7 to 21 days depending on the card network, to accept or fight. Miss the deadline and you lose automatically (Stripe). Stripe passes your evidence on, but the cardholder's bank decides, at its "sole discretion" (Stripe).

You also can't make it go away with a refund. While a dispute is open, refunds outside the dispute process are blocked; the only way to get the money back is to submit evidence and win (Stripe).

What a Stripe dispute costs

US fees from Stripe's pricing page, checked 11 November 2026:

FeeAmountBack if you win?
Dispute received$15 per disputeNo
Dispute countered (you respond manually)$15 per disputeYes
Smart Disputes (Stripe responds for you)30% of the disputed amount, on wins onlyNothing charged on a loss
Dispute appealed$15 per appealNo
Contested Visa or Mastercard compliance dispute$500 network amount on top of the fees aboveYes

The compliance row comes from Stripe's responding guide, and the pricing page adds that "in rare cases, network fees also apply". Run the arithmetic on an $80 order before you decide:

What you doOut of pocket
Accept$80 + $15 = $95
Fight and lose$80 + $15 + $15 = $110
Fight and win$15
Smart Disputes wins it$15 + 30% of $80 = $39

Fighting a losing case costs $15 more than accepting it, so contest the ones you can win and accept the rest quickly. Stripe ships a Workflows template that accepts every needs_response dispute under 15 USD automatically (Stripe).

Dispute statuses

The status field on the Dispute object tells you where you are. Anything starting warning_ is an inquiry, a pre-dispute request for information that American Express and Discover use most. Answer inquiries too: an ignored one can escalate into a chargeback Stripe calls "likely unwinnable" (Stripe).

StatusMeaningYour move
warning_needs_responseInquiry, no response yetSubmit evidence or fully refund
warning_under_reviewInquiry evidence submittedWait
warning_closedInquiry open 120 days without escalatingNothing
needs_responseChargeback, awaiting your responseAccept or submit evidence before evidence_details.due_by
under_reviewEvidence with the issuerWait, usually 60-75 days
appeal_needs_response, appeal_under_reviewAppeal stageRespond, or let it go
wonBank sided with youAmount comes back; received fee doesn't
lostBank sided with the cardholderNothing moves back
preventedStopped before it became a formal chargebackNothing

Lost is final, with two odd exceptions: a customer can still withdraw a dispute after a loss, and issuers occasionally move money outside the normal cycle, which Stripe labels a late win. Stripe doesn't support the arbitration stage at all (Stripe).

Handle charge.dispute.created

Disputes have deadlines, so the webhook's job is to open a case with the due date on it, not to build the evidence there and then. The same endpoint can catch early fraud warnings, which arrive before most fraud disputes:

import os
import stripe
from flask import Flask, request

stripe.api_key = os.environ["STRIPE_SECRET_KEY"]
endpoint_secret = os.environ["STRIPE_WEBHOOK_SECRET"]
app = Flask(__name__)

DISPUTE_FEE_CENTS = 1500  # Stripe's US dispute received fee


@app.post("/webhooks/stripe")
def stripe_webhook():
    payload = request.get_data()  # raw bytes, never request.json
    sig_header = request.headers.get("Stripe-Signature", "")
    try:
        event = stripe.Webhook.construct_event(payload, sig_header, endpoint_secret)
    except ValueError:
        return "Invalid payload", 400
    except stripe.SignatureVerificationError:
        return "Invalid signature", 400

    if not claim_event(event["id"]):  # atomic insert; False if seen before
        return "", 200

    obj = event["data"]["object"]
    if event["type"] == "charge.dispute.created":
        open_dispute_case(
            dispute_id=obj["id"],
            charge_id=obj["charge"],
            reason=obj["reason"],
            status=obj["status"],
            amount=obj["amount"],
            due_by=obj["evidence_details"]["due_by"],
        )
    elif event["type"] == "charge.dispute.closed":
        close_dispute_case(obj["id"], outcome=obj["status"])
    elif event["type"] == "radar.early_fraud_warning.created":
        refund_small_warning(obj)
    return "", 200


def refund_small_warning(efw) -> None:
    if not efw["actionable"]:  # already disputed or fully refunded
        return
    charge = stripe.Charge.retrieve(efw["charge"])
    if charge.currency == "usd" and charge.amount <= DISPUTE_FEE_CENTS:
        stripe.Refund.create(charge=charge.id, reason="fraudulent")

The refund threshold is Stripe's own analysis: refunding a warned charge pays off up to roughly your dispute fee, and isn't worth it on charges more than 35% above it, which on a $15 fee is $15 x 1.35 = $20.25. About 40% of Visa and Mastercard warnings become fraud disputes if you don't refund (Stripe). An early fraud warning is actionable only while it has no dispute and isn't fully refunded (Stripe).

Submit evidence with the API

Evidence goes on the dispute through Update a dispute: text fields take strings, file fields take the ID of a file uploaded with purpose dispute_evidence. The trap is the submit parameter. It defaults to true, which sends everything to the bank immediately, and a submission is final: no edits, no extra files (Stripe). Stage with submit=False, let a human look, then send:

import stripe


def stage_evidence(dispute_id: str, order) -> None:
    with open(order.receipt_pdf_path, "rb") as fh:
        receipt = stripe.File.create(purpose="dispute_evidence", file=fh)
    evidence = dict(
        customer_name=order.customer_name,
        customer_email_address=order.email,
        customer_purchase_ip=order.ip_address,
        billing_address=order.billing_address_text,
        product_description=order.description,
        shipping_carrier=order.carrier,
        shipping_tracking_number=order.tracking_number,
        shipping_date=order.shipped_on.isoformat(),
        receipt=receipt.id,
    )
    # Staged: visible in the API and Dashboard, not yet sent to the bank
    stripe.Dispute.modify(dispute_id, evidence=evidence, submit=False)


def send_to_bank(dispute_id: str) -> bool:
    dispute = stripe.Dispute.retrieve(dispute_id)
    if dispute.status not in ("needs_response", "warning_needs_response"):
        return False
    try:
        stripe.Dispute.modify(dispute_id, submit=True)  # final, one shot
    except stripe.StripeError as exc:
        log_dispute_error(dispute_id, exc)
        raise
    return True

To accept instead, call stripe.Dispute.close(dispute_id). Accepting an inquiry doesn't resolve it, though; for inquiries Stripe says to submit evidence (Stripe).

The limits worth knowing before a deadline, from Stripe's API guide and responding guide:

  • Text evidence is capped at 150,000 characters across all fields.
  • Files are capped at 4.5 MB combined, and Mastercard evidence at 19 pages.
  • One file per evidence type, so merge several screenshots into one PDF.
  • Banks don't follow links, play audio or video, or call you back. Put it in the file.
  • Updating any field in evidence resubmits the whole hash, so always send the full set.

Which fields matter depends on reason. A fraudulent dispute wants AVS and CVV results, 3D Secure data, IP address and device history; product_not_received wants carrier and tracking. For Visa 10.4 fraud disputes, Stripe checks eligibility for Visa Compelling Evidence 3.0 itself and pre-fills the fields; on 3D Secure payments covered by the liability shift it adds the authentication data for you (Stripe). Chapter 19's evidence-by-reason-code builder is excerpted below.

Test it

The card 4000000000000259 succeeds and opens a fraudulent dispute during the request. Respond with winning_evidence or losing_evidence in uncategorized_text to close it as won or lost (Stripe). Run both before you trust the handler.

Smart Disputes

Smart Disputes is Stripe assembling and submitting the evidence packet for eligible disputes. If you do nothing, it submits just before the deadline; you can counter manually or accept instead, or switch auto-submit off. You pay 30% of the disputed amount only when it wins (Stripe, pricing). On the API it shows up as intended_submission_method, from manual to smart_disputes (Stripe). It's a trade of money for time. On the $80 order above, a manual win costs nothing beyond the $15 received fee, while a Smart Disputes win costs another $24. Worth it when nobody on your team owns disputes; not when someone does.

What happened to Stripe Chargeback Protection

Stripe launched Chargeback Protection in June 2019: 0.4% per transaction, for businesses in the US and Europe on Stripe Checkout, reimbursing fraud disputes without any evidence (Stripe). The terms are still published, last updated 3 June 2019, and they cover only fraud disputes on charges made through Checkout. Two lines from them matter: protected disputes still count toward your card network chargeback rates, and Stripe "may delay or deny activation for any reason".

As of 11 November 2026 it isn't listed on Stripe's pricing page, and we couldn't find it in Stripe's current dispute or Radar docs, which point to Smart Disputes and Radar's risk controls instead. If you see it in your Dashboard, read the terms before you rely on it. If you don't, plan without it. It never covered "not received" or "not as described" disputes, and it never kept you out of a monitoring program.

For the dispute basics on any processor, see what a chargeback is; for writing the rebuttal itself, chargeback representment.

Evidence by reason code: what wins a Visa 10.4 fraud dispute versus a 13.1 "not received", and the early-warning checks that run before anyone files. From chapter 19.

Chargeback Prevention System

The full implementation is available in src/examples/19-fraud/chargeback_prevention.py. Here's how to use it:

from chargeback_prevention import ChargebackPreventionSystem, ChargebackReason

# Initialize the chargeback prevention system
chargeback_system = ChargebackPreventionSystem()

# Analyze chargeback risk for a transaction
chargeback_risk = chargeback_system.analyze_chargeback_risk(
    context=transaction_context,
    fraud_score=combined_fraud_score
)

# Get prevention actions based on risk level
prevention_actions = chargeback_system.generate_prevention_actions(
    context=transaction_context,
    chargeback_risk=chargeback_risk
)
print(f"Chargeback risk: {chargeback_risk:.1%}")
print(f"Prevention actions: {prevention_actions}")

# Detect early warning signs for a customer
alerts = chargeback_system.detect_early_warning_signs(customer_id="cust_123")
for alert in alerts:
    print(f"Alert: {alert.transaction_id} - {alert.reason_category.value}")

# Prepare defense package when a chargeback is filed
defense = chargeback_system.prepare_chargeback_defense(
    transaction_id="txn_456",
    reason_code="10.4"  # Visa fraud reason code
)
print(f"Evidence required: {defense['evidence']}")

Chargeback prevention: the last line of defense

Chargebacks are expensive, slow to resolve, and, if you accumulate enough of them, fatal to your merchant account. Prevent them where you can, and have the evidence ready when you can't.

The analyze_chargeback_risk method flags transactions likely to become chargebacks even if they're not technically fraudulent. Legitimate customers dispute charges all the time. Risk factors include high fraud scores (fraud almost always becomes a chargeback), card type patterns (Amex has historically higher dispute rates than Visa or Mastercard), amount thresholds (higher-value purchases get more scrutiny from cardholders), digital goods (easier to dispute than physical items), brand-new customers with no relationship to your business, and international transactions where complexity drives disputes.

The detect_early_warning_signs method watches for chargebacks before they're filed. Multiple support inquiries inside 30 days often signal brewing dissatisfaction, and reaching out first beats waiting for the dispute. It also tracks refund requests, since a customer asking for several refunds may be probing your dispute process, or is unhappy in a way that's about to escalate.

The prepare_chargeback_defense method assembles evidence automatically based on the reason code, because different codes require different evidence. For fraud disputes (Visa 10.x, such as 10.4; Mastercard 4837), you need AVS/CVV match results, 3D Secure authentication artifacts, and device fingerprinting that links the transaction to the cardholder's normal behavior. For authorization disputes (Visa 11.1-11.3, where 11.3 now also covers late presentment; Mastercard 4808), authorization codes and timestamps prove the bank approved the transaction, you followed procedure and you settled inside the allowed window. For processing error disputes (Visa 12.x, such as 12.6 duplicate processing; Mastercard 4834), transaction records, settlement dates and refund history show the charge was presented correctly and only once. For consumer disputes (13.1, 13.2, 4855), delivery confirmations, communication logs, and terms of service prove the goods or services were provided under agreed conditions.

Treat a chargeback dispute like a small court case. Organized evidence wins more of them, automated assembly means nothing gets left out, and you make the reply deadline. Track your win rate by reason code: it tells you which evidence works and which disputes aren't worth contesting.

Why the $15 fee is the cheap part. Every dispute counts toward Visa's VAMP ratio and Mastercard's programs, win or lose. From the same chapter.

Card Brand Monitoring Programs

Before you hit MATCH, you'll typically go through escalating monitoring programs. These are your warning signs - take them seriously.

Visa Acquirer Monitoring Program (VAMP):

Visa used to run two merchant programs, the Visa Dispute Monitoring Program (VDMP) and the Visa Fraud Monitoring Program (VFMP). In 2025 it folded both into a single program, VAMP, with new thresholds from 1 June 2025 and an advisory period that ended on 30 September 2025 (Visa VAMP fact sheet, 2025). If an older guide quotes VDMP tiers, it's out of date.

VAMP uses one count-based ratio on card-not-present transactions:

VAMP ratio = (fraud reports (TC40) + disputes (TC15)) / settled transactions (TC05)

A fraudulent transaction that's reported as fraud and then disputed can appear in both counts, so fraud hurts this ratio more than a service dispute does. Disputes resolved through pre-dispute tools (such as Visa's Rapid Dispute Resolution and Order Insight) and fraud qualifying for Compelling Evidence 3.0 are excluded, which is a strong reason to use them.

RegionExcessive merchant thresholdMinimum monthly fraud + disputes
US, Canada, EU, Asia Pacific2.2% (1.5% from 1 April 2026)1,500
Latin America and Caribbean1.5%1,500
CEMEA2.2%150 and at least USD 75,000

Acquirers are monitored on their whole portfolio too: Above Standard at 0.5% and Excessive at 0.7%. An acquirer near those lines will squeeze its riskiest merchants well before any merchant threshold is reached, so in practice your processor's tolerance is lower than the table suggests. VAMP also watches enumeration (card testing): an enumeration ratio of 20% or more of authorizations, with at least 300,000 enumerated transactions, flags the merchant. Ask your processor how it passes on any VAMP fees, and what its own internal limits are.

Mastercard Excessive Chargeback Program (ECP):

Mastercard counts this month's chargebacks against last month's captured transactions, and you have to cross both the count and the rate to enter a tier (Stripe, "Monitoring programs", 2026):

TierChargebacks per monthChargeback rateFines
Excessive Chargeback Merchant (ECM)100-2991.5-2.99%None in month one, then rising from USD 1,000 to USD 100,000 a month
High Excessive Chargeback Merchant (HECM)300 or more3% or moreNone in month one, then rising from USD 1,000 to USD 200,000 a month

From month four, an issuer recovery assessment adds USD 5 for each chargeback over 300. Mastercard counts a chargeback whatever its outcome, and even when a refund hid it. Separately, the Excessive Fraud Merchant program looks at fraud chargebacks (reason codes 4837 and 4863) and how little of your Mastercard volume uses 3D Secure.

Visa maintains its own equivalent, VMAS (Visa Merchant Alert System), as a parallel screening tool. MATCH is more commonly referenced because Mastercard requires acquirers to query and report to it; VMAS operates similarly within the Visa network.

Monitor your chargeback ratio weekly, not monthly. By the time a monthly report shows you over 1.5%, you've been over it for weeks. Set internal alerts at half the threshold (0.75% for Mastercard's 1.5% and Visa's US VAMP line) so you have time to investigate and remediate before you enter a monitoring program. Tools like Verifi and Ethoca offer chargeback alerts that notify you of disputes before they become formal chargebacks, so you can refund instead. A refund before the dispute is filed keeps it out of your chargeback count, though a fraud report on the transaction still counts toward Visa's VAMP ratio.

Questions

How much does Stripe charge for a dispute?

In the US, $15 when the dispute is received, which you don't get back, plus $15 if you respond manually, which Stripe refunds if you win. Appeals cost another $15. Smart Disputes charges 30% of the disputed amount instead, only on disputes it wins.

How long do I have to respond to a Stripe dispute?

Usually 7 to 21 days depending on the card network. The exact deadline is in evidence_details.due_by on the Dispute object. If you don't respond in time, you lose the dispute automatically.

How do I submit dispute evidence with the Stripe API?

Upload any files with purpose dispute_evidence, then update the dispute with an evidence hash of text fields and file IDs. The submit parameter defaults to true and sends the evidence immediately. Pass submit=False to stage it, then update again with submit=True when it's ready, because a submission is final.

Can I refund a payment that has a Stripe dispute?

No. While a dispute is open you can't refund the payment outside the dispute process. You can accept the dispute, or submit evidence and try to win the money back.

Does Stripe still offer Chargeback Protection?

Stripe launched it in 2019 at 0.4% per transaction for Checkout payments, covering fraud disputes only. Its terms are still published, but as of November 2026 it isn't listed on Stripe's pricing page. Stripe's current products are Smart Disputes, which fights eligible disputes for 30% of what it wins, and Radar.

What is a warning_needs_response dispute on Stripe?

An inquiry: the issuer asking for information before filing a chargeback. Answer it with evidence or a full refund. Ignoring it can escalate it to a chargeback that is very hard to win.

What the book adds

The rest of chapter 19

  • Chargeback evidence assembled by reason code
  • Early warning signs, before the dispute is filed
  • Card brand monitoring programs and their thresholds
  • Risk scoring that stops fraud disputes at checkout
  • The MATCH list, and how merchants end up on it

30-day money-back · Instant PDF and EPUB

All 42 chapters