#Marroco-fees-api

1 messages · Page 1 of 1 (latest)

lament veldt
tepid wraith
#

but I want to get that from current month

#

I am using this

#

balance_transactions

#

for getting all the transacctions of specifict month

#

but I want to know the stripe fee

#

for those transactions

lament veldt
#

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?

tepid wraith
#

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

lament veldt
#

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?

tepid wraith
#

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

lament veldt
#

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.

tepid wraith
#

So my formula is (all transactions > 0 ) * 0.029 + (0.3* number of positive transactions)

#

but gives a number that is less what stripe is charging me