peterzog | Posts: 109

Final Document URL

0 votes

Does the SDK provide a method to get a link to download the final document from OneSpan's servers? I cannot find it. Thanks!


Approved Answer
Duo_Liang | Posts: 3776

Reply to: Final Document URL

0 votes

Hi Peter,

 

Typically OneSpan Sign sends signing URL link (same as the "Go to Document" link in the activation email) to the signers and have them download signed documents from there. 

 

For the transaction owner (especially to download evidence summary), you can either retrieve a user token (or sender token) and build below formulas:

https://sandbox.esignlive.com/auth?authenticationToken={userToken}&target=https://sandbox.esignlive.com/api/packages/{packageId}/documents/zip
https://sandbox.esignlive.com/auth?authenticationToken={userToken}&target=https://sandbox.esignlive.com/api/packages/{packageId}/evidence/summary

Note: user/sender token expires in 30 minutes, and is an OTP.

 

Duo

 


Duo_Liang | Posts: 3776

Reply to: Final Document URL

0 votes

Hi Peter,

 

I believe SDK includes the methods to download signed documents and evidence summary, see below:

 

for(ESignLiveAPIObjects.Document document: pack.documents){
    Blob signedDocument = sdk.downloadDocument(packageId, document.id);

    ......
}

Blob evidenceSummary = EncodingUtil.base64Decode(sdk.getAudit(packageId));

 

But from the question, are you talking about building a download link and share to the user (internal or external)?

 

Duo


peterzog | Posts: 109

Reply to: Final Document URL

0 votes

Thanks for the response! Yes, I am thinking about building the download link for internal and external users.  We have been able to successfully download the file. 


peterzog | Posts: 109

Reply to: Final Document URL

0 votes

Thanks for the response! Yes, I am thinking about building the download link for internal and external users.  We have been able to successfully download the file. 


peterzog | Posts: 109

Reply to: Final Document URL

0 votes

One question on this.  Once a package is completed (all signers signed) and we get a new "Go to Document" link (via Get Signing URL) I am seeing the "Review Documents" goes to a document with everything populated except the e-sign seal (the page rightfully says "Signing Complete") and if I click "Download Documents" I get original template PDF with editable and empty merge fields in the zip file. I also notice that when download the final package from the server portal it's the same. 

Are there any settings for downloading and viewing final document? Note, the download document API gets the full final document with the e-sign digital signature as desired.

Here is an example package in our sandbox: FB827ta61vhtDvGg-1q0DB7w4H0=

What I see:

ss

I am expecting to see the purple seal and digital signature.

 

 


Duo_Liang | Posts: 3776

Reply to: Final Document URL

0 votes

Hi Peter,

 

For this transaction FB827ta61vhtDvGg-1q0DB7w4H0=, I can confirm that the transaction has been completed. If it's reproducible, could you send an example link to [email protected], where you didn't see the signature get signed, and still downloads the original PDF which is still editable?

 

Duo


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