#ryuuuu
1 messages · Page 1 of 1 (latest)
No it's the id for the corresponding object you want to paginate on
Is there any way to achieve getting invoices from a certain index to another? It would be kinda hard to get the id of the invoice at the end of my table before the next load more
Don't know what you mean by 'getting invoices from a certain index to another'
This is how pagination on the API works: https://stripe.com/docs/api/pagination
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I see. What i meant is something similar to the SQL skip() and take()(this is how i do the load more in the rest of my app), basically the same as the stripe pagination but starting_from would be the index of the invoice(in the array of all invoices) instead of the ID. I understand why it's done like this tho
Did you try autopagination that's available in the SDKs?
Ah i just looked it up and its probably not gonna fit in my app, but it's ok, i can use the starting_after afterall