#Siva_K-subs
1 messages ยท Page 1 of 1 (latest)
Hello! Can you clarify what you mean by this? What behavior are you seeing right now that doesn't match what you want?
We have a usage-based subscription, the usage information will be there in my salesforce system. Once the invoice generated I want keep it draft until my usage information is ready in Salesforce.
Then I'll make a callout to Stripe to update the invoice and finalize it
Gotcha, so you want to disable the automatic finalization of invoices
thats right
So the way to do this is one an Invoice is created (you can listen for the invoice.created event for this), you need to update it to set 'auto_advance: false' (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 can do that but want to check if we have any out of the box functionality to do that
Unfortuantely no, there isn't anything that you can set on the Subscription that would disable the automatic finalization on all the Invoices
Can I increase the one-hour time to make the invoice finalize, to two or three hours
Not reliably, no - if you want that level of control the best way is to just disable the auto-advancement