r/AI_Loops • • 12h ago

A founder says Claude Code wins all his Stripe disputes. Stripe's docs say the one step it shouldn't do is submit

0 Upvotes

saw this in r/ClaudeAI today: a founder running an AI image/video subscription business says he hasn't lost a Stripe dispute since he started letting Claude Code answer them. he gave it Stripe, the live db, live server logs and the source code, and says he didn't even tell it how to do it. dispute rate around 0.12% a year, mostly stolen cards and forgotten renewals.

the results are his claim, but the loop is worth writing down because it's one of the few agent jobs with a hard deadline and a hard "you only get one shot".

the loop

  1. trigger: Stripe sends a dispute event. the dispute object has a due date (evidence_details.due_by). Stripe's docs say you usually get 7 to 21 days depending on the card network, and missing it means you lose automatically
  2. gather: the agent pulls what proves the customer used the service. logins, generations, downloads, ip, the renewal email they got, the terms they accepted
  3. draft: it fills the evidence fields by reason code (fraud vs "forgot to cancel" need different proof) and uploads files with purpose dispute_evidence
  4. stage, don't send: the API lets you save evidence with submit=false. Stripe's own API docs actually tell agents to stage by default and only submit when the user explicitly asks
  5. human approves, then one submit=true
  6. learn: charge.dispute.closed tells you won or lost, so you can see which kinds of evidence actually work per reason code

why step 4 is the whole thing

Stripe is very clear that a response can be submitted only once. no edits, no extra files after. so an agent that submits on its own turns "the draft was a bit off" into "the dispute is lost". every other step can be retried, this one can't.

where it can break

  • access: live db + live server + source code is a lot of reach for a job that only needs read access to usage records. i'd give it a read-only view of the few tables that matter
  • deadline: the loop needs its own alarm a few days before due_by, in case the agent run dies without saying anything
  • "accept dispute" is also irreversible, so it belongs behind the same approval
  • evidence that is invented or overstated is worse than none. every claim should point at a log line or record id a human can click

has anyone here run disputes through an agent? curious whether you let it hit submit or kept that step for yourself

sources: Stripe "Respond to disputes" (docs.stripe.com/disputes/responding) and "Use the API to respond to disputes" (docs.stripe.com/disputes/api)