#mattia_api
1 messages · Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- mattia_invoice-credit-notes, 33 minutes ago, 33 messages
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1275150576597864510
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
As far as I know, you could just create a new credit note for the amount: https://docs.stripe.com/invoicing/dashboard/credit-notes#creating
I tried this already, but it unfortunately doesn’t work because the API expects a credit amount which is minor or equal to the invoice amount, which in a case where all the amount was paid with a credit note, the invoice amount is 0.
So this gives me an error as X (credit note amount) is > 0
That shouldn't be the case as far as I can tell. The Credit Note can be used on a paid invoice to refund an amount: https://docs.stripe.com/invoicing/integration/programmatic-credit-notes?lang=python#paid-invoices
What error are you getting specifically?
Ohhh, wait. The amount is 0 because the Invoice was paid with a credit note
Correct
Sorry, missed that. Let me dig a bit and circle back
I think you'd need to use the Customer's Credit Balance in this case. Read up on this and let me know if it orients you in the right direction: https://docs.stripe.com/invoicing/customer/balance
I’m aware of the customer credit balance, but I would like to avoid using it, as we have our company balance already in which refunds are sometimes issued to.
I wish I had a better solution for you, but there just isn't a way to refund a credit note and you can only void one if it's in open status. The paid status of the Invoice effectively locks the state of the Credit Note, so the next best thing is to get the Credit Note's amount and add it back the Customer's Credit Balance
I see, I believe I need to find a way to internally mark it as refunded for taxation purposes even if stripe doesn’t allow it, thank you though.