anilsha

OneSpan SDK to OneSpan REST -- Getting Signer Details

0 votes

We are in process of replacing SDK with REST

We have following scenario with SDK where we give signer email and retrieving signer details as below shown JSON object
 [ { "signerStatus": { "signerID": "string", "email": "string", "status": "string", "statusReason": "string", "statusDate": "string", "signerDocumentStatuses": [ { "documentID": "string", "name": "string", "status": "string" } ] } } ]

The json has Signer details with status and reason and also signer assigned document details, we have to retrieve the unsigned documents also.
Now we want to implement the same with REST API.

please guide us in implementing the same in REST


Reply to: OneSpan SDK to OneSpan REST -- Getting Signer Details

0 votes

Hi anilsha,

 

 [ { "signerStatus": { "signerID": "string", "email": "string", "status": "string", "statusReason": "string", "statusDate": "string", "signerDocumentStatuses": [ { "documentID": "string", "name": "string", "status": "string" } ] } } ]

This JSON doesn't look like the SDK modelling to me. Could you share the original SDK code so that I can help translate into REST API?

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: OneSpan SDK to OneSpan REST -- Getting Signer Details

0 votes

We giving request as below
 

{  "Email": "testmail",  "packageID": "test package id" }

the response we are expecting is
 [ { "signerStatus": { "signerID": "string", "email": "string", "status": "string", "statusReason": "string", "statusDate": "string", "signerDocumentStatuses": [ { "documentID": "string", "name": "string", "status": "string" } ] } } ]

Requirement is to get signer status along with the documents that assigned to the signer.

We are using multiple sdk methods to get above data
ossClient.PackageService.GetDocuments(packageId, signerId)
ossClient.GetSigningStatus

 


Reply to: OneSpan SDK to OneSpan REST -- Getting Signer Details

0 votes

To get document list by signer id, get the full package JSON:
GET /api/packages/{packageId}
Loop through the "documents" array > "approvals" array > filter by "role". 

If you are looking for querying signing status of a particular signer and document, use this API:
GET /api/packages/{packageId}/signingStatus?signer={signer_id}&document={document_id}

 

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