#ashrith-upcomingInvoice-lines

1 messages · Page 1 of 1 (latest)

lone pilot
#

hello, I think 10 by default

cloud jasper
#

How can I increase this number to 200

lone pilot
#

you cannot, max is 100
and you do it by making this API call and passing limit: 100 in the request params

cloud jasper
lone pilot
#

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

cloud jasper
#

What is the best way to get the paginated data here?

lone pilot
cloud jasper
#

Is auto-pagination handled for nested objects here?

#

using the stripe library.

lone pilot
#

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

cloud jasper
#

So auto pagination is not handled on upcomingInvoice, but handled in upcomingInvoice LineItems. right?