mikcanf

Trashed Pkgs

0 votes

Hello, I was using OneSpan app report "Account Summary Report" the only report available from top level "Reports" drop down.

The person I looked at had 1 x Draft +  1 x In Progress + 11 Complete for total of 13 Pkgs.

There was also a count of 2 items "Trashed".

I retrieved all 13 Pkg's but none of them seemed to be "Trashed" i.e. all had -> "trashed": false,

How do I see/retrieve Trashed Pkg's ???  There must be some indication as the report showed 2 Trashed items.


Reply to: Trashed Pkgs

0 votes

Hi Mike,

 

Have you retrieved these 13 packages through API "GET ​/api​/reports​/completion?from={fromDate}&to={toDate}" ? If that's the case, I am experiencing the same that if you didn't specify any status, this API only returns packages that are NOT trashed.

To list those trashed packages, add an additional parameter "GET ​/api​/reports​/completion?status=trashed&from={fromDate}&to={toDate}"

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to:

0 votes

API call I was used->{{TheHost}}/api/packages/?from=1&to=100

This seems to pull Pkg's with multiple status's.  I thought you mentioned Trashed was not a status, yet API you showed seems to use like it is a status, so I'm a bit confused.  I was hoping to use a (single) API call to return ALL Pkg's, regardless of status.

 


Reply to: Trashed Pkgs

0 votes

I see. Yes, "Trashed" is not a package status, but since these packages won't by default be returned by Completion Report API or Package Retrieval API, it's provided as a parameter and allows you to explicitly pull them.

In terms of the package retrieval API "GET /api/packages/?from=1&to=100", it doesn't return two types of packages:

- trashed packages, regardless of their original status

- packages that are not created by the API Key holder, but require your signature

To get trashed packages, you need an additional parameter "GET /api/packages/?query=trashed&from=1&to=100"

To get packages that required your signatures but not created by you, you need to use "query=inbox", which includes all completed and sent packages either created by you or you received.

 

Duo

 

Duo Liang OneSpan Evangelism and Partner Integrations Developer


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