Assign customer code for referral