Skip to main content
Docs

Pagination

Every list endpoint uses cursor pagination and answers the same shape.

json
{ "object": "list", "data": [], "has_more": false, "url": "/api/v1/b2b/mandates" }

Parameters#

Parameters
NameTypeDescription
limitintegerItems per page, 1 to 100. Default 20.
starting_afteridThe id of the last item you received. Returns the next page.
ending_beforeidThe id of the first item you received. Returns the previous page. Do not send both cursors.

Lists are newest first by default. Record entries are ordered by seq (newest first, or order=asc) and their cursors are rec_ ids. A cursor that is not in the filtered result answers 400 invalid_cursor.

js
let cursor;
do {
  const url = new URL("https://holdyn-fb2e34c7cbae.herokuapp.com/api/v1/b2b/mandates");
  url.searchParams.set("limit", "100");
  if (cursor) url.searchParams.set("starting_after", cursor);
  const page = await (await fetch(url, { headers })).json();
  for (const mandate of page.data) handle(mandate);
  cursor = page.has_more ? page.data.at(-1).id : undefined;
} while (cursor);

Filters#

Filters are query parameters named in each endpoint's entry.

  • Multiple values: repeat the parameter or use commas. status=active&status=defaulted is the same as status=active,defaulted. Each value is checked against the field's allowed values.
  • Ranges: use brackets. Timestamps: created[gte]=2026-11-01T00:00:00.000Z&created[lte]=2026-11-30T23:59:59.999Z. Dates: due_date[gte]=2026-11-01.
  • Search: search is at most 100 characters and matches the start of the indexed field, case-insensitively. It is not a full-text search.
  • Unknown values answer 400 parameter_invalid.

Expansion#

Some fields hold the id of another object. Ask for the whole object with expand[], repeated, or expand=a,b. Expansion goes one level deep and only on fields marked expandable in the reference; others answer 400 invalid_expand.

A child list such as collections or stages is null unless expanded, except where an endpoint says otherwise (GET /mandates/:id expands collections and stages by default).

Dates and amounts#

Timestamps are ISO 8601 in UTC with milliseconds. Calendar dates (*_date, *_on) are YYYY-MM-DD in the tenant's time zone; do not parse them as instants, or they shift by a day in some time zones. Amounts are integer minor units next to a lowercase currency.

Pagination · Holdyn Business docs