Pagination

Pagination makes it possible to obtain the elements of a very large list more efficiently, reducing response times and resource consumption. The returned list represents a collection of objects in a format that allows us to page efficiently.

List Object

Params

TipoDescripción
next_page_urlstringURL of the next page.
previous_page_urlstringUrl for the previous page.
has_morebooleanTrue if exist more pages
objectstringObject type for this case, List
dataarrayCollection with the result
//Pagination example

{
  "next_page_url": "https://api.conekta.io/customers/cus_zzmjKsnM9oacyCwV3/sources?next=src_43EDwrLSqoaRE3We2&limit=5",
  "previous_page_url": "https://api.conekta.io/customers/cus_zzmjKsnM9oacyCwV3/sources?previous=src_2fw8YeLSqoaGEYTn3&limit=5",
  "has_more": true,
  "object": "list",
  "data": [{
    "id": "src_2fw8YeLSqoaGEYTn3",
    "object": "source",
    "type": "card",
    "created_at": 1597069683,
    "last4": "4242",
    "exp_month": "12",
    "exp_year": "19",
    "brand": "VISA",
    "name": "Jorge Lopez",
    "parent_id": "cus_zzmjKsnM9oacyCwV3"
  }]
}