A referral code is a unique code that is assigned to an individual or business when they sign up for a service. This code can be used to refer friends or family members to the same service, and usually provides a discount or incentive for doing so. Referral codes are most commonly used by businesses that offer subscription-based services, such as online streaming platforms or software-as-a-service (SaaS) products.