Silvana Fontana
Silvana Fontana

Reputation: 1

DocuSign REST API - Retrieve partially signed document

I'm using REST API for Embedded Signing. I need to obtain the signed document when the first signer (of N) signed. When creating the envelope, I'm sending the recipientEvents array as follows:

"recipientEvents": [

    {
      "includeDocuments": "true",
      "recipientEventStatusCode": "completed"
    }
] 

In my endpoint I'm receiving a base encoded document in the XML response (see below) for the RecipientStatus with status completed. However this is not the document signed by the first signee but the original one sent along with the create envelope json. How can I receive the signed document from DS?

  <DocumentPDFs>
      <DocumentPDF>
         <Name>Test2.pdf</Name>
         <PDFBytes>JVBERi0xLjQKJfv8/f4KJVdyaXRpbmcgb2JqZWN0cy4uLgoxNCAwIG9i ---</PDFBytes>
         <DocumentID>1</DocumentID>
         <DocumentType>CONTENT</DocumentType>
      </DocumentPDF>
   </DocumentPDFs>

Upvotes: 0

Views: 521

Answers (1)

Inbar Gazit
Inbar Gazit

Reputation: 14050

You will have to make a REST API call for the document from you server in this case because it's a recipient event and the entire envelope is not complete yet. This is what it looks like:

GET https://demo.docusign.net/restapi/v2.1/accounts/{ACCOUNT_ID}/envelopes/{ENVELOPE_ID}/documents/{DOCUMENT_ID}

Upvotes: 0

Related Questions