Payment pagination
Payments returned by this API are paginated with a default limit of 20 items. The has_more
boolean field tells you if there are more payments than the limit used and you should use the starting_after
parameters filled with the id of the last payment if you want to retrieve the next page of the list.
If you want to list all Payments for specific date you should:
1 - call the Get payment list using the parameter starting_after_timestamp
and using the timestamp in milliseconds of the date you want
2 - save the last payment id
returned at step 1
3 - call the Get payment list using the parameter starting_after
and using the payment id
you saved at the step 2
4 - save the last payment id
returned at step 3
5 - repeat step 4 until you reach the last payment of the date you need
starting_after
andstarting_after_timestamp
parameters are cursors within the list of payments that is ordered by creation date from the newest and this means that payments returned with this filters are sequentially after, and not temporarily after, the id or the timestamp used.