docusignapidocusignconnect

Is it guaranteed to get the latest signed document after receiving DocuSign Event Notification 'Completed'?


Our integration with Docusign is set up to receive Docusign event notifications per envelope like this:

new EventNotification()
        {
            Url = callbackUrl,
            UseSoapInterface = "false",
            IncludeEnvelopeVoidReason = "true",
            IncludeTimeZone = "true",
            SignMessageWithX509Cert = "true",
            RequireAcknowledgment = "true",
            EnvelopeEvents = new List<EnvelopeEvent>,             
            RecipientEvents = new List<RecipientEvent>
            {
                new RecipientEvent{ RecipientEventStatusCode = "Completed"},
                new RecipientEvent{ RecipientEventStatusCode = "Declined"}
            }
        };

After receiving notification when a signer signs, we download the document from DocuSign using DocuSign C# client like this

        var envApi = new EnvelopesApi(config);
        var documentContent = await envApi.GetDocumentAsync(account.AccountId, envelopeId, "combined");

In many cases intermittently we don't get the final document that contains the signature of the last signer.

Do you have to listen to another event in order to download the latest version?


Solution

  • This is a known issue that we (DocuSign) are working on to fix. Currently there is a race condition between the Envelope Complete notification being sent and the final completion of the envelope's processing.

    Until the problem is solved, your software could wait a minute (or 2 minutes if you want to be conservative) after receiving the notification before it makes the document download request.

    I will update this answer as I receive more information from DocuSign Engineering.