RASPAY

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.

FieldMeaning
dataItems of the page.
pageCurrent page.
limitItems per page.
totalTotal items with the filters applied.
hasMoreWhether 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
}