#midnight_webhooks
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/1314684108286464101
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, taking a look here
ty
That is because the subscriptions created used different parameters: https://dashboard.stripe.com/logs/req_WnDcFIqyov7K6i and https://dashboard.stripe.com/logs/req_9jddkaM9vwXPsT.
You used billing_cycle_anchor on the one that showed the deleted status.
The other one, sub_1QK3IlCPHmUYMa5Njbrcd5kT does not
Can you ensure that both of the subscription creations have the same parameters?
yes, so If I remove the billing_cycle_anchor field on that one, we should see the subscription.deleted event?
Hello ๐, catching up on this as my colleague has to step out soon
wth get out of here dronkie lol
I am not quite clear on why the creation parameters may have made a difference but that is one of the bigger differences that I can immediately see. Looking further in to this and will get back to you
ok ty
Our initial theory was that one of these deletes happened very close to the cycle anchor but that doesn't look to be what caused this. I will reach out to my colleagues to look deeper in to this and get backt to you with what we can find
It will be today through this thread, though if you have to leave soon we can create a ticket and get back to you through that.
yes I do have to leave soon, if you could make a ticket for me and get me some info on how to see your reply
Hello @cosmic elbow, we tried to send you a direct message, but couldn't
- ๐ We would like to send you a message that has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
- Please enable direct messages from members of this Discord server (please see the instructions here) and let us know so we can try again!
Oh wait my teammate actually just figured out the difference. The first subscription was active when you cancelled it, which emitted the deleted event. The second one was in an incomplete state because it was never active and moved to incomplete_expired which only emits an updated event in this case. I am a bit surprised that that is how this works, but that does explain the difference in behavior.
what does that mean, they were both created and had end dates. are you talking about the status?
Yes, active vs incomplete status. incomplete is the status that a subscription has until its first payment is made, after which it becomes active.
So one subscription was cancelled before its first payment had been made, creating the updated event, and the other was deleted after which created the deleted event.