#Yann
1 messages · Page 1 of 1 (latest)
You want to credit the customer for an invoice they didn't pay?
not quite, I would like to create another invoice. On this invoice, the total sum would have to be 0 for that I would like to act as if there had been a credit note for the initial price so that this invoice is at 0. It is necessary for accounting in France
Hm ok. So to clarify when the subscription invoice can't be paid, you want to create a brand new invoice of the same amount, apply a credit note so that the total is $0?
Yes exactly
Gotcha. So I recommend using invoice items to achieve this actually. Since all can be done programmatically that way. You would create an invoice item for the amount of the unpaid subscription invoice, then another negative amount invoice item to act as the credit. Finally, you would just create the invoice.
https://stripe.com/docs/api/invoiceitems/create
https://stripe.com/docs/api/invoices/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
thank you, it was the track that I would prefer but I wanted to be sure!