rdediana | Posts: 23

REST API - Packages response w/ filters

0 votes
Hello, when i execute the following REST API call (https://sandbox.esignlive.com/api/packages) the results includes the current total transaction count, with only the most recently package / transaction json data. is this the expected behavior? Having the correct total quantity, but only the most recently created package? when i use the filtering options: http://docs.esignlive.com/content/c_esignlive_integrator_s_guide/rest_api/packages.htm IE: https://sandbox.esignlive.com/api/packages?search=mydemo the results are still accurate: Quantity is 1 (as expected), however, the returned package is still the most recently created package / transaction? cheers.

harishaidary | Posts: 1812

Reply to: REST API - Packages response w/ filters

0 votes
Hey, Yes that is indeed the default behavior when you don't specify the optional query parameters "from" and "to". If you want to retrieve the first 100 packages, for example, you can make the following request:
GET https://sandbox.esignlive.com/api/packages?from=0&to=100
Also, if you want to retrieve all your packages, you can make a loop with the "from" and "to" as variables and retrieve 100 packages at a time. Let me know if you have any other questions.

rdediana | Posts: 23

Reply to: REST API - Packages response w/ filters

0 votes
thank you for the clarification. this definitely addresses my requirements.
GET https://sandbox.esignlive.com/api/packages?from=0&to=100
thanks again for your assistance. Regan

harishaidary | Posts: 1812

Reply to: REST API - Packages response w/ filters

0 votes
My pleasure Regan :)

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off