Payout systems fail at the edges: a payout approved by mistake, a partner who disconnects, a refund after the money has moved. The safest design assumes every approved payout may be reopened.
The flow
- Mark the payout as reopening and block new approvals while it runs.
- Reverse the Stripe transfer. Check Stripe's current documentation for what your account type allows.
- Undo any loyalty points, credits or ledger entries that were created for it.
- Create a new payout record when it is approved again. Do not reuse the old transfer ID.
- Log every step with who did it and when.
Edge cases to test
- The connected account has already paid out the funds.
- The webhook for the original transfer arrives after the reversal.
- Two admins reopen the same payout at once.
What is reversible depends on your account type and the balance state, so confirm each step against Stripe's current documentation and rehearse it in test mode before you need it in production.
