All top-level API resources have support for bulk fetches via "list" API methods. For instance, you can list sessions, orders, and charges. These list API methods share a common structure, taking at least these three parameters: limit, next_key, and prev_key.
PaySwifter utilizes cursor-based pagination via the next_key and prev_key parameters. Both parameters take an existing object ID value and return objects in reverse chronological order. The prev_key parameter returns objects listed before the named object. The next_key parameter returns objects listed after the named object. These parameters are mutually exclusive -- only one of next_key or prev_key may be used.
Our client libraries offer auto-pagination helpers to easily traverse all pages of a list.