
Affiliate Clawback Policy for Subscription App Payouts
An affiliate clawback policy is the rule that reverses a commission when the money behind it goes back to the customer. On a subscription app that means two things: a store refund and a card chargeback. It does not mean a cancellation, an expiration or a trial that never converted, and treating those as clawbacks is how a creator watches a balance fall for no visible reason.
Below: which events reverse a commission, why detecting a refund is the hard half, how a hold period removes most clawbacks before anyone performs one, two worked ledgers, and a clause for your lawyer.
#What a clawback is in an affiliate program
A clawback is the reversal of an affiliate commission after the revenue behind it is returned to the customer. It applies to money recorded as earned, and sometimes to money already sent. In subscription apps the two causes are a store refund issued by Apple or Google, and a card chargeback on web billing.
The e-commerce version of the word assumes a merchant who watched the parcel come back. Here Apple is the merchant of record, the customer files through Apple's refund page, and your first notice is a webhook.
We model a clawback as a state on the commission row rather than a deletion, and our schema has four: pending, matured, clawed_back, paid. Deleting the row leaves today's balance correct and the history unanswerable. A creator never asks what their balance is. They ask why it changed.
#What should trigger a clawback, and what should not
A clawback should trigger on two things: a refund and a chargeback. Both mean revenue left your account after you credited a creator for it. A cancellation, an expiration, a trial that never converted and a failed renewal leave earnings untouched, because in none of them did money move back.
Reverse when cash moved backwards, never when only the entitlement changed.
| Event | Claws back | Why |
|---|---|---|
| Refund, store or web | Yes, in full | The customer was repaid. The revenue that funded the commission no longer exists |
| Chargeback or dispute | Yes, in full | Stripe debits the disputed amount plus a dispute fee from your balance when the cardholder disputes, and holds it for the whole dispute |
| Partial refund or proration credit | Yes, in proportion | Reverse the same share of the commission that was returned, at the rate snapshotted on the original event |
| Refund reversed | No, it restores | `REFUND_REVERSED` undoes an earlier refund on the App Store. Put back the commission you took |
| Cancellation | No | Auto renew was switched off. The period was paid for and the subscriber still has access |
| Expiration | No | The entitlement lapsed at the end of a period that was paid. Nothing was returned |
| Trial that never converts | No | The trial was worth $0 in commission, so there is nothing to take back |
| Failed renewal, billing error | No | No charge succeeded, so no commission should exist to reverse |
Checked against RevenueCat's [event types and fields](https://www.revenuecat.com/docs/integrations/webhooks/event-types-and-fields) and Stripe's [dispute documentation](https://docs.stripe.com/disputes/how-disputes-work) on 2026-09-12.
The trial row is only safe if the trial never created a payable amount upstream. Our normalizer rewrites an INITIAL_PURCHASE carrying period_type of TRIAL into a trial_start and forces the amount to zero cents, so a non-zero trial price cannot mint a balance that later needs reversing. The free trials and renewals guide covers that upstream half.
We argue for the proportional rule on partial refunds: reversing a whole $2.00 commission when the customer got half their month back is a pay cut dressed as bookkeeping, and creators who keep spreadsheets find it. We reverse in full today, which is the wrong direction on our own argument, and we would rather name that here than leave a creator to find it.
#A refund is not a cancellation, and the difference is money
A cancellation means the subscriber switched auto renew off. The period they are in was paid for, access runs to its end, and nothing is owed back. A refund means the money went back. RevenueCat delivers both as a CANCELLATION event, and one field, cancel_reason, separates them.
Read the values in the vendor's own words. RevenueCat describes UNSUBSCRIBE as "Subscriber canceled voluntarily. This event fires when a user unsubscribes, not when the subscription expires." Only CUSTOMER_SUPPORT covers a refund. BILLING_ERROR, DEVELOPER_INITIATED, PRICE_INCREASE and UNKNOWN leave earnings alone.
There is a trap next door. expiration_reason uses the same vocabulary, CUSTOMER_SUPPORT included, and a refund commonly fires a CANCELLATION and then an EXPIRATION. Our normalizer reads only CANCELLATION that way, because treating both as refunds reverses one commission twice and leaves a creator $2.00 short with a ledger that looks internally consistent.
The scope is narrower than most policies assume. RevenueCat: "in the case of subscription refunds, this event fires only when the latest subscription period is refunded; refunds for earlier periods do not trigger it." Three refunded months may produce one webhook.
#Detecting a refund is harder than writing the policy
Detecting a refund is the half of a clawback policy that fails silently. None of the three mobile billing vendors we support sends an event named REFUND, and each signals one differently. A mapping keyed on a name the vendor never sends throws nothing, logs nothing and reverses nothing.
In September 2026 we audited our own. Our RevenueCat normalizer had a REFUND key in its type map. RevenueCat's reference has no such type, so that branch had never executed. Every real refund would have fallen through to the CANCELLATION branch, normalized as an ordinary cancel, and left the commission standing. The unit test on that path passed, because it asserted the same name nobody sends.
Superwall was worse than a missed reversal. Its documentation states that "negative values in price, proceeds, or priceInPurchasedCurrency indicate refunds", and their example detects one with if (event.data.price < 0). Our code took the magnitude before the type lookup, so a refunded purchase became a positive amount purchase: a second credit for money already returned.
Adapty had two dead keys. Its event table lists subscription_renewal_cancelled and no subscription_cancelled, which is what we had keyed on, and non_subscription_purchase_refunded was unmapped, so a refunded one-off purchase stayed credited. Stripe was correct: charge.refunded "occurs whenever a charge is refunded, including partial refunds".
Run these three against your mapping first.
grep -rn '"REFUND"' src/ | grep -v REFUND_REVERSED # RevenueCat sends no REFUND type
grep -rn 'Math.abs' src/ # a magnitude before a Superwall type lookup
grep -rn 'subscription_cancelled' src/ # Adapty sends subscription_renewal_cancelledA hit means your refund path has never run, and the test covering it proves only that the code agrees with itself. Three steps closed ours.
- Diff every key in your type map against the vendor's published event table today, not from memory.
- Add a regression guard per dead key asserting the wrong name normalizes to null.
- Count your stored events of type
refund. Zero across months of production traffic is a bug report, not good news.
We ran that last query. Our database held 255 stored events, all seeded demo purchases and renewals and zero CANCELLATION payloads, so no real refund had been mis-recorded. The fix was preventive, and we would rather say so than imply otherwise.
#The hold period does most of the work
A hold period is the delay between a commission being earned and becoming payable, and it is the cheapest clawback control there is. A refund landing inside the hold reverses a row that is still pending. Nothing left your account, so nothing comes back, and the creator sees no deduction.
The length is a question about the stores, not your cash flow. Google Play tells a buyer that within 48 hours "you may be able to get a refund depending on the details of the purchase", and after that to contact the developer. Apple publishes no deadline at all, only "wait 24 to 48 hours for an update on your request". Stripe is the outlier: card networks normally allow a dispute up to 120 days after payment.
A 30 day hold covers store refunds comfortably and card chargebacks not at all. The product default is 14 days, which is the shortest hold that still catches the bulk of store refunds. We would raise it to 30 for a behavioural reason rather than a statistical one: store refunds cluster in the days after a charge, while creators start asking where their money is at about four weeks, so 30 buys margin without reaching the point where a creator notices. A 7 day hold pushes more reversals into the paid path, and that conversation costs more than waiting.
The easy case, on a $9.99 plan at 20 percent with payouts on the 15th. Each commission is 999 × 2000 / 10000, or 199.8 cents, rounded to $2.00.
| Date | Event | Commission | Pending | Paid to date | Owed |
|---|---|---|---|---|---|
| 8 Mar | `INITIAL_PURCHASE`, $9.99 | +$2.00 | $2.00 | $0.00 | $2.00 |
| 20 Mar | `CANCELLATION`, `cancel_reason` `CUSTOMER_SUPPORT` | -$2.00 | $0.00 | $0.00 | $0.00 |
| 7 Apr | Hold would have expired | None | $0.00 | $0.00 | $0.00 |
| 15 Apr | Payout run | Nothing due | $0.00 | $0.00 | $0.00 |
The refund lands 12 days after the purchase, 18 days before the commission matures, so the row moves from `pending` to `clawed_back` and no payout is affected.
#When the money already left
When a refund arrives after the payout has gone, an affiliate clawback has three endings: absorb the loss, bill the creator, or net it off their next payout. Netting off is the right default, and the case is arithmetic rather than generosity.
Only netting off recovers the money without spending more than it is worth.
| Option | What it costs you | What it costs the relationship | When it is right |
|---|---|---|---|
| Absorb it | The full commission, every time | Nothing | Amounts below your own bookkeeping cost, or a creator you are courting |
| Bill the creator | Support time, a payment request, and usually the balance anyway | The most, by a distance. An invoice for $2.00 reads as an accusation | Fraud, or a terminated partner with a large balance |
| Net off the next payout | Nothing beyond the reversal itself | Little, provided the statement shows the line | Everyone who is still earning |
The hard case runs on the same plan, hold and payout dates. The subscriber cancels in April, the subscription expires on 8 May, and Apple refunds the latest period on 20 May, after two payouts have gone out.
| Date | Event | Commission | Row status | Paid to date | Balance |
|---|---|---|---|---|---|
| 8 Mar | `INITIAL_PURCHASE`, $9.99 | +$2.00 | Pending, matures 7 Apr | $0.00 | $2.00 |
| 8 Apr | `RENEWAL`, $9.99 | +$2.00 | Pending, matures 8 May | $0.00 | $4.00 |
| 15 Apr | Payout run | None | 8 Mar row paid | $2.00 | $2.00 |
| 20 Apr | `CANCELLATION`, `UNSUBSCRIBE` | None | No change | $2.00 | $2.00 |
| 8 May | `EXPIRATION` | None | 8 Apr row matures | $2.00 | $2.00 |
| 15 May | Payout run | None | 8 Apr row paid | $4.00 | $0.00 |
| 20 May | `CANCELLATION`, `CUSTOMER_SUPPORT` | -$2.00 | 8 Apr row `clawed_back` | $4.00 | -$2.00 |
| 15 Jun | Payout run, $8.00 earned from other subscribers | +$8.00 | Reversal netted | $10.00 | $0.00 |
The June payout is $6.00, not $8.00: $8.00 earned less the $2.00 reversal. Lifetime earnings of $10.00 match $10.00 paid, and the creator was never asked for anything.
Two payouts had left before the refund arrived, which is what a hold cannot prevent. RevenueCat fires the event only for the latest subscription period, so the March period here is unreachable however the policy is written. Catching it needs App Store Connect reconciliation, which we do not do today.
We would absorb a reversal before invoicing for one. A request for $2.00 costs a support exchange and a partner who now reads every statement looking for the next deduction; netting it off a payout costs one line of text. The mechanics sit in the commissions and payouts guide.
#Can a creator's balance go negative?
Yes, and an affiliate ledger should allow it. A reversal landing after a payout leaves a creator holding money no longer owed, and clamping the balance at zero hides that rather than resolving it. The policy question is not whether the balance can go negative, but how long you let it stay there.
Two rules keep a negative balance from becoming a demand. The balance may go below zero and carry forward, while each payout is floored at zero, so a statement never asks for money back. New commissions net against it before anything is paid.
Then set an expiry, because a card dispute can arrive up to 120 days after the payment and an open-ended window leaves your ledger with no statute of limitations. We would cap reversals at 120 days, write off a negative balance under $10.00 once it is 90 days old, and write off the rest when a creator has earned nothing for 90 days. Carrying $3.40 against a dormant partner costs more than $3.40, and an undisclosed threshold reads as favouritism.
In our schema the row producing a negative balance is a clawed_back commission carrying a payoutItemId. Save that query: it lists money you have sent and cannot recover. Web-first tools cover only the chargeback half, which is the gap in running Rewardful against in-app purchases.
#A clawback policy you can paste
A clawback clause answers four questions: what reverses a commission, how long the window stays open, how a reversal is applied, and what happens when the balance goes negative. The text below answers all four.
Paste it into your terms, replace the numbers, and have it reviewed.
Commission reversals
1. What reverses a commission. A commission is reversed when the payment
behind it is returned to the customer. This covers refunds issued by
Apple, by Google, or by us; chargebacks and payment disputes on card
billing; and payments reversed for fraud. A partial refund reverses the
same proportion of the commission.
2. What does not reverse a commission. Turning off auto renew, a
subscription expiring at the end of a period that was paid for, a failed
renewal payment, a downgrade to a cheaper plan, and a free trial that
never converts. In each of these cases the commission you have already
earned stands, and we will not adjust it.
3. The reversal window. We may reverse a commission for up to 120 days
after the date it was created. After 120 days the commission is final,
whatever later happens to the underlying payment.
4. How a reversal is applied. Commissions are held for 14 days before they
become payable. A reversal inside that hold cancels the pending
commission and nothing further happens. A reversal after payment is
deducted from your next payout. We will not invoice you for a reversed
commission, and no payout will ever be less than zero.
5. Negative balances. If reversals exceed what you have earned, the
difference carries forward as a negative balance and is offset against
future commissions. We write off a negative balance below $10.00 once it
is 90 days old, and we write off any negative balance in full if you
have earned no commission for 90 days.
6. Notice. Every reversal appears as its own line on your statement with
the date, the amount, the reason, and the commission it reverses. We
email you when a single reversal exceeds $25.00, and whenever your
balance goes negative.Expect a lawyer to ask what "fraud" means in clause 1, which is the right question: define it in the terms as refunds and chargebacks concentrated on traffic from one source. Clause 2 is the one worth defending in review, and the one most template agreements omit. A policy listing only the ways money can be taken back reads exactly like what it is. Naming the events that will never cost a creator anything makes the rest credible, and it is free: you were not going to reverse on an expiration anyway. Our own hold matches the number above; the 120 day cap and the write-off threshold are policy we apply by hand rather than code we ship.
#Telling the creator without losing them
A clawback lands well or badly depending on what the creator's dashboard shows before they ask. A reversal needs its own dated line with the amount, the reason and the commission it reverses. A balance that moves with no visible cause ends partnerships, over $2.00 as readily as over $200.
Show pending, matured and paid as separate numbers rather than one balance. We split them because the most common creator question is why a number went down, and the honest answer is usually that it never went up. A pending commission cancelled inside the hold never belonged to them; a dashboard showing it as earned created the fight.
Name the store rather than yourself. "Apple refunded this subscriber" is a different conversation from "we have adjusted your balance", and we make that choice deliberately: the founder reading a webhook is as much a bystander as the creator. Email on a threshold too, because a notification per $2.00 reversal trains a creator to ignore the sender.
#Where MyAppAffiliate fits
MyAppAffiliate is an affiliate and creator attribution platform for subscription mobile apps and SaaS. On clawbacks it now covers the whole path rather than half of it. A refund from any billing source we support is normalized, matched to the commission it belongs to, and moved to clawed_back with nobody touching a spreadsheet. A REFUND_REVERSED puts the same commission back where it was.
Refunds are mapped from RevenueCat, Adapty, Superwall, Stripe and Paddle webhooks, each against that vendor's own signal, with a regression guard per dead key. Commissions carry the four-state model, a per-app hold, and a rate snapshotted at the event. Attribution runs from click through install to renewal, with flat pricing and no percentage of your revenue.
Matching is the part worth knowing about, because no vendor sends a foreign key to the original transaction. We rebuild the link from the user, the product and the timestamp, preferring an exact timestamp hit because RevenueCat stamps a CANCELLATION with the refunded transaction's own purchased_at_ms, which makes it a pointer rather than a guess. A refund we cannot match reverses nothing rather than picking a commission to punish.
A reversal after payment nets off the next payout, the way clause 4 above describes: the balance carries, each payout is floored at zero, and the deduction is its own line on the payout CSV rather than a shortfall spread across commission rows. The caveat is the one already named above. A partial refund reverses the whole commission, because a commission is a state machine and there is no partial state for it to move to. Field mapping: our webhook reference.
#Grep your refund mapping before you write the clause
Do the grep before the clause. Search your webhook mapping for a REFUND key, a Math.abs ahead of a type lookup and subscription_cancelled, then count the stored events whose normalized type is refund over the last 90 days.
Zero after a quarter in production is the bug this post is about, and it was our count too. Fix the mapping first: a clause written over a branch that never executes is a paragraph, not a policy. Check yours against the RevenueCat webhook event guide.
Should you claw back commission when a subscriber cancels?
No. A cancellation means auto renew was switched off and the subscriber keeps access until the period they already paid for ends. No money went back to anyone, so there is nothing to reverse. Reversing on cancellation is the single most common bug in a homemade commission ledger.
How long should a clawback window be?
Long enough to cover the store refund window, short enough that creators get paid inside a month. Our default is a 14 day hold on new commissions, and we would raise it to 30 on a store-billed program, because store payouts arrive monthly in arrears. Cap reversals at 120 days from the commission date either way, because card disputes on web billing can arrive up to 120 days after the payment.
What if the affiliate was already paid?
Net the reversal off their next payout rather than invoicing them. Carry the negative balance forward, floor each payout at zero so a statement never demands money, and write the residue off once it is small or the creator has stopped earning. Invoicing turns $2.00 into a support thread.
Can a creator's balance go negative?
Yes, and your schema should allow it. A refund arriving after a payout leaves the creator owing the difference, and forcing the balance to zero hides the fact. Show the negative openly, net it against the next commission, and set a write-off threshold so it cannot linger forever.
Do chargebacks count as refunds?
For clawback purposes yes, on web billing. Stripe debits the disputed amount plus a dispute fee when a cardholder disputes a charge, so the revenue is gone whether or not you win later. Reverse on the dispute, restore if you win, and never reverse a chargeback twice.