#akefal
1 messages · Page 1 of 1 (latest)
Hi
You can void only finalized invoice, try use the delete API:
https://stripe.com/docs/api/invoices/delete
thanks, i'll try it right now.
I'm obtaining this error : You can't delete invoices created by subscriptions.
I had a doubt yes regarding this
Try this one:
https://stripe.com/docs/api/invoices/mark_uncollectible
I'm obtaining this error : You can only pass in open invoices. This invoice isn't open.
Do I need to "finalize" it before voiding it ?
If you finalize the invoice, it will be payed automatically
Ok, could you tell me why you need to delete a Subscription Invoice ?
because I need to pilot subscription manually. Subscriptions are always paused with keep_as_draft, I activate them only when an invoices is required by "pause_collection = null" + "poration_behavior = none" + "billing_cycle_anchor = now" + "pause_collection = keep_as_draft".
It's the only way I have found to compile with the behavior needed. (our customer can suspend their subscription each week and the payment must be on a certain day but this day can vary for each customer each week).
In that case, create Subscription with 100% discount off
and manage your customer's payment with manuel invoice
Hmm, if I create with a 100% off, my price will not be shown to customer when they make their first payment, am I right ?
The payment is instant or one hour after finalization ?
It's finalized after one hour, and once it's finalized it's directly paied
finalization of the invoice with "auto_advance = false" should do the trick, no ?
Maybe but it works !
Yep ! Thanks a lot for your help !