#_api
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/1337186692985127013
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Perhaps useful: My team member is saying that "We don’t capture the ‘invoice.created’ event, only ‘invoice.payment_succeeded’"
Is this fine/expected for subscription renewals? Or should we also look for invoice.created events for X reason?
Hi there! I'll be with you shortly; the server is quite busy. Sorry for the wait
No worries, take your time 🙏
Okay, thank you for waiting
So, you're asking why, when a Subscription cycles, does the Invoice remain in a 'draft' state for a certain period of time?
No worries! And yes that is correct. According to the docs the invoice should finalize in an hour: https://docs.stripe.com/billing/subscriptions/overview#invoice-lifecycle
However, in our scenario, the invoice has been in a draft state since approx 19 hours ago, and it states "This draft invoice was generated by a subscription. It can be edited until it's automatically finalised on 9 February 2025."
The issue is that this is a subscription which is supposed to renew every day. Meaning, 19 hours ago, the payment/renewal attempt was supposed to happen
Interesting, this may be the first daily Subscription I have ever seen. Let me look at this Subscription
Still trying to figure out why this might be happening
All right, please let me know should you require any info from my end
thank you but I think the relevant Subscription is enough
alright, this is because we didn't receive a 200 to invoice.created for this Subscription's Invoice
Understood, so we're required to listen/respond to the invoice.created event for it to finalize
If you would like it to finalize in ~an hour, yes
This Invoice will finalize eventually
Perfect, that's all I need to know for now. Many thanks for the excellent assistance! 🫡