Back

how to create referral system with Appwrite?

  • 0
  • Flutter
  • Databases
  • Accounts
  • Cloud
  • Users
kamal.panara
14 Jul, 2023, 16:58

Hello, I'm new to Appwrite, I come from a Firebase background, and in firebase, we use dynamic links (which will be discontinued soon) for refer and earn system, and when a dynamic link opens it has a userId query parameter so we know whose link it is, whenever someone opens referral link.

we can do similar with Appwrite too, but how to generate a unique referral code and link it to the Appwrite user?

TL;DR
To create a referral system with Appwrite, you can have a collection of referral codes and a function for accepting the referral code. This function can lookup the referral code to determine which user it belongs to. Additionally, Appwrite has recently released Appwrite Dynamic Links, which can be used for this purpose. You can check out the documentation here: [GitHub - Appwrite Dynamic Links](https://github.com/appwrite/dynamic-links) If you have any further questions or need more documentation, feel free to reach out.
Tessa
14 Jul, 2023, 20:59

hi @kamal.panara , we just released Appwrite Dynamic Links today.

https://github.com/appwrite/dynamic-links

Does the readme answer your question? If not, let me know, and we will provide more documentation.

Drake
15 Jul, 2023, 05:41

You can have a collection of referral codes and a function for accepting the referral code. The function can lookup the referral code

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more