Skip to content

Disputes

A dispute is a bank challenging a payment: an inquiry, a chargeback, or an ACH bank return. Read disputes to work a response queue and reconcile outcomes.

Each dispute links to the payment intent, order, and customer it challenges, and carries the disputed amount_money, the buyer's claim in reason, and the response deadline in evidence_due_at. Flint creates and updates disputes from the payment processor; you don't create them. Your integration notices a case, decides whether to fight it, responds or accepts before the deadline, and reconciles the result. Disputes and chargebacks walks through that workflow end to end.

Kinds of dispute#

case_type decides what you can do with a dispute.

case_typeWhat it isWhat you can do
inquiryThe issuer asks for information before any chargeback.Respond with evidence, or refund the payment to concede. An inquiry can't be accepted.
chargebackThe bank reverses the payment. The disputed amount leaves your balance when the case opens.Respond with evidence, or accept.
compliance, resolution, blockOther card network cases.Follow status and is_action_required, as for a chargeback.
bank_returnAn ACH debit came back after it settled. There's no response window.Nothing to contest. Collect again with a new payment if appropriate.
otherA 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. A bank return always has payment_option ach_debit, a reason of insufficient_funds, debit_not_authorized, bank_account_not_found, or other, and response_unavailable_reason bank_return_not_contestable. See Bank returns.

Status#

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.

A chargeback opens in needs_response. Submitting evidence moves it to under_review, and the bank then rules won or lost. Accepting it moves it straight to lost. If a chargeback gets no response by evidence_due_at, the bank records the outcome, normally lost.

status on dispute
Final values do not change again
  • inquiry_needs_response
    The issuer wants information before any chargeback. Respond by evidence_due_at, or refund the payment to concede.
  • inquiry_under_review
    You responded and the issuer is reviewing it. Wait for the next event.
  • inquiry_closedFinal
    The inquiry closed without becoming a chargeback.
  • needs_response
    A chargeback is open. Respond with evidence or accept it by evidence_due_at.
  • under_review
    Evidence was submitted and the bank is deciding. The status doesn't predict the outcome.
  • wonFinal
    Decided in your favor.
  • lostFinal
    Decided against you, accepted by you, or a bank return.
  • preventedFinal
    Resolved before it became a chargeback.
  • other
    A state Flint doesn't recognize yet. Treat the dispute as open, don't assume an outcome, and read it again later.

A 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.

Whether a response is needed#

Several fields together say whether you can respond and whether you must respond now. Branch on is_action_required, not on status alone.

FieldMeaning
is_action_requiredtrue when status is needs_response or inquiry_needs_response, can_respond_with_evidence is true, and evidence_due_at hasn't passed. Keep the case in your queue while it's true.
evidence_due_atThe response deadline, or null when the dispute has none.
is_evidence_deadline_passedtrue once a dispute with a response window is past evidence_due_at.
can_respond_with_evidenceWhether the dispute has a response window at all. It stays true after the window closes or a decision is made.
response_unavailable_reasonWhy there's no response window: bank_return_not_contestable, or response_window_unavailable when no deadline was supplied.
has_evidenceWhether evidence is saved, submitted or not. In test mode, this includes an unsubmitted draft Flint saves when the dispute first needs a response, so it doesn't mean someone started a response.
evidence_submission_countHow many times evidence was submitted. is_action_required: true and a count of 0 means unanswered, whether or not a draft exists.
supported_actionsaccept when a chargeback is in needs_response with a response window whose evidence_due_at hasn't passed; [] otherwise.

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 the dispute is read; in a webhook payload, as of 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 before it. The list never depends on your credential; actions still require their scopes.

List the response queue#

is_action_required=true returns the disputes that need a response now, and false returns the rest. Sorting by evidence_due_at puts disputes without a deadline last in either direction. This request lists the queue, soonest deadline first:

cURL
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"
JSON
{
  "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_01KWM6ZY4CB4Q2DPHECN2ZJKZM"
}

