#arcware -invoices
1 messages · Page 1 of 1 (latest)
Hello! Are you talking about the behavior before API version 2018-10-31 (https://stripe.com/docs/upgrades#2018-10-31) where both renewals and creations would be categorized as subscription_update?
i'm more referring to this --> https://stripe.com/docs/api/invoices/object#invoice_object-billing_reason
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
for background, I'm doing some analysis on some of our older invoices and from Nov 2016 to May 2018 all of our invoices just had the old subscription billing reason, so I'm trying to determine which of those would be new and which would be renewals
Gotcha! I think the only way you'd be able to tell is by comparing the invoice creation timestamp lines up with the timestamp on the subscription
ah ok, gotcha... so if the invoice created date and its subscription created date are on the same day, then it's a new subscription
and if the invoice create date is greater than its subscription create date, then it's a renewal
Yeah, I believe so - it's possible there may be some edge cases I'm not thinking of, but that's what I'd recommend starting with