#jairo_subscription-duplicate
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/1217150674643456121
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! We are working with Stripe Billing to manage customer's subscriptions to our plans, but We've found a customer with two subscriptions to the same plan in Stripe
@green gate it's best to write all the details when flagging the question upfront so I can help you immediately after it posts
Stripe has no logic to de-duplicate Subscriptions or guarantee just one. If you have 2 Subscriptions it means your own code created those two Subscriptions
jairo_subscription-duplicate
We are trying to investigate in Stripe's dashboard, but we are not sure what we need to check in that case
Ok, We supose that the problem is in our side, but could you help me to get some relevant information? For example, the creation requests of both subscriptions
We've searched in Events list, but it seems that the dashboard not shows the old events in the list
And subscriptions were created in October and November '23
Are you an experienced developer writing the code end to end here?
Yes, I am
Okay so can you share the Customer id for me to look at?
Yes, of course
just a second
cus_OLDyYFMEapRUhg
this customer has 3 subscriptions, but the older one is cancelled, so it's normal to us to let the customer to create new subscriptions if the previous one is cancelled
but having a past_due subscription (the second one), the customer couldn't been able to create a new one to the same price
For this reason, we are investigating how is it possible, and We would like to recopilate all relevant information about these two subscriptions
okay so if you load https://dashboard.stripe.com/customers/cus_OLDyYFMEapRUhg
You can see the Logs right there in the Logs section
https://dashboard.stripe.com/logs?object=cus_OLDyYFMEapRUhg shows all the logs and you can find the /v1/subscriptions one(s)
ok, I'm checking
And how can I see the lifecycle of the past_due subscription? I would like to see it's status transitions
you can't, Events are only stored for 30 days