#NESH

1 messages · Page 1 of 1 (latest)

tulip vigilBOT
frank parrot
devout gust
#

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

frank parrot
#

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

devout gust
#

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

frank parrot
#

It's clarified in the docs

frank parrot
# devout gust renew ?

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

devout gust
#

yes, it's marked for cancell at period end

frank parrot
#

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

devout gust
#

so to catch the event of activating subscription I should also check if cancel at period end changed ?

frank parrot
#

Correct

devout gust
#

so just to confirm, this would be correct approach for these two events:

#

both under this event type:

frank parrot
#

I believe so, would recommend creating a test subscription and updating it to test & make sure the API/Webhook is behaving as expected