Disputes
Learn how to manage payment disputes and chargebacks
Payment disputes occur when customers challenge payments through their bank or card issuer. Disputes can result from suspected fraud, unauthorized transactions, service issues, or billing errors. Understanding how to monitor, respond to, and prevent disputes is essential for maintaining healthy payment operations and minimizing revenue loss.
Disputes are different from payment declines and bank rejects. Declines occur immediately during payment processing. Bank rejects (NSF, invalid accounts, stop payments) are covered in Bank Rejects. This article focuses on customer-initiated disputes: card chargebacks and bank payments the customer reports to their bank as unauthorized.
Prerequisites
Before handling disputes, it's helpful to learn about the following topics.
Understanding Disputes
Disputes occur when customers contest payments after they have been processed and settled. The dispute process varies based on payment method, but all disputes result in temporary or permanent fund reversals.
How Disputes Work
Initial Processing
Payment is processed and marked as processed
Customer Dispute
Customer contacts their bank/card issuer to dispute the charge
Status Update
Transaction status changes from processed to rejected with status code disputed, or to
adjusted with partially_disputed if only part of the payment amount is disputed.
Fund Reversal
Funds are immediately reversed from your processing account. They are pulled from the default withdraw method unless a default dispute method is set.
Evidence Period
You have limited time to submit evidence (typically 7-21 days)
Resolution
Bank/issuer reviews evidence and makes final decision
Outcome
Dispute is won (funds returned) or lost (funds remain reversed) and transaction is set back to
processed
Immediate Impact: When a dispute is filed, funds are reversed immediately from your processing account, even before you have a chance to respond. This can impact cash flow significantly for high-value transactions.
Handling Different Dispute Types
The response process varies between card chargebacks and bank account disputes.
Card Chargebacks
Card chargebacks follow a formal dispute process governed by card network rules (Visa, Mastercard, etc.):
- You have opportunity to provide evidence to the card issuer
- Evidence submission typically has 7-21 day deadline
- Card network makes final decision based on submitted evidence
A chargeback for the full amount gives the payment status rejected and status code disputed.
A chargeback for part of the amount gives it status adjusted and status code
partially_disputed.
Bank Account Disputes
A bank dispute happens when the customer tells their bank that a debit was not authorized. The
payment is returned with status rejected and status code disputed. Unlike card chargebacks,
bank disputes don't have a formal evidence submission process through the payment network.
Resolution typically involves direct communication with the customer or pursuing collection
through other means.
This example handles bank disputes:
- Check that the status code is
disputedand the payment was made from a bank account - Record the transaction in your internal dispute tracking system
- Contact the customer to confirm whether they authorized the payment
- Consider whether to pursue collection or write off
Default Dispute Method
Funds for a disputed payment are pulled from the processing account's default withdraw method,
like any other pull-back. To pull them from a separate bank account, set
account_defaults.funding to disputes on that payment method.
- The dispute method must be a
two_waybank account on the processing account, and it can't also be the account's default deposit or withdraw method. Bank accounts aren'ttwo_wayby default in every case, andtransfer_typecan't be changed after the payment method is created, so settransfer_typetotwo_waywhen you create it, as the example does. - Only payments with status code
disputedorpartially_disputeduse it. They are pulled in a withdraw of their own, separate from other funding. Other pull-backs, such as NSF returns and stop payments, still use the default withdraw method.
See Default Payment Methods for the other funding defaults.
Querying Disputed Transactions
Monitor disputed transactions by querying for payments with the disputed or
partially_disputed status code.
This example demonstrates querying disputed transactions:
- Filter transactions by
status.code='disputed|partially_disputed'(|matches either code) - Optionally filter by date range using
created_at. Partially disputed payments keep statusadjustedand have norejected_date - Check
sender.method.typeto tell card chargebacks (card) from bank disputes (bank_account) - Access
status.messagefor human-readable details
Regular monitoring helps identify dispute patterns, track dispute rates, and respond promptly to new disputes.
Handling Dispute Webhooks
Receive immediate notifications when disputes are filed by registering a webhook.
This example shows webhook handling:
- Register webhooks for the
rejecttrigger (full disputes) and theadjustedtrigger (partial card disputes) - Receive POST request when dispute occurs
- Fetch the transaction and skip it unless
status.codeisdisputedorpartially_disputed - Check
sender.method.typeto determine dispute type - Automatically create case in dispute management system
- Notify relevant team members immediately
- Begin evidence gathering process
Webhooks enable immediate response to disputes, maximizing the time available for evidence submission.
Response Timing: For card chargebacks, you typically have 7-21 days to submit evidence, depending on the card network and chargeback reason. Responding quickly increases your chances of winning disputes.
Analyzing Dispute Patterns
Track dispute rates and identify patterns to reduce future disputes.
This example analyzes dispute patterns:
- Query all disputed transactions for a date range
- Calculate dispute rate (disputes / total transactions)
- Group disputes into card chargebacks and bank disputes, and into full and partial disputes
- Identify products or services with high dispute rates
- Analyze timing patterns (disputes after X days)
- Generate reports for management
Key Metrics to Track:
- Overall Dispute Rate: Should be less than 1% for most businesses
- Win Rate: Percentage of disputes won with evidence
- Average Dispute Amount: Track financial impact
- Time to First Dispute: Days between transaction and dispute
- Dispute Reason Distribution: Most common dispute types
High Dispute Rates: Consistently high dispute rates (greater than 1%) can result in account reviews, increased processing fees, or account termination. Monitor rates closely and address issues promptly.
Testing Disputes
Test dispute handling in test mode before production deployment.
Simulating a Bank Dispute
Pay from the test bank account 0009807 to simulate a customer disputing a bank payment. The
payment is processed as usual, then returned with status rejected and status code disputed.
Once the payment is returned, confirm that:
- Your webhook endpoint receives the
rejectevent for the payment - Your handling logic runs for the
disputedstatus code
See Test Bank Accounts for the account numbers that produce other status codes.
Test Mode: A test payment isn't returned right away. See Test Bank Accounts for when test returns arrive. In production, there may be days or weeks between the original transaction and the dispute.
Card Chargebacks
Test mode can't simulate a card chargeback. No test card number or security code makes a card
payment come back disputed. To test a declined card security code instead, use the
invalid_card_code test card 4111 1111 1111 9905 from Test Cards.
Dispute Status Codes
Dispute status codes:
disputedpartially_disputedSchema Reference
The following fields are relevant for handling disputes:
Transaction Fields
statuscodeapproved, card_expired, duplicate_attempt, exceeded_limit, general_decline, insufficient_bal, invalid_card_code, invalid_card_number, invalid_zip, invalid_address, invalid_account_number, suspicious_activity, too_many_attempts, processing_issue, issue_reading_card, not_supported, general_reject, general_adjustment, chargeback_overturned, payment_stopped, disputed, partially_disputed, balance_unverifiable"Undocumented"messagevalueprocessing, authorized, processed, declined, rejected, voided, adjustedrejected_date"Undocumented"For complete transaction field documentation, see the Transaction API Reference.
Next Steps
Enhance dispute handling and payment operations
Prevent Disputes
Manage Payment Methods to validate payment information, implement Payment Method Verification to confirm account ownership, and use clear billing descriptors and customer communication to reduce disputes.
Handle Payment Issues
Respond to Payment Declines for immediate payment failures, manage Bank Rejects for NSF and invalid account rejections, and process Voids and Refunds to cancel and reverse payments.
Monitor Payment Health
Set up Webhook Events for real-time dispute notifications, track metrics with Building Report Queries, and analyze transaction data to identify dispute patterns and improve prevention strategies.
Related articles
- Payment API - Process and manage payment transactions
- Bank Rejects - Handle non-disputed bank rejections
- Transactions API Reference
- Webhooks - Configure dispute notifications