#will408 - Stripe fee
1 messages · Page 1 of 1 (latest)
Hello, yes you can. The fee will appear as the fee property on BalanceTransactions objects (which are created any time something changes the balance on your account)
The charges that you are looking at should have a balance_transaction property with the ID of the balance transaction that it is connected to
So to get to that from the invoice you would get the successful charge from the invoice's payment intent and then check the fee on the charge's balance transaction
Is that helpful? It can be confusing with so many layers of objects involved
Yeah I can make this work. I will probably go from the invoice to the charge to the balance transaction fee
(not the payment intent)
Sound Ok?
I take paid invoices only, then go from there
Yes that makes sense to go from the invoice. And yes as long as the invoice is paid it should have a payment intent with a charge that has a balance transaction that you can look at like this
With the one caveat that you can mark invoices as being "paid out of band" aka paid outside of Stripe. In that case your Stripe fee is a very easy to calculate 0
Ah that's a good case to know about. Thanks for that. I just tested that in the Stripe dashboard to mark an invoice paid. I have users that can do that.