I need to understand you requirement i details first, Then in only I can give you any solution to this can you please elaborate it?
There are plenty of apps out there with points system, Users can earn point by purchase the items or sharing the website on FB or Insta.
But your requirement seems unique to me, Give a try to apps out there is any app fits your requirement.
Others wise you need to get a custom app or coding help that can help you with this.
Let me know if I can help you more.