#heisend3rp

1 messages · Page 1 of 1 (latest)

boreal escarp
vapid schooner
#

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?

boreal escarp
#

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

#

could you share why you're looking for that information? there could be workarounds

vapid schooner
#

trying to aggregate all our data in a personal performance dashboard

boreal escarp
vapid schooner
#

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

boreal escarp
#

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