Stories

The agent that refunded twice

A post-mortem we see every month, and the two lines of code that prevent it.

Priya Anand

Solutions engineer

6 min read

The agent that refunded twice cover

It always starts the same way: a support agent built on a weekend hackathon, a provider outage, and a customer who gets their money back twice.

What happened

The refund call succeeded, the response timed out, and the retry loop refunded again.

The fix

Wrap the call in a step and pass the charge ID as an idempotency key. The refund runs once, however many times the run retries.

Get started

Ship the agent. Keep the receipts.

Free for 50,000 steps a month. No credit card, no separate workers, and your first durable workflow deployed before lunch.

orrindel

Durable runtime for AI agents and automations. Every run, in plain text.

Book a 20-minute demo →
All systems normal
99.99% uptime · last 90 days
90 days agotoday
regions us-east · eu-west · ap-south
soc 2 type ii · gdpr · hipaa (baa)
sdk v4.2.1 · node · python · go
© 2026 Orrindel Labs, Inc.PrivacyTermsSecurityMade in plain text.

Create a free website with Framer, the website builder loved by startups, designers and agencies.