#Marroco-fees-api
1 messages · Page 1 of 1 (latest)
You would look at the balance transactions: https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-fee
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
but I want to get that from current month
I am using this
balance_transactions
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
for getting all the transacctions of specifict month
but I want to know the stripe fee
for those transactions
Each transaction object that was charged a fee should have the fee and fee_details fields. I'm not sure I understand what's going wrong. Can you elaborate on what you're asking?
yeah
Im making a dashboard
so Im getting all the transactions for the month
but also I want to get the fees from stripe for those transactions
the total
Okay. Are you running into a blocker? Listing all the balance transactions and extracting the fee is the current suggestion, so is there an outstanding question that I'm missing?
Yeah i didnt want to make so many request
because when I make the balancetransaction request
I also get this type of data : stripe_fee
I thoguht that If I put it in an acumulator it will give me the fee
but it doesnt
There are a lot of different types of fees, so you would need to iterate through that list and pull out the different fees. You should be able to use an accumulator variable. It's just a matter of pulling out the relevant fees.
Balance transactions are modular like that by design so that people can understand what they're paying for and why.