How to add referral code configure in application?

Hi,
I have one ionic application v 3 .I need to configure referral code and how to access that.anyone have a solution,Please give me a solution…