#pbidja
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- pbidja-account-support, 24 minutes ago, 4 messages
- pbidja, 10 hours ago, 3 messages
- pbidja-paymentintent-incomplete, 3 days ago, 4 messages
- pbidja, 4 days ago, 13 messages
- pbidja, 5 days ago, 21 messages
- pbidja, 5 days ago, 3 messages
Hi, what fees are you referring to? If you're referring to transaction fees, you'd look a the Balance Transaction: https://docs.stripe.com/api/balance_transactions/object#balance_transaction_object-fee.
I’m looking to calculate processing fees across charges, refunds, and disputes
I am referring to Connect. Specifically fees for a connected account
It would be ideal to get aggregate sums instead of every single transaction, because there can thousands
You can use the Report API. https://docs.stripe.com/api/reporting/report_run/create. Other than this, there is not direct API to aggregate the sum of fees like you mentioned.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Would I be able to use this from the SDK?
Yeah, this section, https://docs.stripe.com/stripe-data/query-transactions#balance-transaction-fee-details appears to point to the transaction fee. However, for what you want, I think using the report API is it
I didn’t see an option to get fees only through the reports API
There is not, you can find the exact report type you want: https://docs.stripe.com/reports/api#report-types and look at fees.
Oh I need the data in a synchronous API, because it’s to show on our custom dashboard
Then, you'd want to use the balance transaction.
Hmm that would get me every transaction back correct?
Trying to avoid getting many thousands of transactions for optimal performance
No, you can filter it by type: https://docs.stripe.com/api/balance_transactions/list#balance_transaction_list-type and created time stamp etc. You should try this out on your end using your test API key