docusign / recipe-010-webhook-python

eSignature API Recipe that demonstrates the use of DocuSign Connect (webhook) functionality in Python. For additional recipes see: https://github.com/docusign/docusign-rest-recipes
1 stars 1 forks source link

Missing DocumentPDF node #3

Closed StevenXL closed 6 years ago

StevenXL commented 6 years ago

Hello,

I would like to extract the signed PDFs from a webhook. I am looking at this recipe.

Unfortunately, the XML sent via the webhook does not contain a DocumentPDFs node, and neither does the example XML linked to in the docs.

Am I missing something, or has the recipe gone out of date?

Thank you for any help.

LarryKlugerDS commented 6 years ago

Hi Steven,

I apologize for not seeing your issue until now.

The documents are only included in the Connect notification messages if they are requested when the Connect subscription (at the account level) or the eventNotification (for per-envelope subscriptions) requests them.

As a best practice, it is recommended to not include the PDF documents in the notification messages since that causes the size of the notification messages to balloon. Instead, use the notification message to trigger your code to download the documents from DocuSign via the EnvelopeDocuments::get API method.