REST API issue - offset
2020-05-14
Hello,

I recognized that when I am using the REST API to collect the latest Invoices after a special sequence number, that the offset filter is not working.

Here is the calling URL:

http://:13011/api/1/IVVc
?updates_after=7091318

&fields=sernr,invdate,custcode,addr0,addr1,sum1,sum4,curncycode,artcode,quant,price,sum
&offset=100
&limit=100

Everything except the offset is working fine. It's coming the expected data, with the issue I could set offset to zero, or to a number, it always starts from the beginning.

Has anyone an idea?

Hector Parada
2020-05-22
Hello,

Please see the below segment.

offset and limit

If the result is larger than the api user can handle in one request, the result can be retrieved in smaller pieces.

The offset will skip the specified number of records before producing output and the limit will restrict the number of records retrieved.

Example


http://hostname/api/1/IVVc?offset=0&limit=5

http://hostname/api/1/IVVc?offset=5&limit=5

http://hostname/api/1/IVVc?offset=10&limit=5


will retrieve the 15 first invoices in 3 separate requests.

offset and limit works together will all other parameters


Best Regard
该话题已关闭,无法再评论。请新建话题。
返回到列表
最新留言
Hi there, There is currently no GUI client for Linux. Only a server version is available. Than...
17:35 3 九月 2025
Hi, When I add a labour service item (cost 10 per Hr) to production, the NL posting is incorrect....
08:10 19 八月 2025

我们在正常工作时间对论坛进行维护,旨在24小时内回复所有问题

您可以通过选择主题列表右上角的 "星星 "图标来订阅本论坛的任何帖子的通知。你必须登录后才能使用这一功能。