Guide
Code-based attribution and refunds: calculating creator commission fairly
How to credit app sales to creators with their codes, which amount to share, and what to do when customers get refunds, so both the brand and the creator can check every figure.
Why codes instead of clicks
A viewer who hears about an app in a video often installs it later, from the store, on another device. Click tracking loses most of those paths, and matching people by IP address or device fingerprint is unreliable and restricted by app store and privacy rules. A code the customer enters is a clear, checkable signal: it shows exactly which creator the customer came from.
Coupon codes and invite codes
- Coupon code (an App Store offer code, a Google Play promo code or your own code): entered at purchase. The payment is credited to the creator, and so are later payments by the same customer within the agreed period, including subscription renewals.
- Invite code: entered at sign-up. It can count sign-ups, paid as a fixed fee, or credit only the invited customer’s first payment for a revenue share. Later payments are not credited through the invitation.
One code per creator keeps the record simple: if a payment carries a creator’s coupon code, it is that creator’s sale. A link can fill in the code for the viewer, but the link alone does not credit anyone.
Share the net amount
Stores and payment providers keep a fee, and part of the price is tax. Calculating the share on the net amount means a brand never pays commission on money it did not receive. An illustrative example with a 20% revenue share:
| Amount paid | ¥1,200 |
|---|---|
| Tax included in the amount | −¥109 |
| App store fee | −¥180 |
| Net revenue | ¥911 |
| Commission at 20% | about ¥182 |
The figures are an example, not a typical result. Whatever the rate, the commission on an order should never exceed that order’s net revenue.
Wait out refunds before confirming
- Hold commission during the refund window. A new payment’s commission is estimated at once but confirmed only after the window agreed with the creator.
- Reduce it in proportion. A full refund removes the commission; a partial refund reduces it by the refunded share of the payment.
- Adjust after settlement. If a refund arrives after commission was settled, deduct it from later commission instead of rewriting the settled statement.
- Treat chargebacks as refunds. They reduce commission in the same way.
Renewals and the agreed period
For subscriptions, agree on how long renewals keep earning, for example 12 months from the first payment. A renewal is credited to the creator whose code started the subscription until that period ends. Pausing one creator’s promotion should stop new promotion, not take away commission on customers they already brought within the period.
Budget caps and checking the data
Give each creator a budget. Commission above it is not owed, so the brand’s maximum cost is known in advance. Before commission is settled, give the brand a short window (Sitara uses 24 hours) to check new orders and raise anything that looks wrong; a disputed order is held until it is resolved.
Summary
- Credit sales only through each creator’s own code.
- Calculate the share on net revenue and cap each order at it.
- Confirm commission only after the refund window, and adjust for later refunds.
- Agree on how long renewals keep earning.
- Cap each creator’s commission at a budget and let the brand check new data first.
See the API
The Sitara API documentation lists the events and fields your server sends, with examples in curl, Node.js and Python.