#heisend3rp
1 messages · Page 1 of 1 (latest)
await stripe.applicationFees .list({ expand: ['data.charge'], created: { gte: startDate.unix(), lt: endDate.unix(), }, }) .autoPagingToArray({ limit: 10000 });
could probably use sth like this, problem is, we always have some free trial clients, where we charge 0% fee. Will they also show up there?
no, free trial clients wouldn't show up there. Since it's a free trial, they wouldn't have paid anything for the subscription yet
There isn't a way to do that via the API directly. You would need to make an API call to list charges [0] on the respective connected account using the Stripe-Account header [1].
[0] https://stripe.com/docs/api/charges/list
[1] https://stripe.com/docs/connect/authentication
could you share why you're looking for that information? there could be workarounds
trying to aggregate all our data in a personal performance dashboard
you could probably look into Stripe Sigma or pull one of the financial reports :
https://stripe.com/docs/connect/platform-controls-for-standard-accounts#access-consolidated-reporting
It won't be real time though
sigma would probably work. but we basically only want connected gross volume, sigma seems kinda lika an overkill for this 😅
financial reports is basically the same, than we could also use the dashboard for the data. but we want to automate it
seem the best option is to iterate over all connected accounts and get their payment intents
imo, if you're already storing the corresponding data each time you make a charge, then you wouldn't need to iterate and get all the payment intents. You could generate the data from your own database. It seems inefficient to constantly be retrieving the data when you already receive these data as a response when making a charge