#taylan-sub-status
1 messages · Page 1 of 1 (latest)
I want to track canceled, past_due active and trialing
customer.subscription.deleted has status canceled
customer.subscription.created has status active, trialing
customer.subscription.updated has status active, trialing
invoice.payment_failed is changing customer.subscription to past_due
if customer pays customer.subscription.updated is triggered
So If I listen to those events with webhook I wont miss a thing right?
There's a good overview here: https://stripe.com/docs/billing/subscriptions/overview#subscription-events
well I've read it but there is a problem
article states ; o manage these scenarios, set up a webhook and listen to the customer.subscription.updated event so that you’re notified when subscriptions enter a past_due state:
this customer cus_JNiEwn4Jmy8xXw has failed evt_1KaRwzGBhi4wdnXzFEMRsazA an invoice
but the update event isnt fired
why?
The Subscription already had the past_due status here: https://dashboard.stripe.com/events/evt_1KXtcEGBhi4wdnXzO3d5Emxo
From another failed payment attempt prior to the one you shared
I understand
thanks works like charm
can we confirm that
customer.subscription.deleted has status canceled
customer.subscription.created has status active, trialing
customer.subscription.updated has status active, trialing, past_due
and payment invoice events trigger customer.subscription.updated if there is a change in the status
customer.subscription.created has status active, trialing
Not necessarily, it depends on how your integration works. Could beincompleteinitially! https://stripe.com/docs/api/subscriptions/object#subscription_object-status
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I understand, I am a developer so I will ask to this stripe account owner
Thank you for your support, have a nice day
Np!