#Tiana-invoice-auto-advance
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ invoices relying on auto-advance to move through their states will remain in a draft state for approximately an hour before being finalized. The exception to this rule is that the first invoice for a subscription gets finalized immediately.
Hello Toby, would it be possible to disable this delay ? Thanks
It can't be disabled, but you can write code to manually finalize the invoice before it does so automatically:
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.
Which webhook event should I listen to and which variables should I check ?
You can listen to the invoice.created event as your trigger, and then retrieve the invoice to check what the status is set to. If it's in a draft state then you can try finalizing it.