Prevent Duplicate Invoices with Idempotent AutomationPrevent Duplicate Invoices with Idempotent Automation
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
No errors in the log. And the customer still got two invoices. Say you run an online course business. A payment comes in, your automation creates an invoice and emails it. It works for weeks. Then one day the payment provider sends the same event twice. That's normal, they retry when they don't get a fast reply. Your automation does exactly what it was told: two invoices, two emails, one confused customer, and a messy month-end for your accountant. Nothing technically broke, so nothing alerted anyone. The fix is one step I add to every flow that touches money: 1. Payment arrives 2. Check its payment ID against a simple log 3. Already handled? Stop there 4. New? Create the invoice and save the ID Same goes for orders, bookings and new leads. Anything that can arrive twice eventually will. If you have an automation that sometimes does things twice (or not at all), send me a message here on Contra with how it works today. That's exactly what my "Fix one broken automation in 48 hours" service is for.
Post image
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started