#nickfla1
1 messages ยท Page 1 of 1 (latest)
Hi! of course!
I'm required to keep track on our database the status of our users' subscriptions. Since we only care to store if a subscription is active or not I'm trying to understand what are the minimum amount of events I need to track.
customer.subscriptions.created for sure! If I understand it correctly this event is fired each time a users subscribes to a product or renews an existing subscription.
customer.subscriptions.deleted seems pretty important to me as well and I was wondering if it covers all "deletion" statuses, such as cancelled, unpaid and past_due.
If I'm correctly I shouldn't need to subscribe to the customer.subscriptions.updated as well because those two above should cover all statuses we need to track.
Thank you in advance for the support ๐
๐ taking over for my colleague. Let me catch up.
I would first suggest you go through this doc page https://stripe.com/docs/billing/subscriptions/webhooks
customer.subscriptions.created for sure! If I understand it correctly this event is fired each time a users subscribes to a product or renews an existing subscription.
it fires only once for every subscription
to track active subscriptions you can look at this https://stripe.com/docs/billing/subscriptions/webhooks#active-subscriptions