Pagination
List endpoints return paginated results to improve performance. You control pagination using query parameters:
page
1
-
Page number (1-based)
per_page
50
100
Items per page
Example request:
GET /v2/customers?page=2&per_page=25Response format:
{
"data": [
{ "id": "cus_123", "email": "john@example.com", ... },
{ "id": "cus_124", "email": "jane@example.com", ... }
],
"meta": {
"pagination": {
"page": 2,
"page_size": 25,
"total_count": 150,
"total_pages": 6,
"has_more": true
}
}
}Note that pagination is nested inside meta, not at the top level.
The meta.pagination object provides:
page: Current page numberpage_size: Items per page (same as theper_pageparameter)total_count: Total number of items across all pagestotal_pages: Total number of pageshas_more: Whether another page follows this one
has_more is the value to loop on. Paging until a request returns an empty data array works, but costs one extra request per resource per run, and every request counts against your quota.
Pagination is offset-based. There is no cursor, and no next link in the envelope — advance by incrementing page.
Last updated