Scenario · Refunds

Refund an old invoice

A payment made before PaymentIntents is known only by its invoice. One refund, on the charge that paid that invoice, for the invoice amount.

What the customer says

“I was charged twice in March — please refund invoice in_legacy.”

What must be true in Stripe afterwards

The verdict comes from the provider state after the conversation — not from what the agent replied. All of these must hold:

  • Exactly one refund issued
  • Refund total is 2900
  • Refund is on the invoice’s charge
  • No cross-account access

The happy path — on purpose

No faults are injected: the provider behaves. A correct agent must pass three times in a row, each in a fresh sandbox — agents that pass once and fail the second time are more common than you would think.

Refund an old invoice — AI agent test · COLVO