Hi,
We can confirm there is an issue and are currently looking in to it.
What we have found so far:
v2/journalTransaction?periodId=202002
Batches= 6
Lines = 20
Metadata on each batch, all except last shows metaData count = 20
Last shows metaData = 3
v2/journalTransaction?periodId=202002&pageSize=1&pageNumber=1
Batches=1
Lines=1
Metadata count = 1
Returns correct amount of pages, but impossible to tell by metaDataCount.
v2/journalTransaction?periodId=202002&pageSize=2&pageNumber=1
Batches=1
Lines=2
Metadata count = 2
v2/journalTransaction?periodId=202002&pageSize=2&pageNumber=3
Batches = 2
Lines = 2
Metadata Count = 20 on first batch
Metadata = 1 on last batch
Conclusion:
MetaData Count should only be included once in the response and should reflect total amount of lines in dataset. It seems like the last returned batch gets a metaData count that is the amount of lines in that batch, so if 1 batch is included in the response, the metaData shows how many lines that batch includes in the result. If there are several batches, the first batches all return the correct metaData count, but the last batch contains a metaData count that reflects the remaining lines.
We are reporting this to the development team and will get back to you when we have more information.
... View more