Get a filtered list of transactions
Monday, April 18, 2022 at 09:00amHello!
I would like to know if there is any endpoint within the REST API to which I can send a parameter and get a list of transactions whose name contains that parameter.
For example: https://sandbox.esignlive.com/api/packages?filter=FILTER_NAME_TRANSACTION
Thank you!
Reply to: Get a filtered list of transactions
Monday, April 18, 2022 at 01:02pmHi Monti,
You'll need another two parameters "from" and "to" to paginate all the results, for example:
GET /api/packages?from=1&to=100&search=keyword
GET /api/packages?from=101&to=200&search=keyword
Duo
Reply to: Get a filtered list of transactions
Monday, April 18, 2022 at 10:03amHi Monti,
Yes, you can use the parameter "search" to filter the transactions. By default, a wildcard search will be done in the transaction name and description for the search value, and if you additionally set the parameter "&searchtype=exact", a restrictive searches will be applied.
Duo
Reply to: Get a filtered list of transactions
Monday, April 18, 2022 at 12:57pmThanks for your quick response!
I tried to perform a query with the "search" parameter, which returned a 200 code response with the content:
{
"count":688,
"results":[
{
"autocomplete": true,
"consent": "default-consent",
"description": "Firma rápida",
"documents": [
....
],
... etc
}
]
}
This is a correct answer? That is, the API found 688 transaction results that contain the name/description "a", but in the "results" field it returns an array with only 1 element.
Reply to: Get a filtered list of transactions
Monday, April 18, 2022 at 01:07pmExcellent!
Thank you!