#jdogcoder
1 messages · Page 1 of 1 (latest)
If the invoice has already been finalized, you can void it with this API: https://stripe.com/docs/api/invoices/void
It hasn't been finalized, but it is attached to a subscription
and I canceled the subscription
but the draft invoice can't be voided
Your best option would be to finalize the invoice and then immediately void it (because we don't allow you to delete invoices tied to subscriptions)
Ah... when I finalize it, will it be sent to the customer automatically??
I believe it wouldn't be sent if you set auto_advance: false when you finalize it
Got it.... stupid question, what is the best way to set that?
Can i pass it in the JSON request body?
Yeah, it's somethign you'd include in your request to finalize the invoice through the API: https://stripe.com/docs/api/invoices/finalize#finalize_invoice-auto_advance