The standard behaviour of AffiliateWP is to prevent affiliates from earning a commission on their own referrals, either via referral links or coupon codes.

When Allow Own ReferralsĀ is installed and activated, affiliates will be able to earn a commission on their own purchases via their own referral links or coupons.