Skip to main content
Question

How to decide which events from webhook to handle

  • September 5, 2024
  • 1 reply
  • 28 views

Forum|alt.badge.img+2

Hello! I am trying to verify a user’s subscription on my backend, and it seems like there’s a lot of event types from the revenuecat webhook to consider.

https://www.revenuecat.com/docs/integrations/webhooks/event-types-and-fields

I want to know if i want to ensure my user’s subscription status on my backend matches with the revenuecat source of truth, do i need to necessarily implement a handler for each of these event types? It feels like alot of effort, and I am wondering if there is usually a need to implement handling for all event cases, or do most apps just need to implement for a few event types?

This post has been closed for comments

1 reply

joan-cardona
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 345 replies
  • September 9, 2024

Hi @richard-0c15ac,

There are a lot of events and they are all needed since the subscription status have a lot of states. That’s why it’s best to leverage that logic to RevenueCat and use it as source of truth. If you want to know the status at any point of a given user you can use our API to get it.

Let me know if this helps!


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