#hendie_mytime
1 messages · Page 1 of 1 (latest)
Hello! You specify limit and set it to a value between 1-100: https://stripe.com/docs/api/pagination#pagination-limit
Really you should use auto-pagination though: https://stripe.com/docs/api/pagination/auto
That's why I recommended auto-pagination. 🙂
your answer sounded like I cannot make limit more than 100?
Auto-pagination makes as many API requests for you in order to get the full list.
or does it mean if I don't specify a limit and use auto_paging_each that I would get all ?
For example, if you use auto-pagination and set the limit to 20, but there are 60 total results, auto-pagination will make three API requests for you behind the scenes.
Each request will contain 20 results, and the three together will contain all 60.
All of that is abstracted away, though, you just need to implement the iterator.
another qq
when I looked at the first 10 I got, it looked like they were the LAST 10. In what order is the result returned?
LAST 10 in date order that is
List endpoints always return the most recently created stuff first.