#sa_919191
1 messages · Page 1 of 1 (latest)
Hello 👋
Yes, that's correct
thanks, in regards to the fee stripe charged what api can I use?
You can look at the BalanceTransaction object in order to look at the fees
https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-fee_details
so I have to use the payment intent API via search calculate the total amount and then use the balance_transaction to find out the fee stripe charged
my goal is to find out the total amount we received minus the fee stripe charged for a specific payment meta data
The BalanceTransaction should have the information about net amount that was charged too
https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-net
As well as the gross amount
https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-amount
but I cannot search for a specific payment meta data for the balance transaction api
Yeah you can't directly query the BalanceTransaction unfortunately.
You'll have to find the PaymentIntent first and look at the charge object
https://stripe.com/docs/api/payment_intents/object#payment_intent_object-charges
And then on the charge object you'll need to expand balance transaction
https://stripe.com/docs/api/charges/object#charge_object-balance_transaction