A referral code is an identifier that connects a new customer's signup or purchase to the person who referred them. A business uses that connection to track referrals and, where its program offers rewards, decide who should receive them.
Referral codeWhat is a referral code?
The code might look like MAYA7K or FRIEND482. It can be entered in a form or carried inside a referral link. Some programs use a code that also gives the new customer a discount. Others track the referral and provide the offer separately.
The important question is what the code identifies. A referral code identifies a referral source. The program's rules determine whether that referral qualifies for a reward.
How a referral code works
A typical purchase-based referral follows 5 steps:
- The business assigns an identifier. An eligible participant gets a code or link associated with their referral account
- The participant shares it. A friend receives the code with an explanation of the offer and any reward the referrer may receive
- The friend uses it. Depending on the setup, the friend enters the code during signup or checkout, or follows a link that carries the referral information
- The business records and checks the action. It links the signup or order to the referrer and checks the program's conditions
- Any earned reward is issued. A reward may follow immediately or after a stated review period
Treat the referral record and the reward decision as separate steps. An order can identify the referrer while its reward is still pending. The fictional example below shows how a store can make that distinction clear in its terms. A program that rewards account signups would need a different qualifying event.
Do not assume that copying a code, clicking a link, or completing checkout means both people have earned a reward. Each event answers a different question.
A referral code example
Consider this fictional offer from Cedar Cup, a reusable-cup store:
- An existing customer, Maya, receives the referral code MAYA7K
- A new customer gets $10 off an eligible first order of at least $50
- Maya receives a $10 store-credit reward after the qualifying order completes a 30-day review period
- The offer excludes self-referrals and canceled or fully refunded orders
These are illustrative terms, not a live offer or a recommendation for a particular reward amount. Maya shares the code with Leo. Leo uses it on an eligible $60 order. At checkout, the order receives the $10 discount. In the referral record, the order is attributed to Maya, but her reward remains pending until the review period ends.
If Leo cancels the order during that period, Maya does not earn the credit under these example terms. The code worked: it identified the referrer and applied the eligible friend offer. The later cancellation changed reward eligibility.
This distinction matters when a customer says, “My friend used my code, so where is my reward?” Support needs to check the referral record and reward status, rather than only whether a discount appeared on the order.
Referral code vs promo code vs referral link
These terms can overlap, but they describe different jobs.
| Option | Main job | Example |
|---|---|---|
| Referral code | Identify the referrer associated with an action | MAYA7K connects Leo's order to Maya |
| Promo code | Apply an offer when its conditions are met | WEEKEND10 applies a storewide promotion |
| Referral link | Carry referral information in a clickable URL | A shared URL sends the friend to the store with a referral identifier |
| Reward code | Let an eligible participant redeem an earned reward | A separate coupon sent to Maya after a successful referral |
When the formats overlap
One code can do more than one job. In the Cedar Cup example, MAYA7K identifies Maya and applies Leo's eligible $10 discount. The store still needs a referral record connecting that code to Maya; the discount amount alone does not establish who referred Leo.
A generic promotional code does not automatically identify the person who recommended the store. If everyone shares WELCOME10 and no other referral information is recorded, the code alone cannot distinguish Maya's referrals from someone else's.
A link makes sharing easier in messages and on websites. A short code can be useful when a customer needs to type the identifier. Neither format guarantees attribution across every device or customer journey. Check whether the program relies on the link visit, an entered code, the customer's account, or a combination.
Where do you find and enter a referral code?
If you want to refer someone, start with the business's own account area, rewards page, or referral-program email. Look for language such as “refer a friend” or “invite friends.” A purchase does not necessarily enroll you in every program. If someone referred you, use the code or link they shared and read the offer on the official store. Check these details before ordering:
- Whether you must be a new customer
- Where to enter the code and when it must be used
- The qualifying action, eligible products, and minimum spend
- The offer's expiry and whether it combines with other discounts
- What, if anything, the person referring you receives
A referral field and a discount field may be separate. Some flows use the referral link to identify the referrer and reveal another code for checkout. Use the instructions for that program rather than trying the same string in every field.
If you have already ordered, ask the business whether it allows a referral to be added afterward. Do not assume support can change attribution or issue a reward retrospectively.
Why a referral code might not work
First identify what failed. “The referral didn't work” can mean 3 different things:
The code was not recognized
Check the exact characters, the correct store, and the intended entry field. Confirm that the program and identifier are still active. If the invitation contains a link, use that route rather than extracting a fragment of the URL and treating it as a checkout coupon.
The discount did not apply
Check the offer conditions against the current cart and customer. For example, Shopify discount codes can have date, usage, minimum-order, and product restrictions. Those checkout conditions are separate from knowing who referred the shopper.
Do not promise a customer that a code will work merely because it appears in a referral account. Confirm that the underlying discount exists and the purchase qualifies.
The referrer did not receive a reward
Look for the attributed order or signup, then inspect its status. Is it still in a review period? Did it meet the reward conditions? Was it canceled, refunded, or flagged for investigation? Finally, check whether a reward was issued but not delivered or redeemed.
A helpful support request includes the code, order reference, and date through the business's official support channel. There is no need to post another person's order details publicly.
What merchants should decide before issuing codes
Keep the code simple to share. Put the complexity into clear rules and reliable records. Define the qualifying event. Write down what earns a reward: an eligible first paid order, a completed signup, or another specific action. Also define the event that disqualifies it and when the decision becomes final.
Keep the rewards separate in your explanation. State the friend's benefit, the referrer's benefit, and the conditions for each. A friend might receive an immediate discount while the referrer waits for approval.
Choose an attribution rule. Decide what happens when someone follows one person's link and enters another person's code. Confirm how the software actually resolves that conflict before writing program terms. Avoid inventing a “first click” or “last click” rule that the implementation does not follow.
Plan for mistaken or abusive use. A unique identifier shows which account a referral is attached to; it does not establish that the referred customer is genuinely new. Define self-referral restrictions and an exception-review process. A suspicious pattern deserves investigation before a customer is accused of fraud.
Explain rewarded recommendations. If participants receive a benefit for recommending the business, make that relationship clear. In the US, the FTC's endorsement guidance addresses disclosure of unexpected connections that could affect how people evaluate an endorsement. A short explanation beside the recommendation is more useful than expecting the audience to decode the referral code.
What referral codes can tell you
Referral records can help you count attributed actions and understand which participants bring in qualifying customers. Keep at least 3 counts separate: attributed purchases, reward-eligible purchases, and rewards issued. Otherwise, pending or refunded orders can make program results look more complete than they are.
Attribution is also different from causation. An order using a referral code is credited according to your tracking rules; that record does not establish whether the customer would have bought without the recommendation. Avoid treating all attributed revenue as incremental growth.
For a first operational check, follow one eligible referral from invitation to order to issued reward. Then test an ineligible order and a canceled order. You should be able to explain each outcome from the terms and records without relying on the code's name.
OnVoard's take
A good referral experience makes 2 things easy to understand: who introduced the customer, and what has to happen before each person receives a benefit. Keep those answers visible from the invitation through the reward message. That clarity is more valuable than making the referral code clever.
Every app on every plan. Connect your store and switch on the flows in an evening.