#Abhishek-Invoice

1 messages · Page 1 of 1 (latest)

sullen oxide
worn yew
#

i am using same api

#

but it gives only 10 values if no parameter is given

#

what param should i send

sullen oxide
#

you can use the limit param to specify the number of objects to be returned (max 100). and you should also use ending_before or starting_after for pagination if there are many invoice objects.

worn yew
#

okay
can you pls tell what values can we provide in ending before and starting after

sullen wing
#

Hi, I'll step in for Jack

#

This is typically the object ID such as in_xxx

worn yew
#

i tried giving 100 as limit it still gives me 10 output. But if we provide customer id it gives all invoices available for customer

#

so on what factors it is sending me 10 values only

sullen wing
worn yew
#

wait limit 100 it is giving me right output parameters gone wrong

#

but i haven't got starting after and ending before

#

can you share sample values as please for testing

#

or any format

sullen wing
#

For example, if your current list of 100 entries has the last object returned as in_1, and you want to retrieve the next 100 entries. Then your next request should include starting_after=in_1 , so that it will fetch the next 100 entries after in_1

#

ending_before and starting_after simply are cursor of object ID to use in pagination

worn yew
#

object id refers to id in each json output. Right?

sullen wing
#

yup! in the case of invoice object, its ID will be in_xxx

worn yew
#

if yes lets say we use invoice id and then i am retrieving 10 invoices and want another 20 invoices then i need to provide invoice id to starting after field

#

how can we make it dynamic

sullen wing
#

which language are you using?

worn yew
#

.net

#

and angular

sullen wing
worn yew
#

okay

#

got it. Thanks for help.

sullen wing
#

No problem 👍