How to Run an Affiliate Program on Stripe by Hand
You can run a small affiliate program with what Stripe already gives you: a link or a coupon code per partner, a way to tell which payments came from whom, and a monthly total. This guide walks through the rules to settle first and the routine to follow each month.
Decide the rules before the first partner
Write down the rules in one page so every partner gets the same deal. The questions that cause arguments later are easy to settle now.
- Commission rate: a percentage of what the customer paid. Decide whether tax is included or left out
- Duration: first payment only, the first N invoices of a subscription, or for as long as the customer stays
- Hold period: how many days you wait before a commission is payable, so refunds are settled first
- Payment schedule: for example monthly, with a minimum amount
- Who handles tax forms and agreements. That is your job as the seller, not Stripe's
Option 1: a trackable link per partner
If you sell through a Stripe Payment Link, Stripe lets you add a client reference ID to the link. In the Dashboard you open the payment link, use the dropdown beside Copy, choose URL parameters, pick Client reference ID and enter a value. Stripe says the value can contain letters, numbers, dashes and underscores, up to 200 characters, and it is sent in the checkout.session.completed event after payment. Use a short code per partner, such as the partner's name, and never put anything secret in it.
Stripe also supports UTM codes (utm_source, utm_medium, utm_campaign and others) on a payment link, which show where traffic came from when the confirmation behavior is set to redirect. Stripe adds that payment links with URL parameters should only be shared with the people who are meant to have them.
The weakness of this option is that it only works where the partner's link is the one the customer actually uses. If a customer copies a plain link from somewhere else, the payment carries no reference.
Option 2: a coupon code per partner
A promotion code is a customer-facing code that wraps a coupon, and many promotion codes can point to one coupon. In the Dashboard you create it from Products, then Coupons, then New, and you can restrict it to first-time customers, set an expiration date and limit how many times it can be redeemed. Giving each partner their own code lets you see which partner's code a customer used.
Keep two things apart. A coupon's duration (once, a set number of months, or forever) controls how long the customer's discount lasts. It does not decide how long the partner earns commission. That is your own rule from the first step. To stop a partner's code, archive the promotion code rather than deleting the coupon, because deleting a coupon archives all of its promotion codes.
- Create one coupon with the discount you want to offer
- Create one promotion code per partner, such as the partner's name
- Set a redemption limit or expiration if the offer is time-limited
Total the commissions each month
Once a month, work through the same steps in a spreadsheet. Do it on a fixed day, and keep last month's sheet so you can see what changed:
- Export or copy the month's payments from the Payments page in the Dashboard
- Match each payment to a partner using the client reference ID or the promotion code used
- Apply your commission rate and your duration rule
- Subtract refunds: Stripe lets you refund all or part of a payment and view refunded payments in the Dashboard, and it does not return its processing fees from the original transaction
- Leave out anything still inside your hold period
- Sum per partner, pay them yourself and record the date and amount
Watch for the common problems
Subscriptions are where hand-tracking gets heavy, because each renewal needs the same attribution. Keep one row per customer with the partner who referred them. Check for self-referrals, where a partner buys through their own link, and write your policy down. A refund after you have already paid a commission needs a rule too: either deduct it from the next payout or leave it, but be consistent.
Where RefPier fits
RefPier is coming soon. It is built to do the matching and arithmetic for you: referral links and coupon codes per partner, commission rules, a hold period, monthly per-partner reports and CSV files for payouts. It connects with one webhook in your own Stripe account and never holds or moves money, so you still pay partners yourself. We have not set a launch date.
Sources
- Stripe Docs: Track a payment link
- Stripe Docs: Coupons and promotion codes
- Stripe Docs: Refund and cancel payments
Coming soon: RefPier
Affiliate tracking for sellers who use Stripe. RefPier tracks referrals and affiliate commissions for sellers who take payments with Stripe. Your partners get a referral link or a coupon code, RefPier records who referred each customer, applies your commission rules and gives you a monthly report per partner. It never holds or moves money: you pay your partners yourself.
Get RefPier first
Join the list and get 25% off your first purchase when it goes on sale. We email you a discount code on launch day. One code per person, for new customers.
One email when it launches (plus the discount code). No other mail, and you can say stop at any time. See our privacy policy.