Skip to main content
Solved

How to Implement a Credit-Based System with RevenueCat?


Forum|alt.badge.img+1

Hey guys,

I’m using RevenueCat to manage subscriptions in my app, which has an image generation feature. Right now, I register users with an anonymous RevenueCat ID, and it works great for tracking—even if users reinstall the app or clear data.

But I want to set limits on free usage. Like, each user should get X free image generations per day or week, and after that, they either buy credits or subscribe. Is there a way to track and enforce these limits using RevenueCat, or would I need to handle it separately on my backend?

My app currently has 1000+ daily active users and 500+ subscribers, but there are also a lot of abusers trying to bypass restrictions. I want to make sure free users have fair access without getting exploited.

Has anyone implemented something like this, or is there any guide for it? Would love to hear your thoughts!

Thanks!

Best answer by joan-cardona

Hi ​@vansh,

The best way to do it would be to handle it in your backend and use our webhooks feature. When you receive a webhook with the payment, you can add the credits to the user’s account. I’d recommend start using some kind of custom id so you can identify customers better in case they use different devices.

We are working on a feature to support this kind of behavior out of the box but I can’t provide you with an ETA yet. 

Best,

View original
Did this post help you find an answer to your question?

2 replies

joan-cardona
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 332 replies
  • Answer
  • March 18, 2025

Hi ​@vansh,

The best way to do it would be to handle it in your backend and use our webhooks feature. When you receive a webhook with the payment, you can add the credits to the user’s account. I’d recommend start using some kind of custom id so you can identify customers better in case they use different devices.

We are working on a feature to support this kind of behavior out of the box but I can’t provide you with an ETA yet. 

Best,


Forum|alt.badge.img+1
  • Author
  • New Member
  • 1 reply
  • March 21, 2025

Really appreciate your response. That makes a lot of sense, I will start looking into handling it on my backend and using webhooks. Also, the tip about using a custom ID is super helpful. Excited to hear that revenuecat is working on a built-in solution for this. Looking forward to it.

Thanks again


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings