My Products
Help
guidol
CHAMPION *

Determine maxPageSize on CustomerInvoices API

by guidol

The customerinvoices API has maxpagesize of 500, but I seem unable to determine that beforehand actually executing the request.

 

The metadata returned in the JSON upon the first request indicates that it is 500.

 

How can I query the Swagger to known beforehand that the code could use 500 instead of 100?

 

PS. Documentation in Swagger still reads 100:

Get a range of Invoices - ScreenId=AR301000
Please use a page size lower or equal to the allowed max page size which is 100
If pagesize is greater than 100, only 100 records will be returned
Change log:
2020-May:Added forced pagination

1 REPLY 1
Accepted solution
Magnus Johnsen
VISMA

by Magnus Johnsen

Hi,

 

The maxPage size can change at any time depending on the need, this will be reflected the upcoming release of such a change, please read this from the news page:

Enforcement of pagination on API endpoints and change of maxPagesize - September release (8.25)