How it works
Every paginated response carries ametadata object with two cursors and one flag:
after: points to the next page;nullon the last page.before: points to the previous page;nullon the first page.has_more: whether a next page exists.
after or before as a query parameter of the next request to move forward or backward. They are mutually exclusive: send only one of them per request.
Endpoints that accept a limit query parameter return 50 records per page by default and at most 100.
Document listings are also bounded in time: GET /v2/documents/in, GET /v2/documents/out and the refund listings require from_datetime and to_datetime, so a page is always taken from the period you ask for.
Example
All examples use the sandbox base URLhttps://api.sandbox.trio.com.br. The metadata of a paginated response looks like this:
after cursor:
Coming from V1? V1 named the flag
has_next. On V2 it is has_more.Next steps
- Date and time: the format of
from_datetimeandto_datetime. - List receivables: a paginated endpoint in the API reference.