status, reason, and case_type each take several values, repeated or comma-separated; values within one filter match any of them, and separate filters must all match. To catch anything a missed webhook would have told you, sync by updated_at, which changes whenever a field on the dispute changes. The created_, updated_, and evidence_due_ windows each take one RFC 3339 timestamp per bound. _after is inclusive and _before is exclusive, so consecutive windows never overlap or skip a dispute, and equal bounds return an empty page. An empty, repeated, or malformed bound returns 400 INVALID_REQUEST with detail code INVALID_VALUE and param naming it, and an updated_before earlier than updated_after names updated_before.

GET /v1/disputes and GET /v1/disputes/{dispute_id} accept expand with payment_intent, order, and customer. Each path adds the related record beside its ID, or null when the dispute has no such ID. Every path needs payments.disputes.read plus the related record's read scope:

expandAlso needs
payment_intentpayments.payment_intents.read
ordercommerce.orders.read
customercustomers.read

A key without a scope a path needs gets 403 INSUFFICIENT_SCOPE with param: expand. An order summary includes the contact the order recorded as buyer_contact, including on guest orders; see Expanded order summaries. Expand related records covers how Flint batches each page and keeps page tokens valid.

Respond, accept, or refund#

Creating a response session and accepting a chargeback need payments.disputes.write. Refunding an inquiry needs commerce.refunds.write. The two dispute routes take an optional Idempotency-Key; creating a refund requires one.

  • Respond with evidence. POST /v1/disputes/{dispute_id}/response-sessions returns a single-use session for Stripe's embedded dispute component, where the merchant reads the case, uploads evidence, and submits it. The session's components[0].stripe_payment_intent_id is the Stripe PaymentIntent ID to pass to the component, separate from the dispute's Flint payment_intent_id. Evidence goes straight to the payment processor; Flint doesn't store it and the API has no route that accepts it. A session opens for any dispute except a bank return, including closed ones. See Respond to a dispute for the server and Connect.js code.
  • Accept a chargeback. POST /v1/disputes/{dispute_id}/accept concedes it: the dispute becomes lost and Flint sends dispute.lost. You can accept when supported_actions contains accept. Accepting can't be undone and moves no money, because the disputed amount left your balance when the chargeback opened. Any other state returns 409 ACTION_NOT_ALLOWED; When accepting is refused lists each reason.
  • Refund an inquiry. An inquiry can't be accepted. To concede one, refund the payment with POST /v1/refunds. An accept refusal offers create_refund at /v1/refunds, with required field payment_intent_id, required scope commerce.refunds.write, and target_resource naming the dispute's Flint payment intent. Send target_resource.resource_id as payment_intent_id.

Warning: Don't refund a chargeback

While a payment's chargeback is needs_response, under_review, other, or lost, POST /v1/refunds on that payment returns 409 ACTION_NOT_ALLOWED with reason payment_disputed, because the buyer already has the money through their bank. Refunds work again once the dispute is won or prevented. Inquiries never block refunds.

Webhooks#

Drive your queue from events and treat each one as a prompt to read the dispute, since deliveries can repeat or arrive out of order.

One change sends at most one of dispute.needs_response, an outcome event, or dispute.updated. A new dispute sends dispute.created first, followed by that one event when it applies: a new chargeback sends dispute.created then dispute.needs_response, and a bank return sends dispute.created then dispute.lost. Build the response queue shows a typical sequence, and Dispute events has the payloads.

In test mode, Flint can save an unsubmitted draft and send dispute.updated with has_evidence: true after dispute.needs_response. This doesn't mean someone started or submitted a response.

A chargeback posts a dispute balance transaction for the disputed amount when it opens. A processor dispute fee deducted from your balance appears on that row as fee_money, with net_money equal to the principal minus the fee. A dispute_reversal returns the principal; its fee_money is negative only if the processor also returns the fee on that row. A separate fee credit appears as its own row. A won status alone doesn't return the fee, and the original payment's processing fee isn't returned either way.

