Summary
List endpoints usepage and limit. Use page, count, and total in the response to fetch the next page.Parameters
page: page numberlimit: items per page
Reading responses
page * count < total, there are more pages to fetch.How to page through list endpoints.
page and limit. Use page, count, and total in the response to fetch the next page.curl -X GET "https://api.sanka.com/v1/public/orders?page=1&limit=50" \
-H "Authorization: Bearer <access_token>"
page: page numberlimit: items per page{
"data": [ ... ],
"page": 1,
"count": 50,
"total": 240,
"message": "success"
}
page * count < total, there are more pages to fetch.