#ashrith-upcomingInvoice-lines
1 messages · Page 1 of 1 (latest)
How can I increase this number to 200
you cannot, max is 100
and you do it by making this API call and passing limit: 100 in the request params
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
But i want to set the limit on this API https://stripe.com/docs/api/invoices/upcoming
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
that doesn't support it, you will have to make an additional API call (the one I linked above) to get the additional Invoice Lines
What is the best way to get the paginated data here?
you fetch the upcoming Invoice
then make the request I showed and use auto pagination with that request: https://stripe.com/docs/api/pagination/auto
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yeah so in this case, listing UpcomingInvoice LineItems won't be a nested object, as that endpoint fetches the line_item objects and not the UpcomingInvoice
So yes autopagination will work on it
So auto pagination is not handled on upcomingInvoice, but handled in upcomingInvoice LineItems. right?