#ryuuuu
1 messages · Page 1 of 1 (latest)
You could also list the PaymentIntents directly and add up the amounts
https://stripe.com/docs/api/payment_intents/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Haven't tried it myself (for subs) but should work
Oh right, since all subscriptions create a payment intent anyways right? Would fetching all invoices also work the same?
You could, the requests might take a bit long if you have multiple lines item
I see.. the problem i see here tho is that the limit is 100 to fetching all
oh i can check the has_more and fetch the next 100 if its true
Yup, pagination should help
https://stripe.com/docs/api/pagination
We have a video that goes in detail
https://stripe.com/docs/videos/developer-foundations?video=pagination
Gotcha, thank you!