Skip to main content

Pagination

List endpoints (GET /clients, GET /transits, GET /events/{id}/passes…) are paginated.

ParameterDefaultConstraints
page1integer ≥ 1
limit10integer from 1 to 1,000
Second page of 100 customers
GET/clientsTry it
curl -L 'https://api-v2.test.eldowallet.fr/clients?page=2&limit=100' \
-H 'Accept: application/json' \
-H 'x-lang: en' \
-H 'Authorization: Bearer <token>'
{
"docs": [{"_id": "…", "firstName": "Camille", "lastName": "Martin"}],
"totalDocs": 1342,
"limit": 100,
"page": 2,
"totalPages": 14,
"pagingCounter": 101,
"hasPrevPage": true,
"hasNextPage": true,
"prevPage": 1,
"nextPage": 3
}

Iterate over a whole list​

Iterate over all pages
async function* allClients(token) {
let page = 1;
while (page) {
const res = await fetch(`https://api-v2.test.eldowallet.fr/clients?page=${page}&limit=500`, {
headers: {Authorization: `Bearer ${token}`},
});
const body = await res.json();
yield* body.docs;
page = body.nextPage; // null on the last page
}
}
For a full export

To export all your customers, use the background CSV export instead: POST/csv-operations/export-csv.

API news, once a month

New endpoints, upcoming changes, guides and use cases. No spam, one-click unsubscribe.

Report a technical problem

An API error, a pass that does not update, an email that does not arrive? Describe the problem: our technical team will answer.

For a fast answer, include:

  • The method and endpoint (e.g. POST /clients)
  • The error code returned (errorCode) and the body sent
  • The date and time of the call
  • The identifiers involved (customer, template, pass)

Never include an API token or a password.

AI assistant

Beta

Loading…

AI-generated answers (Claude): double-check important details.

Sign in to use the assistant