Disputes and chargebacks
When a buyer asks their bank to reverse a payment, you have a fixed window to answer with evidence or concede. Flint records each case as a dispute linked to the payment, order, and customer it challenges, with its deadline and amount. Your integration does four things with it: notice the case, decide whether to fight it, respond or accept before evidence_due_at, and reconcile the result.
Merchants can also respond in the Flint dashboard, which uses the same disputes and sends the same events.
Kinds of dispute#
case_type tells you what kind of case you have, and that decides what you can do with it.
| Kind | case_type | What it is | What you can do |
|---|---|---|---|
| Inquiry | inquiry | The issuer asks for information before any chargeback. | Respond with evidence, or refund the payment to concede. An inquiry can't be accepted. |
| Chargeback | chargeback | The bank reverses the payment. The disputed amount leaves your balance when the case opens. | Respond with evidence, or accept. |
| Other card network cases | compliance, resolution, block | Card network case types other than an inquiry or chargeback. | Follow status and is_action_required, as for a chargeback. |
| Bank return | bank_return | An ACH debit came back after it settled. | Nothing to contest. See Bank returns. |
| Other | other | A non-card case, such as a buy now, pay later claim, or a card case type Flint doesn't list. | Follow status and is_action_required. |
payment_option says how the disputed payment was made: card, apple_pay, google_pay, affirm, or ach_debit. Affirm disputes use the same resource.
Statuses#
A chargeback opens in needs_response and ends won or lost:
- needs_response moves to under_review on you submit evidence
- needs_response moves to lost on you accept
- under_review moves to won on bank rules for you
- under_review moves to lost on bank rules against you
An inquiry moves from inquiry_needs_response to inquiry_under_review when you respond, then either closes as inquiry_closed or escalates to a chargeback in needs_response. If a chargeback gets no response by evidence_due_at, the bank records the outcome, normally lost.
status on disputeA payment's dispute_status, and the dispute_status filter on GET /v1/payment-intents, use the same values plus none for a payment with no dispute.
Build the response queue#
Drive the queue from webhooks and treat each event as a prompt to read the dispute. Deliveries can repeat or arrive after a newer change, so deduplicate on the envelope's webhook_event_id (the webhook-id header) and act on what GET /v1/disputes/{dispute_id} returns, not on the payload alone. Webhooks covers verification and retries.
One change sends at most one of dispute.updated, dispute.needs_response, or an outcome event. A dispute Flint sees for the first time sends dispute.created and, when one applies, that one event: a new chargeback sends dispute.created then dispute.needs_response, and a new bank return sends dispute.created then dispute.lost. A dispute is final after exactly one of dispute.won, dispute.lost, dispute.prevented, or dispute.inquiry_closed.
In test mode, Flint can save an unsubmitted draft after the dispute first needs a response. That change can send dispute.updated with has_evidence: true after dispute.needs_response; it doesn't mean someone started or submitted a response.
A typical contested chargeback:
Read the dispute with a key that has payments.disputes.read:
curl https://api.withflintpay.com/v1/disputes/du_1kmn0aExample \
-H "Authorization: Bearer YOUR_API_KEY"
{
"data": {
"dispute_id": "du_1kmn0aExample",
"merchant_id": "mer_1kmn0aExample",
"payment_intent_id": "pi_1kmn0aExample",
"order_id": "ord_1kmn0aExample",
"customer_id": "cus_1kmn0aExample",
"payment_option": "card",
"amount_money": { "amount": 5000, "currency": "USD" },
"status": "needs_response",
"status_changed_at": "2026-10-20T16:02:11Z",
"reason": "product_not_received",
"case_type": "chargeback",
"evidence_due_at": "2026-10-30T23:59:59Z",
"can_respond_with_evidence": true,
"is_action_required": true,
"is_evidence_deadline_passed": false,
"supported_actions": ["accept"],
"has_evidence": false,
"evidence_submission_count": 0,
"created_at": "2026-10-20T16:02:11Z",
"updated_at": "2026-10-20T16:02:11Z"
},
"request_id": "req_01KWM6A6WW4XN0RJ7G0G8XEYAW"
}
Add expand=order, expand=customer, or expand=payment_intent to include those records; each needs its own read scope as well. These fields decide what your queue does:
| Field | Use it for |
|---|---|
is_action_required | Whether a response is needed now: the status is needs_response or inquiry_needs_response, the dispute has a response window, and the deadline hasn't passed. Keep the case in your queue while it is true. |
evidence_due_at | The response deadline, or null when there is none. |
is_evidence_deadline_passed | true once evidence_due_at is in the past. |
can_respond_with_evidence | Whether the dispute has a response window at all. It stays true after the window closes or a decision is made. |
response_unavailable_reason | Why there's no response window: bank_return_not_contestable or response_window_unavailable. Absent when there's no reason to report. |
has_evidence | Whether evidence is saved, submitted or not. In test mode, Flint can save a draft before anyone starts a response. |
evidence_submission_count | How many times evidence was submitted. is_action_required: true and a count of 0 means unanswered, whether or not a draft exists. |
supported_actions | accept when a chargeback is in needs_response with a response window whose evidence_due_at hasn't passed; [] otherwise. |
reason | What the buyer claims, which decides the evidence. See Prepare evidence. |
status_changed_at | When the current status was recorded: the processor's event time when available, otherwise when Flint saw the change. It may not be the exact decision time. |
fraud_warning_id | The issuer fraud warning that preceded the dispute, when there was one. |
Flint can't report whether anyone edited a draft. Use is_action_required: true and evidence_submission_count: 0 to find unanswered cases.
is_action_required, is_evidence_deadline_passed, and supported_actions are evaluated when you read the dispute; in a webhook payload, they reflect when Flint recorded the change. Once evidence_due_at has passed, is_action_required turns false, is_evidence_deadline_passed turns true, and accept leaves supported_actions, with no event. Schedule your own reminder from evidence_due_at and set an internal cutoff well before it, leaving time for review and upload.
List the queue#
Cases that need a response, soonest deadline first:
curl --get https://api.withflintpay.com/v1/disputes \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "is_action_required=true" \
--data-urlencode "sort_by=evidence_due_at" \
--data-urlencode "sort_direction=asc" \
--data-urlencode "page_size=100"
To catch anything a missed webhook would have told you, sync the disputes that changed since your last run. Start each window where the previous one ended:
curl --get https://api.withflintpay.com/v1/disputes \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "updated_after=2026-10-27T00:00:00Z" \
--data-urlencode "updated_before=2026-10-28T00:00:00Z" \
--data-urlencode "page_size=100"
GET /v1/disputes also filters by status, reason, case_type, payment_intent_id, order_id, customer_id, and the created_, updated_, and evidence_due_ windows, and sorts by created_at (the default, newest first), evidence_due_at, or amount_money. status, reason, and case_type take several values, repeated or comma-separated. Each window takes RFC 3339 timestamps, with an inclusive _after and an exclusive _before, so consecutive windows never overlap or skip a dispute. Send each bound once: an empty, repeated, or malformed value returns 400 INVALID_REQUEST with param naming it, and an updated_before earlier than updated_after names updated_before. Page with page_token until next_page_token is absent, and start over without a token when you change any filter or sort. The Disputes API reference lists every parameter.
Decide what to do#
| Situation | Do this |
|---|---|
| You have evidence that the payment was legitimate or the buyer got what they paid for | Respond before evidence_due_at. |
| A chargeback you agree with, or one too small to justify the work | Accept it. The money already left your balance; accepting ends the case. |
| An inquiry you agree with | Refund the payment. An inquiry can't be accepted, and refunds aren't blocked while it is open. |
| A bank return | Nothing to contest. Collect again with a new payment if appropriate. |
under_review, inquiry_under_review, or other | Wait for the next event. |
Don't refund a chargeback to make it go away. While a chargeback is needs_response, under_review, other, or lost, POST /v1/refunds on that payment fails with 409 ACTION_NOT_ALLOWED and reason payment_disputed, because the buyer already has the money through their bank. Refunds work again once the dispute is won or prevented, and inquiries never block them. See Refunds.
Prepare evidence#
Match the evidence to reason. A short, consistent package that answers the buyer's claim is easier for the issuer to accept than every document you have. The issuer reviews one submission, so finish the package before you submit.
reason | Evidence that answers it |
|---|---|
fraudulent, unrecognized | The buyer's identity and communication, authentication results, device or IP details you lawfully keep, earlier undisputed payments from the same buyer, and proof of delivery or use. A risk score alone doesn't show the buyer authorized the payment. |
product_not_received | Order confirmation, fulfillment timeline, carrier and tracking number, delivery address, delivery confirmation, and buyer communication. |
product_not_as_described | The listing or description the buyer saw, your return policy, and communication about the product's condition. |
duplicate | Each transaction, invoice, and refund, and what distinguishes the legitimate charge. |
refund_not_processed | The refund record, or the policy that shows no refund was due. |
subscription_canceled | The cancellation policy the buyer accepted, the cancellation time, the service period, and renewal notices. |
noncompliant, other | Read the case in the response component, then answer what it asks. |
insufficient_funds, debit_not_authorized, bank_account_not_found | None. These are bank returns. |
In test mode, for inquiries and chargebacks, Flint saves an unsubmitted evidence draft with the payment processor when the dispute first needs a response. It uses records Flint already holds for the sale, chosen by reason: the buyer's name, email, and billing address, the order and its lines, shipping carrier, tracking, and dates, receipt and shipping emails sent to the buyer, refunds, subscription dates, and your refund policy link. The draft fills only empty fields and stays out of Flint's storage and logs. Creating the draft doesn't submit it. Review it, edit it, and submit it in the response component. Drafts are off in live mode until Flint enables them. Merchants can't opt out of automatic drafts.
Respond to a dispute#
A response session puts Stripe's embedded dispute component in your own interface. The merchant reads the case, uploads evidence, and submits it there, and can later reopen the session to see what was submitted.
- Browser sends a signed-in user opens the dispute to Your server
- Your server sends POST /v1/disputes/{dispute_id}/response-sessions to Flint
- Flint returns publishable key, client secret, Stripe PaymentIntent ID to Your server
- Your server returns client_session.stripe to Browser
- Browser sends the component loads the case and submits evidence to Stripe
- Stripe sends the dispute moves to under_review to Flint
- Flint sends dispute.updated to Your server
Create the session from your server with a key that has payments.disputes.write. Merchant API keys in live and test mode can be granted it, and full-access keys include it. Send no body or {}; any field returns 400 INVALID_REQUEST.
curl -X POST https://api.withflintpay.com/v1/disputes/du_1kmn0aExample/response-sessions \
-H "Authorization: Bearer $FLINT_API_KEY"
The 201 response holds everything the browser needs:
{
"data": {
"dispute_id": "du_1kmn0aExample",
"client_session": {
"expires_at": "2026-10-21T15:30:00Z",
"stripe": {
"publishable_key": "pk_live_123",
"account_session": {
"stripe_js_call": "load_connect_and_initialize",
"client_secret": "accs_secret_123"
},
"components": [
{ "component": "payment_disputes", "stripe_payment_intent_id": "pi_3Qexample" }
]
}
}
},
"request_id": "req_01KWM6A6WW4XN0RJ7G0G8XEYAW"
}
components has one entry. Its stripe_payment_intent_id is the Stripe PaymentIntent ID the component needs; it isn't a Flint payment_intent_id. The session details appear only in this response, never on the dispute, in lists, or in webhooks.
Each call returns a new, single-use client_secret. A completed request retried with the same Idempotency-Key creates a fresh session rather than replaying the old secret, so call the route again whenever Connect asks for a secret. A session opens for a dispute in any status except a bank return, including closed disputes.
Show the component#
Your server calls Flint and passes the response body to a signed-in user. Check that the user may handle disputes for this merchant before calling Flint; a dispute ID from the browser isn't proof of access.
app.post("/disputes/:disputeId/response-session", requireDisputeAccess, async (req, res) => {
const flint = await fetch(
`https://api.withflintpay.com/v1/disputes/${encodeURIComponent(req.params.disputeId)}/response-sessions`,
{ method: "POST", headers: { Authorization: `Bearer ${process.env.FLINT_API_KEY}` } },
);
res.status(flint.status).json(await flint.json());
});
In the browser, install @stripe/connect-js and initialize Connect with the publishable key. Connect calls fetchClientSecret for the first secret and again whenever it needs a new one. The example hands Connect the secret from the first call, then creates a new session for each later request.
import { loadConnectAndInitialize } from "@stripe/connect-js";
async function createSession(disputeId) {
const response = await fetch(`/disputes/${encodeURIComponent(disputeId)}/response-session`, {
method: "POST",
credentials: "same-origin",
});
const body = await response.json();
if (!response.ok) throw new Error(body.error?.message ?? "The dispute couldn't be opened");
return body.data.client_session.stripe;
}
const first = await createSession(disputeId);
let firstSecret = first.account_session.client_secret;
const connect = loadConnectAndInitialize({
publishableKey: first.publishable_key,
fetchClientSecret: async () => {
if (firstSecret) {
const secret = firstSecret;
firstSecret = null;
return secret;
}
return (await createSession(disputeId)).account_session.client_secret;
},
});
const disputeComponent = connect.create("payment-disputes");
disputeComponent.setPayment(first.components[0].stripe_payment_intent_id);
document.getElementById("dispute").appendChild(disputeComponent);
With @stripe/react-connect-js, wrap the component in ConnectComponentsProvider and pass the payment as a prop:
<ConnectComponentsProvider connectInstance={connect}>
<ConnectPaymentDisputes payment={first.components[0].stripe_payment_intent_id} />
</ConnectComponentsProvider>
Your Content Security Policy must allow Stripe Connect; Browser and security requirements lists the sources.
After a submission, the dispute moves to under_review (or inquiry_under_review) and sends dispute.updated. Remove the case from your response queue then, and wait for the outcome event.
Where evidence goes#
Evidence travels from the component straight to the payment processor. Flint doesn't receive, store, or log the documents, customer messages, or text the merchant enters, and none of it appears in /v1/files, request logs, or webhooks. The dispute reports only whether evidence is saved (has_evidence) and how many times it was submitted (evidence_submission_count). The API has no route that accepts evidence; responses go through a response session or the dashboard.
Accept a dispute#
Accepting a chargeback means you won't contest it. The dispute becomes lost and the disputed amount stays with the buyer. Accepting moves no money, because the amount left your balance when the chargeback opened, and it can't be undone: you can't submit evidence afterward.
You can accept when supported_actions contains accept: the case is a chargeback in needs_response with a response window whose deadline hasn't passed. The list never depends on your credential. Use a key with payments.disputes.write, send no body or {}, and send an Idempotency-Key so you can retry safely.
curl -X POST https://api.withflintpay.com/v1/disputes/du_1kmn0aExample/accept \
-H "Authorization: Bearer $FLINT_API_KEY" \
-H "Idempotency-Key: accept-du_1kmn0aExample"
The 200 response is the dispute, now lost. Trimmed here to the fields that change:
{
"data": {
"dispute_id": "du_1kmn0aExample",
"status": "lost",
"is_action_required": false,
"supported_actions": [],
"case_type": "chargeback",
"reason": "product_not_received",
"amount_money": { "amount": 5000, "currency": "USD" },
"status_changed_at": "2026-10-22T14:30:00Z",
"updated_at": "2026-10-22T14:30:00Z"
},
"request_id": "req_01KWM6ZY4CB4Q2DPHECN2ZJKZM"
}
Flint sends dispute.lost once. The payment's dispute_status updates a few seconds later, when the processor reports the dispute closed, so read the dispute rather than the payment for the immediate result.
From the CLI, flint disputes accept du_1kmn0aExample asks you to confirm; scripts pass --confirm. The route uses the sensitive write rate limit.
When accepting is refused#
A dispute in any other state returns 409 ACTION_NOT_ALLOWED with remediation.retry none. Branch on details[0].reason; details[0].current_status is the dispute's status, and details[0].supported_actions lists its available lifecycle actions.
reason | When | What to do |
|---|---|---|
already_applied | The dispute is already lost, including every bank return. | Nothing. Treat it as accepted. |
terminal_status | The dispute is won, prevented, or inquiry_closed. | Nothing. The case is over. |
in_progress | The dispute is under_review or inquiry_under_review, its deadline has passed, or another request is accepting it now. | Wait for the next event, then read the dispute. |
unsupported_state | The dispute is an inquiry, is other, or has no response window. | For an inquiry, remediation.next_actions includes create_refund: refund the payment or respond with evidence. Otherwise read the dispute again later. |
For an inquiry, create_refund points to POST /v1/refunds, requires commerce.refunds.write, and lists payment_intent_id in required_fields. Its target_resource has resource_type: "payment_intent" and the dispute's Flint payment intent ID as resource_id. Send that ID as payment_intent_id in the refund request. See Follow-up actions.
If the payment processor declines to close a dispute that Flint shows as needs_response with is_action_required true, the route returns unsupported_state with a create_dispute_response_session entry in remediation.next_actions. Open a response session and accept the dispute in the component. Retrying the same request returns the same refusal.
404 RESOURCE_NOT_FOUND means no such dispute in this environment. 503 SERVICE_UNAVAILABLE with reason processor_unavailable means the processor didn't answer; the dispute may not have changed.
Recover from a failed request#
If you get no response or a 503, retry with the same Idempotency-Key. If the first request succeeded, the retry returns the same 200 with an Idempotency-Replayed: true header. You can also read the dispute: status: lost means it was accepted. A request with a new key on a dispute that is already lost returns already_applied, which you can treat as success.
Bank returns#
An ACH debit payment that the buyer's bank pulls back after it settled comes back as a bank return, represented by the same Dispute resource:
case_typeisbank_returnandpayment_optionisach_debit.reasonisinsufficient_funds,debit_not_authorized,bank_account_not_found, orother.- There's no response window:
can_respond_with_evidenceandis_action_requiredarefalse,evidence_due_atisnull, andresponse_unavailable_reasonisbank_return_not_contestable.
A bank return is final on arrival, so dispute.created and dispute.lost fire together. There is no evidence to prepare and no outcome to influence. Route these to accounting and buyer outreach, and filter your evidence queue on case_type or is_action_required so they never look like work waiting on a deadline. The money has already left your balance, so collecting again means a new payment from the buyer. A bank return also reduces what's left to refund on the payment; see ACH returns and refunds.
Reconcile the result#
The final statuses are won, lost, prevented, and inquiry_closed. When one arrives, reconcile it against the payment, the order, your balance, and any refund already issued. Don't send another refund because a case is lost: the buyer already has the money.
On your balance, a chargeback posts a dispute balance transaction for the disputed amount. Any processor dispute fee deducted from your balance appears as positive fee_money on that row, and net_money includes both deductions. A dispute_reversal returns the principal. The original payment's processing fee isn't returned either way.
A won status doesn't prove the processor returned the dispute fee. A principal-only reversal has fee_money of 0. If the processor returns the fee on the reversal, fee_money is negative. A separate fee credit appears as its own balance transaction. Reconcile the posted returns.
A dispute can carry an event fee on your merchant billing account: $15.00 for a bank return or other dispute on an ACH payment. A card, Apple Pay, or Google Pay dispute carries the card network's cost as an event fee only when Flint paid the processor's fee. A dispute fee already deducted from your balance carries no additional card_dispute event fee. GET /v1/merchant-billing-entries?dispute_id=du_1kmn0aExample returns the dispute's event_fee entry and any later correction, credit_issued, credit_applied, collection, collection_reversal, or write_off entry for it, so you can see whether the fee was collected, credited, or written off. It needs merchant_billing.read. Event fees explains the amounts and Reconciliation covers the balance ledger.
If the payment funded gift cards, an open or lost dispute freezes each affected card and adds a funding_dispute entry to its restrictions, with dispute_status open or lost. Winning clears that restriction. After a loss, balances and pending reservations are preserved but can't be spent or cashed out until you decide; to honor the value, create a gift card funding disposition with the dispute_id. Refunds and funding losses covers the request.
After a fraudulent dispute, review the customer's saved payment methods, unfulfilled orders, and subscriptions under your own policy. A dispute is a signal about one payment, not proof that everything else from that customer is fraudulent.
Test dispute outcomes#
In a sandbox you can have a dispute decided without waiting for a card network. Create one by paying with a dispute test card:
- : the payment succeeds, then is disputed as
fraudulent(needs_response). - : the payment succeeds, then is disputed as an inquiry (
inquiry_needs_response).
Then call POST /v1/disputes/{dispute_id}/simulate with the ruling you want. The route needs payments.disputes.write and a test-mode credential; a live key or live dashboard session gets 403 FORBIDDEN with reason test_mode_required. It stands in for the card network's ruling and is separate from accepting a dispute, which is your own action.
curl -X POST https://api.withflintpay.com/v1/disputes/du_1kmn0aExample/simulate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: simulate-du_1kmn0aExample-won" \
-d '{"outcome": "won"}'
outcome is required; a missing or unknown value returns 400 INVALID_REQUEST. The route uses the external provider action rate limit.
outcome | Accepted when status is | Test evidence Flint submits | Status after the ruling | Events |
|---|---|---|---|---|
won | needs_response | winning_evidence | won | dispute.updated, then dispute.won |
lost | needs_response | losing_evidence | lost | dispute.updated, then dispute.lost |
inquiry_closed | inquiry_needs_response | winning_evidence | inquiry_closed | dispute.updated, then dispute.inquiry_closed |
escalated | inquiry_needs_response | escalate_inquiry_evidence | needs_response | dispute.needs_response, sometimes after a dispute.updated |
The dispute must also have a response window whose deadline hasn't passed, and can't be a bank return. Simulating submits any saved draft and replaces its additional notes with the processor's test value for the chosen outcome. Stripe decides, so the ruling reaches you through the usual events, as a real one would. Flint never writes the outcome itself, and the ruling has no fixed timing.
The 200 response is the dispute right after the evidence is submitted, normally under_review (or inquiry_under_review) with evidence_submission_count 1. Wait for the events in the table, then read the dispute. An escalated inquiry can show inquiry_under_review first and then becomes a chargeback in needs_response. Simulate a dispute outcome walks through the whole test.
When a simulation is refused#
A dispute that can't take the outcome returns 409 ACTION_NOT_ALLOWED with details[0].supported_actions. Simulation is a test tool and never appears in that list. Branch on details[0].reason:
reason | When |
|---|---|
terminal_status | The dispute is won, lost, prevented, or inquiry_closed. An accepted dispute is lost, so simulating after an accept returns this. |
in_progress | The dispute is under_review or inquiry_under_review, or another request is submitting an outcome now. |
bank_return_not_contestable | The dispute is a bank return. |
unsupported_state | The dispute has no response window, its deadline has passed, or Flint doesn't recognize its state. With param outcome, the outcome is for the other kind of case, such as won on an inquiry. |
A second simulation with a new Idempotency-Key returns 409 because evidence is already submitted; a retry with the same key replays the first result. 503 SERVICE_UNAVAILABLE with reason processor_unavailable means Stripe didn't take the evidence: retry with the same key, or read the dispute to see whether it was submitted.
Fraud warnings#
An issuer can send a fraud warning before, or instead of, a dispute. fraud_warning.created reports it, with a payment summary and is_actionable. A full refund, a dispute on the payment, or the card network resolving the warning makes it unactionable, and fraud_warning.updated reports the change. When a dispute follows, the dispute's fraud_warning_id links back to it. If you refund in response, re-read the payment first so a concurrent refund doesn't over-refund. Respond to fraud warnings covers the workflow.
