Refunds and cancellations
There is no free-form refund call. Money goes back to a payer only on an agreed basis, through a refund plan the engine computes and shows before anything happens.
Bases for a refund#
- Cancellation under one of the cancellation bases below.
- An agreed dispute outcome both parties accepted.
- A confirmed outside outcome recorded with its decision document and confirmed by a different member.
- The default rule the parties accepted, when the terms allow the tenant to cancel with a refund after a default.
- An amendment that removes or reduces something already collected.
Cancelling a mandate#
POST /mandates/:id/cancel takes a basis and a reason (10 to 1000 characters).
| Basis | When | What happens |
|---|---|---|
before_collection | Nothing was ever collected or attempted. | The mandate is cancelled at once. If a collection attempt wins the race you get 409 collection_in_flight; use mutual_agreement instead. |
mutual_agreement | Both parties agree. | A cancellation version of the terms is proposed with every future item voided, the refund plan, any settlement releases to pay the payee for work done, and what happens to the remainder. Both parties accept it in the portal like an amendment. |
external_outcome | An outside process named in the terms decided it. | Needs an open dispute and the recorded outcome with its document. A different member confirms; both parties get a notice period, then it executes unless both accept earlier. |
default_rule | The mandate is in default and the terms allow the tenant to cancel with a refund. | As above: confirmed by a different member, notice period, then execution. |
Released money is never clawed back by a cancellation. Recovering it needs a transfer reversal with a recorded basis.
The refund plan#
GET /mandates/:id/refund-plan?scenario=cancel previews it for members, and the portal shows the same plan to the parties. A plan says:
- which funding charges would be refunded and by how much, and whether each is refunded whole;
- reductions of uncollected money first, which cost no fees;
- the stranded amount, money the plan cannot refund on this connection, named in currency;
- the fee cost of the plan, because refunded charges keep their Stripe fee;
- alternatives that can be executed, never prose-only promises: schedule reductions first, then the nearest feasible amounts, then "refund the whole payment and collect again" with the new debit written out;
- warnings, for example that refunds of bank payments take about three business days and cannot be cancelled.
When money would be stranded, a cancellation must say what happens to the remainder: release_to_payee, refund_whole_and_recollect or hold_until_agreement (422 remainder_required otherwise).
What a refund can and cannot do#
- Refunds go only to the original payment method.
- Bank-debit payments are refunded whole unless Stripe has confirmed partial refunds for your connection. Charges that were ever disputed are never planned for refund.
- A bank refund waits for your available Stripe balance (
waiting_balance) and nothing is reserved meanwhile. - Stripe can fail a refund up to 30 days later (a closed account, a cancelled card). The amount is then owed to the payer, a critical reconciliation break is opened, and
refund.returnedis sent. Retry it withPOST /refunds/:id/retrywhere the failure is transient, or record that you paid the payer outside Stripe: a different member confirms and the item closes.
Order of execution#
For a cancellation that executes: attempts still being created are resolved first, debits in flight are cancelled or refunded after they succeed, settlement releases go through the gate's system checks and your controls, refunds follow, and then the remainder's fate. The member who recorded an outside outcome or default basis cannot approve the releases it creates.
