A referral code is a unique code that links a new customer's sign-up or purchase to the existing customer who recommended them. It works like a promo code with attribution and reward rules behind it, so the brand knows who to reward and can stop the offer spreading beyond the friends it was meant for.
A referral code is a shareable code assigned to an existing customer, employee or brand ambassador. When someone else uses that code during sign-up or checkout, the business can identify who made the referral and apply the correct incentive.
For example, a customer called Sarah receives the code SARAHJ after joining a referral programme. She shares it with a friend, who enters it at checkout to get a discount on a first order. The brand then credits Sarah with a reward, such as store credit, loyalty points, cash or a free month of service.
Referral codes often look like promo codes, but they do a different job. A standard promo code applies a discount to a transaction. A referral code can do that too, and it also records where the customer came from and connects the sale back to the referrer.
A referral code system usually records:
This record is what makes referral codes useful to performance marketing teams. They can see which customers drive revenue, which incentives convert best and where referral activity crosses into misuse.
A referral code works by connecting code creation, sharing, validation, attribution and reward into one controlled flow. The customer sees a simple code, while the business needs rules behind it to protect margin and keep reporting accurate.
A typical referral code flow follows these steps:

Uniqodo's referral software creates referral codes itself. Each referrer gets a link to a branded friend page, where the friend enters an email address and receives a unique, single-use code that only works for a new customer. Codes can carry an expiry date, and the referrer is rewarded once the friend completes an eligible purchase.
5% off for each side; codes expire after 90 days
Each friend referred through a national rail discount programme on Uniqodo gets a code for 5% off that works once for a new customer only and expires after 90 days, so a copy posted on a forum is useless to anyone else.
Referral codes turn customer recommendations into an acquisition channel a brand can measure. Word of mouth already influences buying behaviour, and a referral code gives marketing teams the data to reward it and see what it produces.
Their value sits in three areas: trust, attribution and cost control.
Referral codes benefit from trust because the recommendation comes from someone the buyer already knows. A referred customer arrives with more context than someone who clicked a cold ad, so the offer reads like a personal invitation.
They also improve attribution. Without a referral code or tracked link, a brand sees the sale but loses the source. With one, it can connect the sale to the advocate, campaign, incentive and channel that produced it, which is what makes referral rate a number worth tracking.
Cost control matters just as much. Referral programmes get expensive when brands pay rewards for low-quality customers, repeat abuse or purchases that would have happened anyway. Referral code rules limit rewards to the behaviour the business wants, such as first purchases, paid subscriptions or orders above a set value.
For ecommerce brands, referral codes also support:
A referral code strategy works best when marketing, finance and product teams agree on the goal. A code designed to drive first orders needs different rules from one meant to increase subscription starts, bring back dormant customers or reward high-value advocates.
A good referral code strategy keeps the code easy to share and redeem, and keeps enough rules behind it to protect revenue and measure performance accurately. The first decision is who gets rewarded.
| Referral model | How it works | Best for |
|---|---|---|
| One-sided | Only the referred customer receives a reward, such as a discount on a first order | Lowering the barrier for new customers when the referrer needs no extra incentive |
| Two-sided | Both the referrer and the referred customer receive a reward | Programmes where both parties need a reason to act, such as subscription or high-AOV brands |
| Tiered | The referrer earns larger or additional rewards after reaching referral milestones | Encouraging repeat advocacy from high-value customers or brand ambassadors |
Two-sided rewards often work well because both people get a reason to act. The friend gets a lower-risk first purchase, and the referrer gets a tangible thank-you.
Define qualification rules before launch. Strong referral programmes set who can refer, who can redeem, which products qualify, how long the code lasts and when the reward is paid. These rules cut support tickets and stop the campaign rewarding behaviour that adds no incremental value.
Measure beyond redemptions. A high redemption count does not prove a profitable referral programme. Track referred customer retention, average order value, repeat purchase rate, refund rate and total reward cost alongside referral revenue.
Give each friend their own code. A code that works for anyone who has it will spread. Once it reaches a voucher site, strangers can redeem it, and the referrer may be rewarded for orders they had nothing to do with.
Every referral code Uniqodo issues is single-use, so a copy posted on a forum or voucher site stops working after one redemption, and the new-customer rule stops existing customers claiming it.

A promo code applies a discount to a transaction. A referral code can do the same but also tracks where the customer came from and connects the sale back to the person who shared it. The difference is attribution: a referral code records who referred whom, what incentive applied and whether the referral met the programme's qualification rules.
A referral code is something the friend types in at sign-up or checkout. A referral link carries the referrer's identifier in the web address, so the friend is tracked as soon as they click. Many programmes use both: the link handles tracking, and the code still works when someone shops on another device or in an app.
Most brands show a customer's referral code in their account area, in their app or in a referral email sent after they join the programme. Some build the code from the customer's name, while others use a random string. If a code doesn't work at checkout, it may have expired or be limited to new customers.
Referral codes turn existing customers into an acquisition channel where the brand pays only when a qualifying action happens, such as a friend's first purchase. That ties spend to results, and unique codes stop a reward being claimed twice or by someone outside the programme.
It depends on the programme rules. Some brands issue one referral code per advocate that can be shared with several friends, while others generate a unique code for each referral. The choice depends on how the business wants to balance ease of sharing against fraud control and attribution accuracy.

Stop code leakage. Replace shareable generic codes with high-entropy unique strings. Protect your margins by ensuring discounts only apply to the intended audience under specific, validated conditions.

Execute complex campaigns. Move beyond basic discounts with multi-tiered rewards, product bundles, and discounts, all managed without waiting for a developer to clear your roadmap.

Convert with intent. Use real-time data to trigger onsite nudges or referral loops exactly when they matter. Create a unified journey that turns browsing interest into confirmed sales.

Scale partner sales. Automate the delivery of unique codes to thousands of partners instantly. Replace manual spreadsheets and CSV exports with secure, trackable API distribution.
We'll show you exactly how Uniqodo handles your use case - fraud controls, mechanic complexity, and ROI attribution included.