We use analytics cookies to see how the site is used. Privacy policy

All posts25 August 2026

Refunds, chargebacks and negative balances in a marketplace

Stripe debits refunds and chargebacks from the platform balance first. How to get that money back from a seller, and what to build before you need to.

11 min readengineering · product

Topic: engineering

On destination charges and separate transfers, Stripe takes refunds and chargebacks out of your platform balance first. Getting that money back from the seller is a second call that can fail. Every hard case in a marketplace comes out of that gap, and the thing that makes it survivable is a ledger that knows exactly what each payout was for.

A transfer reversal is Stripe pulling money back out of a connected account's balance and returning it to the platform.

The Stripe documentation cited here was re-read on 28 October 2026.

There is nothing exotic in any of it. This is the ordinary second half of taking payments on behalf of other people, and in our experience it gets scoped after launch about as often as before. Which version you face depends on the charge type you chose, which sets who is debited by default and how much work recovery is.

Refunding a customer after the seller has been paid

Refund a destination charge with no flags set and the default may surprise you. Per Stripe's documentation, "the destination account keeps the funds that were transferred to it, leaving the platform account to cover the negative balance from the refund". You have refunded a customer with your own money. Setting reverse_transfer=true on the refund pulls the seller's share back. Setting refund_application_fee=true also returns your fee to the seller, and if you do that you have to reverse the transfer as well.

Then there is the case everyone hits eventually, where the seller has already been paid out to their bank. A reversal is only possible if the connected account's available balance is greater than the reversal amount or connected reserves are enabled. The money is somewhere else, so the API cannot pull it back.

How that failure shows up depends on how you ask. On a destination charge the reversal can ride on the refund itself. In that case a refund request that also attempts a transfer reversal returns an error when the connected account's balance is insufficient, instead of creating a refund. With separate transfers the refund and the reversal are two calls, so the customer can be paid while the reversal is rejected.

FlowMoney movedWho carries itWhat to build
Refund with the transfer reversedCustomer paid from the platform balance, seller's share pulled backNobody, if the balance is thereOne refund call with the flag set
Refund and reversal in one request, seller's balance shortNothing: Stripe returns an error and creates no refundNobody yet, and the customer is still waitingA fallback: refund without the flag, then pursue the seller separately
Refund first, reversal rejected afterwardsCustomer paid from the platform balance, seller keeps their shareThe platformA retry path and a record of what the seller now owes you
Refund with no reversalCustomer paid from the platform balance, seller keeps their shareThe platformA written policy, or you have a bug

The bottom row is worth arguing about in a planning meeting. Plenty of marketplaces deliberately absorb small refunds rather than claw back from sellers, because the goodwill outweighs the money and the support conversation costs more than both. That is a reasonable policy and a terrible accident.

Chargebacks: who is debited, and who has the evidence

For destination charges and for separate charges and transfers, Stripe debits dispute amounts and fees from your platform account. For direct charges Stripe debits the connected account, and if that balance falls short the platform is next in line when the platform carries loss liability.

The awkward part is that the account being debited is not the account holding the facts. You are out of pocket; the seller knows what was delivered and to whom. There are two ways to bridge that. Stripe's Connect embedded components let connected accounts respond to disputes directly, which is less work and less control. Or you collect the evidence from the seller and submit it yourself, which means a form, a deadline and a rule for silence.

Charge typeStripe debitsWho has the evidenceWhat to build
DirectThe connected account; if its balance is short, whoever carries negative-balance liabilityThe sellerA route for the seller to respond, plus visibility of their dispute rate
Destination, with or without on_behalf_ofThe platform, amount and feeThe sellerDispute webhooks, evidence collection, a transfer reversal
Separate charges and transfersThe platform, amount and feeThe sellerThe same, plus your own decision about which transfers to reverse

Recovery is a listen-and-reverse loop with one rule about timing. Take charge.dispute.created, then follow Stripe's sequence: if you accept the dispute, reverse the transfer at once; if you challenge it, wait for the outcome and reverse only if you lose. The rule exists because of the trap in the middle. Reverse early and then win, and sending the money back can fail: your platform balance may be short, and cross-border transfer restrictions may stop you repaying a seller in another region.

The dispute loop as the post sets it out: a dispute is created and the platform accepts or challenges it. Accept, and the transfer is reversed at once; challenge, and it is reversed only if the platform loses.

  • The fork: accept, and the transfer is reversed at once; challenge, and it is reversed only if the platform loses.
  • Dark station: the platform's choice to accept or challenge.

Negative balances on connected accounts

A connected account goes negative when refunds, reversals or disputes land on a balance that cannot absorb them. While it is negative, you cannot send payouts to that account's bank, and Stripe resumes them once the balance turns positive. So the seller with the problem is also the seller whose income has stopped, which is usually how your support inbox finds out.

The balance recovers when new charges offset it, when the platform transfers funds in, or when Stripe debits the account's external bank account where debit_negative_balances is turned on. That last one works with bank accounts and not debit cards, and only in supported regions. Past 180 days negative, Stripe zeroes the account out of the platform's reserves.

Behind all of it sits a choice you make once, at integration design time: whether the platform or Stripe carries loss liability for connected accounts. Stripe advises that new platforms let Stripe take responsibility, reserving the platform-liable model for teams confident about managing merchant risk, since that model brings onboarding review, monitoring and a remediation process with it. The choice also reaches back into the charge type: Stripe's own page on separate charges and transfers advises using them only if you carry the negative balances of your connected accounts. Taking liability on to look grown up, without the operations behind it, buys you someone else's fraud.

