OneSpan SDK to OneSpan REST -- Getting Signer Details
Monday, July 24, 2023 at 06:09pmWe 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
Tuesday, July 25, 2023 at 09:10amHi 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
Reply to: OneSpan SDK to OneSpan REST -- Getting Signer Details
Tuesday, July 25, 2023 at 11:20amWe 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
Tuesday, July 25, 2023 at 11:44amTo 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