Referral codes are tied to a referral program. They reward both the existing customer and the new customer for their participation. Promo codes are general discount codes provided by the business that offer a discount to anyone who uses them without any referral context.