Back to all posts
Affiliate Marketing

What Is a Referral Code? Meaning, Examples and How It Works in 2026

Ollie Efez
Ollie Efez

January 25, 2026•16 min read•Updated Sep 14, 2026

What Is a Referral Code? Meaning, Examples and How It Works in 2026

A referral code is a short, unique string of letters and numbers that a business gives to one person, so the friends they recommend can enter it at signup or checkout. The code tells the business who sent the new customer, which lets it reward the person who shared it and, usually, give the new customer a discount or a credit too.

A code like SARAH20 is a typical example: Sarah shares it, her friend types it in, the friend gets 20% off, and Sarah gets her reward. If a signup form just asked you "Got a referral code?", the section on what to do with one is a little further down. If you run a business and want to issue codes of your own, read the section on creating referral codes further down, and the referral program software comparison for the tools that manage them.

What a Referral Code Means, With Examples

The word "referral" is the whole idea: one person refers another. The code is simply the proof of who did the referring. Without it, a business sees a new customer arrive and has no way of knowing that a friend sent them.

Referral codes come in a few recognisable shapes:

Example code What it is What happens when it is used
SARAH20 A readable code built from the referrer's name and the discount The new customer gets 20% off and Sarah is credited
REF-8KD2QX A randomly generated code tied to one account The app looks up the account and credits it
MAYA15 A partner or creator code shared with an audience The sale is credited to Maya, who earns a commission
WELCOME10 Not a referral code: a promo code anyone can use A discount applies, but nobody is credited
The last row matters. A code only works as a referral code when it belongs to one person. A code printed on a billboard is a promotion, however similar it looks.

Key Roles in a Referral Code Transaction

Every referral code connects three parties, and each one has a reason to take part.

Participant Role What they get
The business Issues the codes, sets the rewards, and checks each referral before rewarding it A new customer recommended by someone who already trusts the product
The referrer Shares their personal code with friends, followers, or colleagues A reward such as account credit, a free month, or a cash commission
The new customer Enters the code at signup or checkout A welcome incentive, such as a discount or a credit
When all three sides get something, sharing feels like a favour rather than a sales pitch.

Got a Referral Code? What to Do With It

If an app or checkout page is asking for a referral code, it is giving you the chance to credit the person who told you about it, and often to get a discount yourself.

  • If a friend gave you a code, type it exactly as they sent it into the referral or promo field before you finish signing up or paying. Many systems accept a referral code only at the first signup or first purchase, so adding it later may not work.
  • If the field says "referral code (optional)", you can leave it blank. The only effect is that nobody is credited for referring you, and you may miss a welcome offer.
  • If you see "invalid referral code", check for typos first, then for a code that has expired, reached its usage limit, or belongs to a program that only accepts new customers.
  • If you want your own code to share, look in your account settings or profile for a section called "Refer a friend", "Invite", "Rewards", or "Referrals". That is where apps put your personal code and link, together with any rewards you have earned.

Never buy or trade referral codes from strangers. Programs can cancel rewards that come from fake or self-made accounts, and handing over account details to get a code is a well-known scam.

These four are easy to mix up because they often do similar jobs. The difference is who they belong to and how the credit is recorded.

Referral code Referral link Promo code Affiliate code
Belongs to One customer One customer or partner Nobody in particular One partner or creator
How it is used Typed in at signup or checkout Clicked, then remembered by the website Typed in at checkout Typed in at checkout
Who gets credit The customer who shared it The person whose link was clicked Nobody The partner who shared it
Example reward Credit, a free month, or a gift for both sides Same as the code it belongs to A discount for the buyer only A commission for the partner, often with a discount for the buyer
Works offline Yes, it can be spoken or printed No, it needs a click Yes Yes
In practice many programs give each person both: a link for sharing online and a matching code for podcasts, videos, events, and conversations where nobody can click anything. An affiliate code is the same idea applied to partners who are paid a commission, and tracking links and coupon codes each catch sales the other one misses.

How Referral Codes Work Behind the Scenes

From the outside a referral code looks like a word typed into a box. Underneath, a small chain of steps decides whether a referral counts and who gets rewarded.

The Technical Journey of a Referral Code

  1. The code is issued. The business creates a code and stores which person it belongs to.
  2. The code is shared. The referrer sends it in a message, posts it, or says it out loud.
  3. The code is entered or the link is clicked. A typed code is looked up directly. A clicked link leaves a small record in the visitor's browser, such as a cookie, so the website still knows who sent them if they come back and buy a few days later. Each program sets how long that record lasts: LinkJolt, for example, uses 30 days.
  4. The payment is recorded. When the new customer pays, the order carries the code or the stored referral, and the system matches it back to the referrer.

The advantage of a typed code is that it does not depend on the browser at all. It still works when someone hears the code on a podcast, switches from their phone to a laptop, or clears their cookies before buying.

Validating and Confirming the Referral

