#mattia_invoice-credit-notes
1 messages ยท Page 1 of 1 (latest)
๐ 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/1275134816077221991
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐
I'm a little confused here. An applied credit is not an "out of band" payment. Those refer to payments you received outside of Stripe. What are you trying to do here?
Apologise, let me better explain. Paid out of band is apparently usable only if the whole invoice amount is paid out of band, otherwise, if only a portion of the invoice is paid out of band, I can't specify a portion of the invoice to be paid out of band - that's why I apply credit notes as it's the only way to achieve what I need. Now the question is, how do I get the credit note amount of an invoice?
Can you share an Invoice ID where this occurred? It's just easier than talking in the abstract.
in_1PpYY3Ev6RqipoTEEItw3IIJ
Thanks, taking a look
What I want to know is the credit note(s) amount applied to this invoice
You mean this one? https://dashboard.stripe.com/test/logs/req_fuhQMp1yewehH3
yes
This is the note for this specific Invoice that took the amount down to 0
correct
It isn't returned in the Invoice object itself. However, you can use the Invoice ID with the Credit Note list API to look up any credit notes associated with an Invoice: https://docs.stripe.com/api/credit_notes/list#list_credit_notes-invoice
Alright, so I would need to fetch credit notes individually, then sum them up to get the total credited amount, correct? If so, is there no other better way to achieve this?
If all you want is the total amount credited on the Invoice, you can look at the pre_payment_credit_notes_amount property on the Invoice object
https://docs.stripe.com/api/invoices/object#invoice_object-pre_payment_credit_notes_amount
And then use the List API I shared to get more details, if you want them
Worked, thank you so much.
Another question if possible, what's the difference from getting the FeeDetail object from a BalanceTransaction (to get the sum of all taxes), compared to just doing Invoice#getTotalTaxAmounts? Do they return the same amount?
Balance Transactions track all transactions that impact your account's Stripe balance. The fee_details keep track of taxes, Stripe fees, application fees, etc.
If all you are interested in is the total amount for taxes, then the Invoice property probably makes more sense
I see, thank you
Last question
If I apply a credit note that covers all the amount of an invoice, does Stripe takes any fees from it? Like will Stripe charge me the usual % rate for using the invoices feature?
Unfortunately that one I cannot answer. We specialize in API integrations and helping devs code integrations here but we're pretty ignorant of Stripe fee policies and applications.
Alright, no worries. Thank you though.
But let me take a look at the specific Invoice you provided earlier
Hmmm... Yeah I'm not even sure where to look because I would be looking in Balance Transactions to see if I could see any stripe_fee types
But, because this Invoice didn't change your Stripe balance, there are no associated transactions
I notice that the invoice is "PAID", but the payment itself (where it usually shows fees and such) is "CANCELLED"
Yeah, because no funds actually moved.
Alright, this probably means they do not charge anything on "cancelled" payments
alright, thank you for your help
I would recommend double checking with Support: https://support.stripe.com/contact
I think it would suck to have that assumption and find out later on that it wasn't true.