#fpereira-subscription-event
1 messages · Page 1 of 1 (latest)
fpereira-subscription-event
@lone socket when a Subscription gets canceled we send customer.subscription.deleted
https://stripe.com/docs/billing/subscriptions/webhooks covers some of this
Yes, but I need an event that notifies me when the period that was already paid ends, in case it is canceled before the end of the paid period. Exists?
Maybe with invoice events, an event that notifies me that the billing period has ended?
For example, I subscribe to an annual subscription, I cancel it in the middle of the year, is there an event that notifies me when the subscription year is over? although being canceled
that doesn't really make sense as is
The customer.subscription.deleted is sent when the Subscription is really canceled. If you have a yearly Subscription and cancel it mid-year, usually you mark it to cancel at the end of the current period, so in 6 months
and when that period ends, the Subscription automatically cancels as expected and then the Event is sent as expected too
With an annual recurring product, the subscription is automatically canceled after 1 year?
No?
You said explicitly you want to cancel after the year ends, so I'm addressing that
You create a yearly Subscription on Jan 1st 2023. It will renew automatically on Jan 1st 2024, then Jan 1st 2025, etc.
But you said you are canceling it mid-year, so on July 1st 2023 you tell us "please make sure to stop that Subscription once the paid period is finished". To do that, you pass cancel_at_period_end: true (https://stripe.com/docs/api/subscriptions/update#update_subscription-cancel_at_period_end) to tell us that. And on Jan 1st 2024, this Subscription won't renew, it will automatically cancel as you asked us. And at that point, customer.subscription.deleted will be sent
Niceeeee, cancel_at_period_end resolve my problem. Thank you for your time! Have a nice day!