为什么 stripe.Charge.list 最多只能检索 100 笔费用?

why stripe.Charge.list retrieves up to only 100 charges?

我使用以下代码检索所有费用:

charges=stripe.Charge.list(limit=10000)

但代码最多只能检索 100 笔费用。为什么?

来自条纹documentation

limit optional
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.

如果您指定的限制超过 100,则上限为 100。

您需要反复调用才能获得下一组。对后续调用使用 starting_after 选项:

A cursor for use in pagination. starting_after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include starting_after=obj_foo in order to fetch the next page of the list.