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
Tipo | Descripción | |
---|---|---|
next_page_url | string | URL of the next page. |
previous_page_url | string | Url for the previous page. |
has_more | boolean | True if exist more pages |
object | string | Object type for this case, List |
data | array | Collection 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"
}]
}