A referral should not be rewarded the moment a code is typed. A well-run program checks a few things first:

  • Is the customer genuinely new? Many programs reward first purchases or new accounts only.
  • Did they complete the qualifying action? A paid order or an active subscription, not just a signup that never pays.
  • Is it inside the window? A link click from months ago may be too old to count.
  • Is it a self-referral? Someone using their own code on a second account is a classic abuse.
  • Did the payment stick? A sale that is refunded should not keep its reward.

Only after those checks does the reward go out. A program that skips them risks paying for referrals that never turned into customers.

Different Types of Referral Codes and Programs

The code is the smallest decision in a referral program. The reward attached to it, and who receives that reward, decides how many people bother to share it.

One-Sided vs Two-Sided Reward Models

A one-sided program rewards only one person. Rewarding only the referrer works when the product is already loved and the friend needs no nudge. Rewarding only the new customer turns the code into a welcome discount that relies on goodwill for sharing.

A two-sided program rewards both, for example "give $20, get $20". Many customer referral programs use it because the referrer is offering a gift rather than asking a favour, and the friend has a reason to act now.

Common Program Structures and Use Cases

Structure Example Fits best
Percentage discount "Give 20% off, get 20% off" Online stores and subscriptions
Account credit "Give $25, get $25 in credit" Apps and SaaS products, where credit keeps people using the product
Free time or features "Both of you get a free month" Subscription software with a paid tier
Cash commission "Earn 20% of every sale you refer" Partners, creators, and affiliates who promote to an audience
Cash commissions are where referral programs become affiliate programs. For SaaS, the September 2026 benchmarks from 121 affiliate campaigns running on LinkJolt show what partners are actually offered. 81% of those campaigns pay a percentage rather than a fixed bounty, and across the 98 percentage-based campaigns the median SaaS affiliate commission is 20% of the sale, with an average of 22.9%. Where a fixed bounty is used, the median is $30 per sale. 26% of campaigns pay recurring commissions on renewals, not just the first payment. You can model your own numbers with the affiliate commission calculator.

How to Create a Referral Code for Your Business

A referral code only works if it is easy to share, hard to misuse, and actually recorded when a customer pays. These rules cover all three.

  1. Give every person their own code. A shared code cannot tell you who referred whom, which defeats the purpose.
  2. Make it readable. Codes built from a name, such as SARAH20 or MAYA15, are easier to say and remember than random strings. Add a number if two people share a name.
  3. Avoid characters that look alike. Zero and the letter O, or one and the letter I, cause "invalid code" errors when codes are read aloud or copied from an image.
  4. Keep it short. Four to ten characters is plenty, and every extra character is another chance to mistype.
  5. Create it where the customer actually pays. A code has to exist in your checkout or billing system to apply a discount. In Stripe, for example, a customer-facing promotion code sits on top of a coupon. Stripe codes are case-insensitive and must be unique among active codes that any customer can use, and you can limit each one to first-time orders, a maximum number of redemptions, an expiry date, or a minimum order value.
  6. Connect it to the person. The discount alone does not credit anyone. The code also has to be matched to its owner when the payment comes in, which is the job of referral or affiliate tracking software.
  7. Pair it with a link. For online sharing, give each person a trackable link as well. The free referral link generator shows how those links are built.

Building Your First Referral Program with LinkJolt

LinkJolt is affiliate program software for SaaS and subscription businesses. It is built for programs where partners, creators, or customers earn a commission for the sales they refer, and it handles both halves of the job described above: the codes and links, and the tracking that credits the right person when a payment arrives. For the step-by-step launch plan, see how to set up a referral program.

  • Links and codes together. Every partner gets a tracking link, and a visitor who arrives through it is remembered for 30 days. Codes work without any click at all.
  • Codes matched from your payment provider. You can register a code that already exists in your Stripe, Paddle, or Polar account and assign it to a partner. When an order comes in carrying that code (for Paddle, its discount ID), the sale is credited to them.
  • Codes created for you. Once you connect Stripe or Polar, LinkJolt can create the code in your own account, and it can create one automatically for each partner you approve, named after them, with the percentage discount you choose.
  • Commissions your way. Pay a percentage or a flat fee per sale. Recurring commissions and volume tiers are available on the Professional plan and above.
  • Checks before money moves. Every commission waits for your approval, refunds reverse commissions in full or in part, and rule-based fraud detection rejects the self-referrals it catches, such as a partner buying with their own email address, on payment providers that send the buyer's email.
  • Payouts. Pay partners through Stripe Connect, with automated scheduled payouts available as an opt-in on the Professional plan and above, or export a CSV to pay through PayPal or Wise.

Setup takes 5 to 10 minutes. Plans start at $19.99 a month on Starter, which includes up to 5 active campaigns and 10 active affiliates; see pricing for the full comparison.

Referral Program Implementation Checklist

