Pagination

Pagination is used to move through "pages" of results.

Almost all Scalefast GET endpoints have 2 parameters to allow pagination:

Field Description
limit Limit the number of resources. If this parameter is not set the default value is 50
offset It is the current offset by number of resources

You can, therefore, easily paginate resources using &limit=VALUE and &offset=VALUE query string parameters. Both of these values are integers.

NOTE: See each endpoint to see possible variations of these parameters.

Example: Get 3 products from the 5th

curl --request GET \
  --url 'https://api.scalefast.com/products?clientID=CLIENT_ID&access_token=ACCESS_TOKEN&limit=3&offset=5' \
  --header 'accept: application/json'

All Scalefast GET endpoints have 1 value in the response to indicate the number of total resources.
It is the value response_data.count

Example: Get 3 products from the 5th

{
    "result": {
        "status": "OK",
        "errcode": "0",
        "msg": ""
    },
    "response_data": {
        "count": "3423",
        "objects": [
            {...},
            {...},
            {...}
        ]
    }
}