#renee_code

1 messages ¡ Page 1 of 1 (latest)

worn deltaBOT
#

👋 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.

vestal crater
#

It depends what you mean by "involuntarily churned company" exactly in your business case.

bleak spire
#

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?

vestal crater
vestal crater
bleak spire
#

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?

vestal crater
bleak spire
#

is there an event type when a customer voluntarily cancels? that would relate to type = 'customer.subscription.deleted'

vestal crater
#

It depends on your integration. What does "customer voluntarily cancels" means in your app? What ways to cancel do you give them?

bleak spire
#

We allow them to cancel directly in APP

vestal crater
#

So you send an API request to Stripe to cancel the Subscription?

bleak spire
#

Yes

vestal crater
#

In that case you will get customer.subscription.deleted event

bleak spire
#

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)

worn deltaBOT
quick orbit
#

Yes, that event is emitted any time a subscription is transitioned to cancelled, regardless of the mechanism

bleak spire
#

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

quick orbit
#

Unfortunately we don't know the details of Dashboard charts/reports either, or how you can recalculate the same.