0
votes

I am trying to download each completed document signed using docusign_rest gem, but there is no where is documentation about how to do it.

The following post says that DocuSign Web Services API 3.0 SDK can Retrieve the completed PDF for each separate document in an envelope.

Does docusign_rest support v3 of docusign SDK?

I did google search many times but not found a post where I could download the completed document using ruby.

Thanks

2

2 Answers

1
votes

The latest version (0.3.1) of the docusign_rest gem now has a get_combined_document_from_envelope method method that will return the combined document.

0
votes

I don't believe DocuSign has an official Ruby gem/SDK so I'm guessing you're using a community developed one? If so please link to it.

If that gem does not allow the downloading of completed documents you can just add it in. It's just one REST API call to download a completed doc, see this page from the API Documentation:

Retrieving Envelopes and Documents

The call is just a simple GET request to the /envelopes/{envelopeId}/documents/combined URI. The raw request would look something like this:

GET http://{server}/restapi/{apiVersion}/accounts/{accountId}/envelopes/{envelopeId}/documents/combined

X-DocuSign-Authentication: <DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><IntegratorKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/pdf
Content-Type: application/json