Search

Maximum page size for list endpoints in Receivables API

The list endpoints of the Reskontravahti API now return at most 1000 items per page:

The default page size stays 10. A per_page above 1000 is not rejected but treated as 1000, and the X-Per-Page response header shows the page size that was actually used. To fetch all items, request page=1, page=2, and so on until X-Page is greater than or equal to X-Total-Pages.

A per_page or page below 1 is now treated as 1 instead of causing an error or an invalid response.

On GET /v1/message_threads with the unseen parameter, X-Total and X-Total-Pages now count only the threads that match the filter. Before, they counted all threads.

On all list endpoints, items with the same value in the sort field, for example the same due_date or paid, now always come in the same order. Before, their order could differ between page requests, so paging through a list could return an item twice and skip another.

Check out Swagger API documentation for details.

Published
Change Type
Changed
Swagger Links (swagger.maventa.com)
Back to top