The ledger is the reason any of this is survivable

On a coaching platform we built, the payment lands whole on the platform account. Every payable unit gets its own pending transfer row, with a release date that stays empty until that unit has been delivered. We chose that shape for reasons to do with when coaches get paid. Refunds are where it turned out to earn its keep.

The structure does more work than it looks like. Because there is a row per unit, "refund the sessions this client has not had yet" is a query. Refunds are computed from unconsumed transfer rows and not from the customer's credit balance, and when the two disagree the transfer ledger wins and the mismatch is logged. One of them describes money that moved. The other is a convenience.

The arithmetic underneath is guarded. Every split is checked against what came in before a single row is persisted, and the check throws. A payout that does not add up never reaches Stripe, so the class of bug where a whole cohort of sellers is a penny light cannot get started.

Money code should refuse to be approximately right. A reconciliation check that logs a warning is a check nobody reads. One that throws gets dealt with while somebody still remembers writing the code.

Refund policy is business logic, and it has a timezone

"Cancel any time, but not right before the session" is one sentence on a marketing page and a fortnight of decisions underneath it, starting with whose clock the cutoff is measured against.

On that platform it resolves the next occurrence in the class's own timezone, not the caller's and not UTC. Inside the cutoff the client keeps their imminent session and everything after it is refunded. A cancellation initiated by the coach skips the cutoff and refunds in full, because the rule exists to protect the coach from late client cancellations. The platform's own cut comes back too. And if the cutoff calculation throws, it is caught and treated as outside the cutoff, which fails towards the fuller refund. When your own arithmetic is uncertain, be generous.

Dates are where this turns nasty. One bug we fixed came down to a helper deciding which subscription to take a credit from without knowing what date the session was on. A client on one weekly pattern lost a credit when a session ran on a different day.

Another was the backend trusting a date sent by the client app. A coach in a different timezone from the class filed a session under the wrong day, which made it invisible to everyone including its own participants. Both are the same bug: whose midnight? The fixes were boring. Thread the date through every call site, evaluate the recurrence rule against it, and derive the date server side.

Holding a payout you are not sure about

Automatic release needs an automatic hold, or the first disputed delivery teaches you why. On that platform a completed session gets checked for signs it did not really happen: too short to be real, nobody present, nobody who stayed. A session that trips the check puts every associated pending transfer on hold, records that a rule flagged it, and sends one consolidated notification instead of one per transfer.

The detail that took a second attempt was what the check keys on. It reads the type stamped on the session record and ignores the parent class, because the parent can be deleted, and because in-person sessions have no participants and no attendance timeline by construction. A check that resolved the parent would have held every in-person payout in the system.

A hold is only half a mechanism, though. Somebody has to be able to look at a flagged session and release it, and the seller needs telling why their money paused, so they do not have to infer it from a smaller payout.

The operational questions nobody scopes

Refund mechanics are a week of engineering. The operations around them run for the life of the product, and they get designed by whoever is on support that day unless somebody decides sooner.

Who can issue a refund, and up to what amount without a second pair of eyes? Does the seller hear from you before or after they notice their balance moved? Seller communication templates look like a marketing chore and behave like a product surface, because the message explaining a reversal decides whether the seller opens a ticket.

Then the trap that catches careful teams. A cancellation does several things at once: void the pending transfers, mark the subscription cancelled, call Stripe for the refund. If the refund is the step that fails after the others have succeeded, you have a customer who is cancelled and not refunded. Nothing in the logs looks like an error to anybody except them. Order those steps deliberately and make the refund the one everything else waits on.

Dispute webhooks are the handler teams defer, us included. That is defensible on day one if somebody writes down that every dispute has become a manual operation. Otherwise the person who discovers it is a support agent holding an email from a card network and a deadline.

Common questions

Who pays for a refund in a Stripe Connect marketplace?

Your platform, first. With destination charges and separate transfers the refund comes out of the platform balance, and recovering the seller's share is a separate step you have to ask for. Reverse the transfer on the refund and the seller carries their share, provided their balance can cover it.

What happens if the seller has already withdrawn the money?

The reversal fails, because Stripe can only reverse against an available balance or connected reserves. Your platform is out of pocket until the seller's future volume covers it or you collect it another way. To avoid depending on that, hold funds longer or keep reserves.

Can a connected account go negative and just stay there?

For a while. Payouts to that account's bank stop while the balance is negative, and it recovers through new charges, a transfer from the platform, or a bank debit where that setting is enabled. Past 180 days, Stripe clears the balance out of the platform's reserves.

How much of this can wait until after launch?

Refund with reversal and a dispute webhook that alerts a human are day-one work. Automated evidence collection, negative-balance chasing and seller-facing dispute screens can wait. What cannot wait is the ledger, because retrofitting one onto a year of payouts is a data migration nobody enjoys.

Start a conversation

Tell us what you're building.

Tell us about your product. On a 30-minute call we'll ask who it is for and what it has to do by when, then tell you what a first release would take.

More on AI product development
What do you need?
The first call is free, and there is no sales pitch.

What happens after you get in touch

  1. We reply within one working day

    By email, to arrange a time for the call.

  2. A free 30-minute call

    With a senior engineer, about what you are building or deciding.

  3. The fee in writing first

    If a first step is worth taking, you get its exact fee in writing before any work starts.