A card dispute carries an event fee on your merchant billing account only when Flint paid the processor's fee. A fee already deducted from your balance carries no additional card_dispute event fee. GET /v1/merchant-billing-entries?dispute_id=... returns any event fee and its later corrections, credits, or collections. Reconcile the result works through the amounts.

When the disputed payment funded gift cards, an open or lost dispute freezes each affected card. The card's restrictions gets a funding_dispute entry with dispute_status open or lost, and each affected load's funding_disputes records the dispute and its outcome. A win clears only that dispute's restriction; other disputes and merchant freezes stay in effect. After a loss, the entry has requires_resolution: true, and balances and reservations are kept but can't be spent. To honor the value, create a gift card funding disposition with the dispute_id. It clears only that dispute's restriction and sets resolution.disposition to honor_value on its funding_disputes entries.

Test in a sandbox#

Pay with the test card for a fraudulent chargeback, or for an inquiry. Then POST /v1/disputes/{dispute_id}/simulate with an outcome stands in for the card network: won or lost for a chargeback in needs_response, and inquiry_closed or escalated for an inquiry in inquiry_needs_response. Flint submits any saved draft, replaces its additional notes with Stripe's test value for that outcome, and returns the dispute, normally under_review or inquiry_under_review; the ruling arrives later through the usual events. The route needs a test-mode credential, and a live one gets 403 FORBIDDEN with reason test_mode_required. Test dispute outcomes lists the events and refusals for each outcome.

Disputes and chargebacksBuild the queue, prepare evidence, respond, accept, and reconcile.RefundsWhat stays refundable, and how disputes block refunds.Risk controlsPayment review and the fraud warnings that can come before a dispute.

The Dispute object#

A challenge to a collected payment.

Returned by GET /v1/disputes/{dispute_id} and carried by the endpoints below.

Attributes

amount_moneyobjectRequired

Amount in dispute. For a chargeback, this amount left your balance when the case opened; an inquiry moves no money.

can_respond_with_evidencebooleanRequired

Whether this dispute has an evidence response window. It stays true after the window closes or a decision is made. Use is_action_required to know whether a response is needed now.

case_typeenumRequired

Kind of case the card network or bank opened. `status` and `is_action_required` say whether a response is needed.

  • inquiry
  • chargeback
  • compliance
  • resolution
  • block
  • other
  • bank_return
created_atstringRequired

RFC3339 timestamp.

customerobject or null

Present only when `expand` includes `customer`; `null` when expanded and there is no related customer.

customer_idstring

The customer on the disputed payment. Absent when the payment has none.

dispute_idstringRequired

Stable identifier of the dispute.

evidence_due_atstring or nullRequired

Deadline for submitting evidence. Respond before it when is_action_required is true. `null` when the dispute has no response window, such as a bank return or a case your processor gave no deadline for.

evidence_submission_countintegerRequired

How many times evidence was submitted for this dispute. 0 until you submit.

fraud_warning_idstring

The fraud warning the card network sent for this payment before the dispute. Absent when there was none.

has_evidencebooleanRequired

Whether evidence is saved for this dispute, submitted or not. In test mode this includes an unsubmitted draft Flint saves when the dispute first needs a response, so it doesn't mean someone started a response. evidence_submission_count says whether evidence was submitted.

is_action_requiredbooleanRequired

True when status is needs_response or inquiry_needs_response, can_respond_with_evidence is true, and evidence_due_at hasn't passed. Evaluated when the dispute is read; in a webhook payload, as of when Flint recorded the change. It turns false once evidence_due_at has passed, with no event.

is_evidence_deadline_passedbooleanRequired

Whether evidence_due_at has passed on a dispute with a response window. Always false when can_respond_with_evidence is false. Evaluated when the dispute is read; in a webhook payload, as of when Flint recorded the change. It turns true once evidence_due_at has passed, with no event.

merchant_idstringRequired

ID of the merchant this resource belongs to.

orderobject or null

Present only when `expand` includes `order`; `null` when expanded and there is no related order.

order_idstring

