#squirrel-invoice-aggregate
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.
- squirrel-dashboard-metadata, 3 days ago, 7 messages
squirrel-invoice-aggregate
@sly mist no we don't have that kind of "aggregation APIs"
I've tried List Invoices and Search Invoices but am not able to return an exact number
ah you mean a number of Invoices, like the count, not the sum of the amount for each?
correct, just looking for the number of invoices in my account
yeah I don't see this feature right now so only way is to list them all and count. We do recommend mirroring most of the data in your own database for cases like this
oof, alright. Thank you!
wait I lied I think
I can see the count with expand: ['total_count'], can you try?
okay found the doc https://stripe.com/docs/api/pagination/search#search_pagination-total_count @sly mist