Phase Key action Where it happens in LinkJolt
1. Goal Decide what a successful referral is: a signup, a first payment, or a paid subscription Your plan, before any settings
2. Reward Choose the commission for the partner and, if you want one, the discount for the customer Campaign settings: percentage or flat fee (recurring and tiers on Professional and above)
3. Tracking Connect the payment provider where customers pay Integrations: Stripe, Paddle, Polar, and others
4. Codes Register existing codes or let LinkJolt create them in your connected Stripe or Polar account Campaigns, Coupons tab
5. Partners Invite people or approve applications Affiliates page
6. Review Approve or reject each commission before it is paid Commissions page
7. Payouts Pay approved commissions Payouts page: Stripe Connect or CSV export

Best Practices for a High-Performing Referral Program

Launching a program is quick. Keeping people sharing is the harder part, and it comes down to a few habits.

Make Sharing Frictionless and Obvious

If someone cannot find their code in a few seconds, they will not share it. Put the code and link where people already are: the account dashboard, the email that confirms a purchase, and the moment right after a customer has a good experience with the product. Give them a ready-made message to paste, so sharing takes one step.

Choose Rewards That Genuinely Motivate

A token discount gives people little reason to share. The reward has to be worth a conversation with a friend. For customer programs that might be a free month or a meaningful credit. For partners who promote to an audience it means a commission in line with the market, and the median SaaS affiliate commission in the benchmarks is 20% of the sale.

Promote and Protect Your Program

A program nobody hears about does not grow. Announce it by email, mention it inside the product, and remind people when you add a better reward.

Protect it at the same time. In the benchmarks, only 17% of campaigns auto-approve affiliate applications, while 83% review every partner manually. Review new partners, watch for codes posted on coupon sites you did not approve, and keep the approval step between a sale and a payout so a refunded or self-referred sale never becomes a paid reward.

Got Questions? Let's Talk Referral Codes.

Can a Referral Code Be Used More Than Once?

Yes by the person sharing it, and usually only once by each new customer. A referrer can share the same code with as many people as they like. Each new customer can typically redeem it once, at their first signup or purchase, so nobody can stack the same discount repeatedly. Businesses set these limits in their billing system, such as a first-time-order restriction or a cap on total redemptions.

What's the Difference Between Referral and Promo Codes?

Attribution. A promo code such as SUMMER25 is shared publicly and credits nobody: its success is measured by how many times it is used. A referral code belongs to one person, so every redemption is traced back to whoever shared it, and that person can be rewarded. The two can look identical at checkout; the difference is in what the business records.

How Do I Know if My Referral Program Is Actually Working?

Track a few numbers rather than redemptions alone:

  • Participation rate: the share of customers or partners who have a code and have shared it at least once.
  • Conversion rate: the share of referred visitors or code users who become paying customers.
  • Revenue per referral: what referred customers actually pay, including renewals for subscription products.
  • Cost per referred customer: the rewards and commissions you paid, divided by the customers they brought in, compared with what other channels cost you.

If participation is low, promote the program more. If conversion is low, look at the reward and at who is sharing. If the cost is higher than your other channels, rethink the reward before you scale it.


Ready to give your customers and partners their own codes and links, and pay them only for sales that stick? Start with LinkJolt: plans from $19.99 a month, a 7-day free trial, and 0% transaction fees.

Watch Demo (2 min)

Henry
Cleo
Ollie
Zeger

Trusted by 300+ SaaS companies

Start Your Affiliate Program Today

Get 30% off your first 3 months with code LINKJOLT30

✓ 7-day free trial

✓ Cancel anytime

Frequently Asked Questions

What is a referral code?

A referral code is a short, unique string of letters and numbers that a business gives to one person so the friends they recommend can enter it at signup or checkout. The code tells the business who sent the new customer, so it can reward the person who shared it and often give the new customer a discount or credit as well.

What does "referral code (optional)" mean at signup?

It means you can leave the field blank and still sign up. Entering a code only credits the person who referred you and may unlock a welcome offer for you. Many apps accept a referral code only during the first signup or first purchase, so add it before you finish if a friend gave you one.

Where do I find my own referral code?

Look in your account settings or profile for a section named Refer a friend, Invite, Rewards, or Referrals. That is where apps put your personal code and link, along with any rewards you have earned. If you cannot find one, the company may not run a referral program, or it may be open only to paying customers.

Why does it say my referral code is invalid?

An invalid referral code message means the checkout could not match the code to an active referral. Check for typos and look-alike characters such as zero and the letter O first. After that, the code may have expired, reached its redemption limit, or belong to a program that only accepts new customers, in which case the person who shared it can ask for a fresh one.

Do referral codes expire?

Some do and some do not, because each business sets its own rules. A code can carry an expiry date or a cap on how many times it is redeemed, and it stops working once either is reached. A code can also stop working if the program ends or the person who shared it closes their account.

How do businesses track who used a referral code?

The business matches the code on each order back to the person it was issued to. The code has to exist in the checkout or billing system to apply a discount, and referral or affiliate tracking software then reads the order from the payment provider and credits the owner. Pairing each code with a trackable link also catches referrals from people who click rather than type.