ID of the order the disputed payment was for. Absent when Flint can't link the dispute to an order.

payment_intentobject or null

Present only when `expand` includes `payment_intent`; `null` when expanded and there is no related payment intent.

payment_intent_idstring

ID of the payment intent that took the disputed payment. Absent when Flint can't link the dispute to a payment intent.

payment_optionenum or nullRequired

How the buyer paid for the disputed payment. `null` when Flint hasn't linked the dispute to a payment intent that records a payment option.

  • card
  • apple_pay
  • google_pay
  • affirm
  • ach_debit
  • null
reasonenumRequired

Why the payment was disputed. A reason Flint doesn't recognize is `other`.

  • fraudulent
  • unrecognized
  • duplicate
  • product_not_received
  • product_not_as_described
  • refund_not_processed
  • subscription_canceled
  • noncompliant
  • insufficient_funds
  • debit_not_authorized
  • bank_account_not_found
  • other
response_unavailable_reasonenum

Why a response is unavailable when can_respond_with_evidence is false. Absent when no reason is reported. Current values are bank_return_not_contestable and response_window_unavailable. response_window_unavailable means no evidence deadline was supplied.

  • bank_return_not_contestable
  • response_window_unavailable
statusenumRequired

Where the dispute stands. `needs_response` and `inquiry_needs_response` ask you to respond; `inquiry_closed`, `won`, `lost`, and `prevented` are final.

  • inquiry_needs_response
  • inquiry_under_review
  • inquiry_closed
  • needs_response
  • under_review
  • won
  • lost
  • prevented
  • other
status_changed_atstring

Recorded time of the current status. On first observation this is the dispute creation time. Later status changes use the provider event time when available, or the time Flint observed the change. This may not be the exact decision or submission time.

supported_actionsarray of enumRequired

Lifecycle actions Flint accepts now. Evaluated when the dispute is read; in a webhook payload, as of when Flint recorded the change. It turns empty once evidence_due_at has passed, with no event.

  • accept
updated_atstringRequired

RFC3339 timestamp.

JSON
{
  "amount_money": {
    "amount": 5000,
    "currency": "USD"
  },
  "can_respond_with_evidence": true,
  "case_type": "chargeback",
  "created_at": "2026-03-17T14:30:00Z",
  "customer_id": "cus_01KEZF7C003ACYXT6Q5EQZ78EE",
  "dispute_id": "du_01KEZF7C00329MTHSY5GX1VZJR",
  "evidence_due_at": "2026-03-24T14:30:00Z",
  "evidence_submission_count": 0,
  "has_evidence": false,
  "is_action_required": true,
  "is_evidence_deadline_passed": false,
  "merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
  "order_id": "ord_01KEZF7C00JBKMARG3P06Z224B",
  "payment_intent_id": "pi_01KEZF7C0050JFFB0HNCWWV1G3",
  "payment_option": "card",
  "reason": "fraudulent",
  "status": "needs_response",
  "status_changed_at": "2026-03-17T14:30:00Z",
  "supported_actions": [
    "accept"
  ],
  "updated_at": "2026-03-17T14:30:00Z"
}

List disputes#

GET/v1/disputes

Requires scope payments.disputes.read or payments.disputes.write

Rate limit: read

Returns a paginated list of disputes for the authenticated merchant with optional payment, customer, status, reason, case type, action required, and timing filters. Defaults to created_at descending. The amount sort compares amount_money.amount in minor units. The evidence_due_at sort places disputes without deadlines last in either direction. Default order: created_at descending, then dispute_id descending.

Query parameters

updated_afterstring

Inclusive lower bound on updated_at.

updated_beforestring

Exclusive upper bound on updated_at.

payment_intent_idstring

Optional Flint payment intent ID filter.

order_idstring

Optional Flint order ID filter.

customer_idstring

Optional Flint customer ID filter.

statusarray of enum

Optional dispute status filter. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • inquiry_needs_response
  • inquiry_under_review
  • inquiry_closed
  • needs_response
  • under_review
  • won
  • lost
  • prevented
  • other
