#jacobjensen0326
1 messages · Page 1 of 1 (latest)
maybe I should specify a bit - I'm trying to find a credit note id based on the information regarding payouts
hi! sure, it's the id field ond a CreditNote object. Can you elaborate a bit?
what information exactly?
so it is very easy to find the source invoice, but I can't really find the source credit note. For example - if I have a refund line in a payout, I would like to connect this line to a credit note (for our accounting purposes)
the only way I can imagine doing it is by looping through all of my credit notes, and then match it up with an invoice id. just seems like quite a bit of work
I can't think of a way other than going refund->charge->invoice and then https://stripe.com/docs/api/credit_notes/list#list_credit_notes-invoice to get any and all CNs for the Invoice