#Yann

1 messages · Page 1 of 1 (latest)

runic geyserBOT
buoyant girder
#

You want to credit the customer for an invoice they didn't pay?

candid parcel
#

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

buoyant girder
#

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?

candid parcel
#

Yes exactly

buoyant girder
#

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

candid parcel
#

thank you, it was the track that I would prefer but I wanted to be sure!