Rewards
Cash, credits, perks, and recurring commissions, with your own rules.
A reward is something you owe a person. Referral API works out the amount and tracks its status. You decide how to deliver it.
Reward types
Cash
Paid by bank transfer, PayPal, or gift card. You record the payout.
Account credit
You apply it in your billing system when it unlocks.
Perk
A non-monetary benefit, such as a free month or extra seats.
Commission
A percentage of each payment, for a limited number of months.
How commissions are calculated
Commissions use the net payment amount: after tax, discounts, and refunds. For a payment , commission rate , and fees :
Over a commission period of months, the referrer earns:
A 20% commission on a $49 plan with $4.41 in tax for 12 months comes to .
Caps and limits
You can cap rewards per referrer, per month, or across the whole program. When a cap is reached, new rewards are recorded at $0 with a capped note, so the history stays complete.
{
type: 'commission',
rate: 0.2,
months: 12,
cap: { per: 'referrer', amount: 50000 }, // $500 in cents
}Statuses
- Pending: calculated, but waiting for the hold period.
- Unlocked: ready for you to pay.
- Paid: you recorded a payout.
- Reversed: a refund or dispute cancelled some or all of it. See the ledger.
How is this guide?