#renee_code
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1313510006410313860
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
It depends what you mean by "involuntarily churned company" exactly in your business case.
We are looking at when a customer moves from unpaid to past_due status and no longer contribute to MRR.
How does Stripe calculate customer churn in the Revenue Reporting?
How does Stripe calculate customer churn in the Revenue Reporting?
I don't know that, sorry. You should ask Stripe Support: https://support.stripe.com/?contact=true
You can look at data.previous_attributes to catch when the status value changes: https://docs.stripe.com/api/events/object#event_object-data-previous_attributes
Yes, as you can see in my original post, that is what I am using but it does not seem to capture what I need. Is the type = 'customer.subscription.updated' the correct event type for me to use in this instance?
Yes, it's either that or customer.subscription.deleted, depending on your Dashboard settings. You can specify what happens when Subscription Invoices are not paid here: https://dashboard.stripe.com/settings/billing/automatic
is there an event type when a customer voluntarily cancels? that would relate to type = 'customer.subscription.deleted'
It depends on your integration. What does "customer voluntarily cancels" means in your app? What ways to cancel do you give them?
We allow them to cancel directly in APP
So you send an API request to Stripe to cancel the Subscription?
Yes
In that case you will get customer.subscription.deleted event
does that event include both when the customer cancels on their own AND after a customer goes from past_due to unpaid, then to canceled? (according to our companies settings, that would be after all attempts failed, the subscription is deleted)
Yes, that event is emitted any time a subscription is transitioned to cancelled, regardless of the mechanism
okay thank you! I am still confused on how Stripe is reporting involuntary churned on the revenue reporting. Do you know what events they are looking at to track that? Right now I am using the event type as 'customer.subscription.updated' AND
data_object_status = 'unpaid' AND data_previous_attributes_status = 'past_due'
And not having any values for the previous month while Stripe reports 55
Unfortunately we don't know the details of Dashboard charts/reports either, or how you can recalculate the same.
I would suggest writing in to support if you have questions about the results for some of those charts/reports: https://support.stripe.com/contact