reasonarray of enum

Optional normalized dispute reason filter. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • fraudulent
  • unrecognized
  • duplicate
  • product_not_received
  • product_not_as_described
  • refund_not_processed
  • subscription_canceled
  • noncompliant
  • insufficient_funds
  • debit_not_authorized
  • bank_account_not_found
  • other
case_typearray of enum

Optional dispute case type filter. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • inquiry
  • chargeback
  • compliance
  • resolution
  • block
  • other
  • bank_return
is_action_requiredboolean

Filter by whether a merchant response is needed now. True includes needs_response and inquiry_needs_response disputes that allow evidence and whose evidence deadline has not passed; false includes the remaining disputes.

sort_byenum

Field to sort by. Defaults to created_at; ties are broken by dispute_id.

  • created_at
  • evidence_due_at
  • amount_money
sort_directionenum

Sort direction. Defaults to desc.

  • asc
  • desc
created_afterstring

Inclusive lower bound on created_at.

created_beforestring

Exclusive upper bound on created_at.

evidence_due_afterstring

Inclusive lower bound on evidence_due_at.

evidence_due_beforestring

Exclusive upper bound on evidence_due_at.

page_sizeinteger

Maximum number of results to return, from 1 to 100. Defaults to 20.

page_tokenstring

Opaque next_page_token from the previous response. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An invalid, expired, or mismatched token returns a validation error.

expandarray of enum

Include related objects in the response. Supported expansions: customer, order, payment_intent. Include the requested related resources using scoped batch reads for this page. Each relationship requires its existing target read scopes. Expansion changes the representation without changing pagination tokens. Limits: at most 10 unique expand paths per request.

  • customer
  • order
  • payment_intent

Response · 200

A page of disputes for the authenticated merchant.

dataarray of objectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

next_page_tokenstring

Opaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl https://api.withflintpay.com/v1/disputes \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

A page of disputes for the authenticated merchant.

JSON
{
  "data": [
    {
      "amount_money": {
        "amount": 5000,
        "currency": "USD"
      },
      "can_respond_with_evidence": true,
      "case_type": "chargeback",
      "created_at": "2026-03-17T14:30:00Z",
      "customer_id": "cus_01KEZF7C003ACYXT6Q5EQZ78EE",
      "dispute_id": "du_01KEZF7C00329MTHSY5GX1VZJR",
      "evidence_due_at": "2026-03-24T14:30:00Z",
      "evidence_submission_count": 0,
      "has_evidence": false,
      "is_action_required": true,
      "is_evidence_deadline_passed": false,
      "merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
      "order_id": "ord_01KEZF7C00JBKMARG3P06Z224B",
      "payment_intent_id": "pi_01KEZF7C0050JFFB0HNCWWV1G3",
      "payment_option": "card",
      "reason": "fraudulent",
      "status": "needs_response",
      "status_changed_at": "2026-03-17T14:30:00Z",
      "supported_actions": [
        "accept"
      ],
      "updated_at": "2026-03-17T14:30:00Z"
    }
  ],
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6ZY4CB4Q2DPHECN2ZJKZM"
}

Get a dispute#

GET/v1/disputes/{dispute_id}

Requires scope payments.disputes.read or payments.disputes.write

Rate limit: read

Returns one dispute by ID, with optional customer, order, and payment intent expansions.

Path parameters

dispute_idstringRequired

Flint dispute ID.

Query parameters

expandarray of enum

Include related objects in the response. Supported expansions: customer, order, payment_intent. Expansion requires payments.disputes.read plus the read scope for each expanded resource. Limits: at most 10 unique expand paths per request.

  • customer
  • order
  • payment_intent

Response · 200

The requested dispute.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl https://api.withflintpay.com/v1/disputes/du_01KEZF7C00DEJSF1KTXRT4BBQD \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

The requested dispute.

