Promo codes
Give each affiliate a promo code that earns them the sale and gives the customer a discount.
Affiliates share a code their audience types at checkout. The customer gets a discount, and the sale goes to the affiliate even without a click on their link. Available since 0.5.0. This page covers Stripe. On Polar, codes are copies of a Polar discount: see Connect Polar.
How promo codes work
- You pick a coupon from your Stripe account as the program's Customer discount.
- Each affiliate claims a code from their dashboard, such as
ALICE20. Supaffi creates it in Stripe as a promotion code on that coupon, for first-time customers only. - When a checkout completes with the code, the sale goes to that affiliate and earns like any other referral.
There is no new script, checkout code or webhook event to add.
Set up promo codes
Create a coupon in Stripe
The coupon sets the discount: a percentage or an amount, once, for some months or forever.
Give your Stripe key the two new permissions
The key needs Coupons Read and Promotion Codes Write. Keys created before 0.5.0 lack them. See Permissions.
Pick the coupon as the program's Customer discount
Open Programs, press Edit on a program and choose the coupon, for example 20% off for 3 months. The list shows your 100 newest valid coupons. The program card then shows the discount.
Let customers enter codes at checkout
Stripe only shows the promotion code field when you allow it:
- Checkout Sessions: create the Session with
allow_promotion_codes: true. See Checkout Sessions. - Payment Links: allow promotion codes on the link, in the Stripe Dashboard or with
allow_promotion_codes: truein the API.
- Checkout Sessions: create the Session with
- Changing the coupon later does not change codes already created. Each code keeps the discount it was made with.
- Setting the discount back to None stops affiliates from claiming new codes. Existing codes keep crediting.
How affiliates claim a code
When the program has a customer discount, the affiliate's overview shows Your code next to Your link, with the discount. The field is prefilled with a suggestion built from their link code and the discount.
Edit the suggestion if they want another code
3 to 20 capital letters or digits. The field turns letters into capitals as they type.
Press Create code
The box then shows the code with Copy.
An affiliate has one live code they made. Stripe cannot rename a code, so to change it, you turn the old one off and they claim a new one. Their Links page lists their codes with sales and earnings. See The affiliate portal.
Manage an affiliate's codes
Open Affiliates and click an affiliate. The Promo codes section lists each code with its discount, sales and earnings. A turned-off code is marked Off.
An affiliate can have up to 20 live codes. Linking an existing code can fail with No active promotion code with that text in Stripe, More than one promotion code in Stripe uses that text or That code already belongs to an affiliate.
You cannot turn a code back on. Create or link a new one instead. Deactivating a code only in Stripe stops customers from using it and changes nothing in Supaffi.
How a code sale is credited
Supaffi reads the promotion code from the completed Checkout Session. From there it is a normal referral: renewals, commission duration, holding period, exclusions, refunds and disputes all apply.
- Renewals keep earning after the coupon's discount ends and after the code is turned off.
- Each checkout with a code is a new referral, so the commission duration starts again, like a new link click.
- Code sales count as sales, not clicks. They do not change click counts, conversion rate or the tracking status.
- Commissions from a code show the code instead of a link.
- An affiliate who buys with their own code is flagged like any self-referral.
- Delayed payments such as SEPA Direct Debit stay with the affiliate. The commission is recorded when the money settles.
What is not supported
- Codes used outside checkout, such as in Stripe's customer portal or applied to an existing subscription through the API. They earn nothing.
- Codes for existing customers. Codes made by Supaffi are for first-time customers only.
- Renaming a code, or setting expiry dates and usage caps from Supaffi.
- Moving existing codes to a program's new coupon.
- The same code on two products that share a Stripe account. Both products see the same codes, so never give out one code for both.