INTEGRATION

Getting Started
Pagination

INTEGRATION

Pagination

The API offers access to all resources that Silverflow stores. These resources can be retrieved by accessing them through their individual URLs or by "paging" through all (or a subset) of the resources in the corresponding collection. When retrieving a set from the collection, the resources are returned in a "page" structure, which varies per collection.

Here's an example for a page of merchants.

The limit query parameter can control the page size. When omitted, the default value of 10 is used. When specified, the minimum value is 1, and the maximum is 100. The next page can be achieved by selecting the offsetToken query parameter using the offsetToken property from the previous page. There is no following page when the returned page does not have an offsetToken property.

All collection list methods offer a sortOrder query parameter that allows you to specify the direction. Allowed values are asc (ascending) or desc (descending). The collections are typically sorted by the creation date of the resources unless otherwise specified.

Some collections offer additional filtering parameters such as from, to, date, or various external reference values. Please look at the individual collection methods for details and code samples in multiple languages.