#box-subscription-startdate
1 messages · Page 1 of 1 (latest)
box-subscription-startdate
@surreal escarp when you call the Retrieve Subscription API, which API version are you using?
I'm asking because you account is really old so has a really old one, and we changed this behaviour in 2019 in https://stripe.com/docs/upgrades#2019-10-17
I think you likely are using an older API version
Ahh interesting, thank you for pointing this out. I don't specify the API version anywhere - how would I check which version I'm currently using?
That usually means you're using the one on your account and you can see it here: https://dashboard.stripe.com/developers at the bottom for whatever is Default
So in your code try forcing the most recent API version, see https://stripe.com/docs/api/versioning and confirm the start date is correct
Thank you. I've forced the API version to "2023-08-16" but the start_date is still showing incorrectly. Maybe I'm using the wrong endpoint? I'm trying to find the date that the customer first purchased their subscription. I'm using the stripe.Subscription.retrieve endpoint
what does first purchased their subscription" mean?
the change in 2019 says
The start field on a subscription resource has been removed and is replaced by a start_date field which represents when the entire subscription started as opposed to when the current plan configuration started.
Ahh I think I've found my mistake. The customer's subscription ID seems to have changed mid way through their subscription. Bare with me, this has confused me slightly let me confirm a couple things, sorry for the hassle
ah yeah if you created a brand new one (after the previous one was canceled for example) then we see those as separate objects, we don't "connect" them
Thanks so much. I was assuming incorrectly but after speaking with you I understand where the mistake was. I was under the assumption initially that the subscription ID had remained the same throughout
Thank you for your help 🙂