Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retrieve signed document using DocuSign API

Tags:

docusignapi

I want to download a document signed recipient using DocuSign API (REST). I am using the following endpoint as per the documentation.

HTTP request

GET /v2/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}

Request Headers

X-DocuSign-Authentication:{"Username": <Username>,"Password": <Password>,"IntegratorKey": <IntegratorKey>}
Accept: application/pdf
Content-Transfer-Encoding:base64

I got document in a base64 format which I am able to download but when try to open that file using PDF viewer we got the following message:

The file is blank and some error related to signature, check following screenshot

PDF open error snapshot

Are there any parameters missing while downloading the document? Please help. Thanks.

like image 341
Bhagyashri Avatar asked Nov 01 '25 01:11

Bhagyashri


1 Answers

See this link for EnvelopeId stamp control

https://support.docusign.com/en/articles/How-do-I-move-the-Envelope-ID-Stamp-on-my-documents

In DEMO environment you will always have the "demonstration only" stamp on the document. This will not be present when you goto prod environment

like image 124
Praveen Reddy Avatar answered Nov 04 '25 10:11

Praveen Reddy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!