JSON
{
  "data": {
    "amount_money": {
      "amount": 5000,
      "currency": "USD"
    },
    "can_respond_with_evidence": true,
    "case_type": "chargeback",
    "created_at": "2026-03-17T14:30:00Z",
    "customer_id": "cus_01KEZF7C003ACYXT6Q5EQZ78EE",
    "dispute_id": "du_01KEZF7C00329MTHSY5GX1VZJR",
    "evidence_due_at": "2026-03-24T14:30:00Z",
    "evidence_submission_count": 0,
    "has_evidence": false,
    "is_action_required": true,
    "is_evidence_deadline_passed": false,
    "merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
    "order_id": "ord_01KEZF7C00JBKMARG3P06Z224B",
    "payment_intent_id": "pi_01KEZF7C0050JFFB0HNCWWV1G3",
    "payment_option": "card",
    "reason": "fraudulent",
    "status": "needs_response",
    "status_changed_at": "2026-03-17T14:30:00Z",
    "supported_actions": [
      "accept"
    ],
    "updated_at": "2026-03-17T14:30:00Z"
  },
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6ZY4CB4Q2DPHECN2ZJKZM"
}

Accept a dispute#

POST/v1/disputes/{dispute_id}/acceptIdempotent

Requires scope payments.disputes.write

Rate limit: sensitive_write

Accepts a chargeback: you won't contest it, and the disputed amount stays with the buyer. The dispute becomes `lost`, and Flint sends `dispute.lost`. You can accept while `status` is `needs_response` and `is_action_required` is `true`. An inquiry can't be accepted; refund the payment or respond with evidence instead. Accepting can't be undone. Requires `payments.disputes.write`. Send no body or `{}`. If you don't receive a response, retry with the same idempotency key, or read the dispute: `status: lost` means it was accepted.

Path parameters

dispute_idstringRequired

Flint dispute ID.

Response · 200

The accepted dispute, now lost.

Same response as Get a dispute.

curl -X POST https://api.withflintpay.com/v1/disputes/du_01KEZF7C00DEJSF1KTXRT4BBQD/accept \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Create a dispute response session#

POST/v1/disputes/{dispute_id}/response-sessionsIdempotent

Requires scope payments.disputes.write

Rate limit: external_provider_action

Creates a browser session for responding to or viewing a dispute with Stripe Connect. Requires payments.disputes.write. Allowed for closed disputes; bank returns cannot be contested. Pass the returned payment to setPayment or the React payment prop. Each completed retry creates a fresh single-use client secret. Keep your API key on your server.

Path parameters

dispute_idstringRequired

Flint dispute ID.

Response · 201

Browser instructions for the dispute response session.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl -X POST https://api.withflintpay.com/v1/disputes/du_01KEZF7C00DEJSF1KTXRT4BBQD/response-sessions \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Simulate a dispute outcome#

POST/v1/disputes/{dispute_id}/simulateIdempotent

Requires scope payments.disputes.write

Rate limit: external_provider_action

Sandbox only. Simulates the card network's ruling on a dispute that needs a response. Flint submits Stripe's test evidence for the `outcome`, and the ruling arrives through the dispute's usual webhook events, as a real one would. Send `won` or `lost` for a chargeback in `needs_response`, and `inquiry_closed` or `escalated` for an inquiry in `inquiry_needs_response`. The response is the dispute after the evidence is submitted, usually `under_review` or `inquiry_under_review`. Stripe decides shortly after, with no fixed timing. Requires `payments.disputes.write`. If you don't receive a response, retry with the same idempotency key, or read the dispute.

Path parameters

dispute_idstringRequired

Flint dispute ID.

Request body

outcomeenumRequired

The ruling to simulate. `won` and `lost` decide a chargeback; `inquiry_closed` and `escalated` decide an inquiry.

  • won
  • lost
  • inquiry_closed
  • escalated

Response · 200

The dispute after the test evidence is submitted.

Same response as Get a dispute.

curl -X POST https://api.withflintpay.com/v1/disputes/du_01KEZF7C00DEJSF1KTXRT4BBQD/simulate \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "outcome": "won"
  }'

Was this helpful?