DocuSign GET completed document in binary base64 format? - base64

Is it possible to GET the completed document in binary base64 format with the REST API?
I can retrieve the completed document in as a PDF, but I need it in base64 format. This is for our automated process.
This is the Request URL
https://demo.docusign.net/restapi/v2/accounts/xxxx/envelopes/xxxx/documents/1/
DocuSign support suggested that I post the question here.
Any help would be greatly appreciated.

If your documents are not very big, you can use DocuSign Connect which is like a WEBhook, to get the document in base64 format. Also via API, pass header as Content-Transfer-Encoding: base64 to get document in base64 format

Related

Sending a mail with attachment via Gmail API using Postman

What I am doing
I am strictly following the Gmail API guide - https://developers.google.com/gmail/api/guides/sending
https://developers.google.com/gmail/api/reference/rest/v1/users.messages/send
From the sample code given for both sending a simple mail and mail with an attachment. I learned from these codes that we need to send Base64 encoded value as "raw" as per RFC-2822.
Sending mail without attachment
I am able to encode the below RFC 2822 format in Base64 and send mail successfully.
From: automationreportbyamod#gmail.com
To: automationreportbyamod2#gmail.com
Subject: Saying Hello
This is a message just to say hello.
So, "Hello".
Sending mail with attachment
From the example code with the attachment, I see that we need to encode email content with the attachment in Base64. But if we want to do the same using Postman, how can I encode a simple format with a file to be uploaded?
Note - As explained here, I have tried the raw as text and passed the attachment file as Base64 and that is working as well. But I want to make it work as shown in the example code here using Postman.

Docusign Connect Configuration settings not returning PDF

I have a standard custom connect setup that has been working really well for us. We now want to store the signed document in our app. So I go and edit the settings and click on Document PDFs in the include section. However, there is no change in the XML that is in the callback. I would have assumed that the base64 encoded document would be there just like when I send it.
Is it somewhere else? Ho do I get a copy of the document once ALL recipients have signed?
Thank You.
Sorry you're having this problem. I suggest creating a new Connect subscription/config and sending it to https://www.webhookapp.com/ as a test.
If the payload is as you expect, then update the url to be your webhook listener.
It could also be that you're not parsing the xml fully. The documents are included at an initial object level within the xml.
I do know that if you request the Certificate of Completion without asking for the Document PDFs themselves, it won't work. I haven't seen your problem as described though.

Bulk sending using DocuSign REST API V2

For bulk sending I followed the steps mentioned in DocuSign user guide (Reference: https://support.docusign.com/guides/cdse-user-guide-advanced-sending-using-the-bulk-recipient-feature). However I would like to implement the same using REST API. Please suggest how to go about it. Any reference link would really be helpful.
In my application I am using REST API V2.
After using POST /accounts/[accountnumber]/envelopes to create a draft envelope, use the PUT /accounts/[accountnumber]/envelopes/[envelopeID]/recipients/[recipientID]/bulk_recipients to upload your csv file.
Or more specifically, you don't send the file, you send the contents. You Content-Type for the PUT is text/csv. The body of the put would be the csv contents just like you'd be viewing them in notepad.
After the put, use the envelopes POST again to change the status to "sent" and it's done.
The response from the final call provides a bulk send batch ID that can be used for checking status.
Information on utilizing bulk send with the DocuSign REST API can be found here.

docusignapi Add document binary

I'm trying to add a document to envelope. However I have that document in a blob column in the Oracle database. I tried to load that in the blob variable, convert to clob (using blob2clob oracle function) and send the information. however, I always get the document empty on docusign. So, I was thinking a way to send the information in binary form.
Does somebode know the correct setup to sent taht or any help with this?
Thank you,
Jose
Give this thread on the DocuSign community a look and see if it will resolve your issue

Is it possible to embeed pdf document in DocuSign envelope from the data:data:application/pdf url?

I have a pdf generator which generates a pdf and directs to data url, is it possible for me to take the pdf from dataurl and add as document ?
It's not possible to simply specify the URL where a file resides, and have DocuSign automatically read that file and add it to an Envelope. Instead, your application will need to read the file and then write the byte stream to the "Create Envelope" API call request body, when calling DocuSign to create the envelope.
As Kim mentions, you can not specify the document through a URL, however if you write the document bytes to a local file, then make the Request Signature on Document API call and supply that file in the request, you would be able to create a DocuSign envelope with the PDF(s) inside it.
Have you seen the DocuSign API Walkthroughs? There's sample Node.js code (and 5 other languages) that you can plug in your credentials and run- this gist in particular is for the Request Signature (Create Envelope) API call:
https://gist.github.com/Ergin008/5505764
And you can find the all the other sample code gists here:
https://www.docusign.com/developer-center/quick-start/api-explorer

Resources