Pagination

Pagination in our API can be achieved using the skip and take parameters. However, it's important to note that using skip/take pagination has some disadvantages:

  • These are not stable cursors: if new elements are added in the meantime, the second page may contain elements that were previously present on the first page.
  • The skip parameter is limited to 1000 elements as this operation is relatively expensive.

As an alternative, some resources offer cursor-based pagination, which is faster and provides stable cursors. For example, 'https://app.billwerk.com/api/v1/contracts/?from=50f6b3d7eb596a1268f5651e'

👍

Cursor-based pagination is not only stable but also significantly faster compared to skip/take pagination.