#NESH
1 messages · Page 1 of 1 (latest)
Hello 👋
We have pretty good docs around webhooks <> subscriptions here
https://stripe.com/docs/billing/subscriptions/webhooks
Have you looked at the above already? If not, I'd recommend starting there.
I looked already. Which event you catch and what you check from properties to know when subscription was in cancelled state and it's renewed now
and vice versa, it was active, and now it's cancelled
Once a subscription has been cancelled then it can't be renewed. So it would be in active state even if it is marked for cancellation at period end.
customer.subscription.* events are the ones you'd look at
and what is difference between these two
events.CustomerSubscriptionPaused does not trigger when I pause payment collection in stripe, so when is this event triggered
renew ?
It's clarified in the docs
Can you share the subscription ID for that one? I suspect customer portal renders it as cancelled if its marked for cancellation at period end
yes, it's marked for cancell at period end
Yeah so if you look at the subscription status in the dashboard though, it should still be active
that's the status your webhook endpoint will receive as well
so to catch the event of activating subscription I should also check if cancel at period end changed ?
Correct
so just to confirm, this would be correct approach for these two events:
both under this event type:
I believe so, would recommend creating a test subscription and updating it to test & make sure the API/Webhook is behaving as expected