Pagination
How to go through lists of resources.
Lists use page-number pagination, newest items first. Send page (starting at 1) and limit (from 1 to 100, default 25). Continue while hasMore is true.
| Field | Meaning |
|---|---|
data | Items of the page. |
page | Current page. |
limit | Items per page. |
total | Total items with the filters applied. |
hasMore | Whether there is a next page. |
GET /v1/charges?page=2&limit=25
{
"data": [
{
"id": "7c1e4f2a-3b58-4e0d-9a6c-2f8d1b7e5a10",
"object": "charge",
"...": "..."
}
],
"page": 2,
"limit": 25,
"total": 73,
"hasMore": true
}