When querying GET /voucher-storage/voucher-lines with a limit parameter, if the number of results matching the query is above the limit, the returned totalRecords field will give the number of matching results instead of the number of records returned.
Either the API documentation for totalRecords is wrong, or the returned value is wrong.
Edit: totalRecords as the total number of records matching the query is being used here, so it looks like this is an issue with the API documentation.
Currently and AFAIK this issue is not causing any user-visible problem. It was only found when investigating
MODINVOICE-312, but was not the source of that issue.
- Find which one is wrong
- Fix it + look for other similar issues for other API calls