#idhruv-invoice-sub
1 messages · Page 1 of 1 (latest)
but will that be allowed?
because these invoices are created by subscription and not by me
and they are in draft mode
You should be able to void them once finalised yes
but how can I finalize a draft invoice
Well, for subscriptions controlled by a subscription they'll be automatically finalised after 1 hour
Alternatively: https://stripe.com/docs/api/invoices/finalize
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
okay, and if I update a draft invoice, can that finalize?
ok, the problem is that I cannot wait for an hour for invoice to finalize, so how can I quickly finalize it if its in draft mode? i would then immediately void it
if i have to wait an hour for invoice to get finalized my application flow will not properly work
if I use this https://stripe.com/docs/api/invoices/finalize it will auto advance and might even go ahead and charge the customer. I dont want that.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
If there's a default PM set then yep, that would happen
So you'd turn off auto_advance before finalising: https://stripe.com/docs/api/invoices/update#update_invoice-auto_advance
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
i have default PM set so now i need to turn off auto_advance?
What is it you're actually trying to build here? It seems overly complicated
Actually, the problem is stripe is not able to stop all draft mode invoices from finalizing and prevent payment further
once subscription_schedule is cancelled and that is why it makes it too complex for me to detect it
the invoice marked red still persist although the one below it is freezed and will charge no more, I dont understand why stripe cannot stop this process all together when subscription is cancelled
This is true, but that's just the way it works. Why are you trying to fight it?
if subscription is cancelled the invoices should just stop or get disabled, in the case above i suspect that the invoice marked in red will get active and charge for subscription that is cancelled
If you expectation is for invoices to be void after cancellation of the subscription, then you'd need to handle that yourself
if cancellation is done in an hour
i can void them but then its asking to get finalized first
Why not just let us handle this? We will 'cancel' the sub and void the invoices if they're unpaid after 23 hours: https://stripe.com/docs/billing/subscriptions/overview#payment-window
can you please explain me why stripe is showing an invoice in draft mode when this subscription is already cancelled? moreover, it clearly shows same invoice beneath which is frozen.
this will charge customers after one hour for nothing right? I mean for the subscription schedule that is cancelled
somehow, already few people have raised this issue here: https://github.com/stripe/stripe-node/issues/657
I already explained: invoice status is not directly tied to the cancellation of a subscription. What if a user cancels their subscription, but they have an outstanding invoice with you? Would you just want to prevent collection of that?
They're considered separate entities in that regard
ok'
thanks for this scenario What if a user cancels their subscription, but they have an outstanding invoice with you? Would you just want to prevent collection of that? this made me think, otherwise I couldn't have figured out what was the real case scenario behind such functionality that stripe chose to keep it this way. Thanks and you can close this thread.