#edutomesco
1 messages · Page 1 of 1 (latest)
What do you mean by 'reset'?
I want a webhook to know when a subscription interval finish and start the next one
You likely wanted customer.subscription.updated: https://stripe.com/docs/billing/subscriptions/overview#subscription-events
but this is when a subscription is changed
but i want when the interval of the subscription changed
Yep, and the subscription will change as the billing period date parameters will change
aaaahhh
so this will count as a subscription.update
when it finish and interval and start another?
Hey! Taking over for my colleague. Let me catch up.
Okey
If the subscription is updated (change the billing cycle, upgrades/downgrades...) you should listen to the event my colleague mentioned above.
If you want just to get updated when a subscription will be renewed, you can monitor this event invoice.upcoming, you'll get an event prior to the renewal, the number of days could be configured in your dashboard
https://stripe.com/docs/billing/subscriptions/overview#:~:text=on the subscription.-,invoice.upcoming,-Sent a few
but i want to be exactly at the moment of changing
not days before
because i want to use to update all my system control limits
And I need to be accurated
What kind of updates are you doing in your system ?
if you are willing to track whenever a customer still has access or not to your product, I invite to reverse the logic. You keep your customer having an active subscription in your system until you got a failed payment event to deactivate it:
https://stripe.com/docs/billing/subscriptions/webhooks#payment-failures