#vitali-list
1 messages · Page 1 of 1 (latest)
Hi! I don't think list endpoints show the total count.
Which list endpoint are you using? And what are you trying to do?
the payouts, i just want to paginate , but i also want to show the total results
or total number of pages
Got it! Unfortunately you can't know the total number of pages. But you could use the auto-pagination feature to go though all your payouts. https://stripe.com/docs/api/pagination/auto
that doesnt really help unfortunately, i need to show my customers what page they are currently on so they know that they have more results, how would you go about doing this?
You could show the first N results to your page. And show your customers a "next page" button only if has_more is true. And if they click on that button, then use starting_after to list the next N results.
can i somehow trick the search endpoint? i saw it does give me back a count
Well the search API has some limitations as mentioned here: https://stripe.com/docs/search#limitations
yeah it seems i have no choice