#unknowncat
1 messages · Page 1 of 1 (latest)
Hi, I see your other thread is open, next time.. when the thread is open you can just ask there. You should be able to retrieve the Balance Transaction and get the id from there: https://stripe.com/docs/api/balance_transactions/retrieve.
Hi, thank you. I wasn't sure if it might be better on a new thread but will do as you say next time.
actually retreiving balance transactions, trying to locate the stripe fee but none is showing on that endpoint
No worries.. To add more, you'd need to expand the source: https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-source when making this request
Are you not seeing the fee_details when calling this Retrieve request, that should be independent of the source parameter? I was answering the first question of how to attain the pi_ id from the balance transaction.
it is, but showing 0 fee and fee_details is empty array
That is likely the fee was not take from there. Can you share the transaction id with me? Is it the same as you shared on the other thread?
making a report for all payouts and associated stripe fees, but sure that other transaction is a fine example
when I add source=expand I"m getting "Received both payout and source parameters. Please pass in only one"
From looking at that transaction id, the fee was taken our from the Platform account so you'd want to look there.
yep, how to look there based on transaction id?
is the essence of the question
duchess said to check pi, that's why I had asked how to get that from transaction id
You'd want to read this, https://stripe.com/docs/connect/charges#types and better understand how this works.
The fee is taken from the Platform account so you'd need to look at the transaction that occurred on the Platform account to see the fee details
gotcha, and so by getting balanceTransactions list by sub-account and payout ( because case is that report needs to show stripe fees on all payments included in a payout ) , then we have transaction id, but those are showing 0 fee. I"m sorry that I'm confused.
how to get the transaction that occured on the platform account which is associated with the transaction that occured on the sub-account?
The initial payment occurred on the Platform account, later after fees are taken out, a transfer is made to the Connected account which you can see for that transaction here: tr_3MMBOFBPFXLFBDkw1pCMG1aa
okay, i should query balanceTransactions for payout and type 'transfer', then find the payment associated with that?