Skip to main content

I have written a C# API that receives a payload from the DocuSign Connect (Webhook).   I have no issue in receiving events when a document is changes (event for signatures, deleted, void, completed, etc...).   The issue is that when I do received the JSON payload, I have no idea what model class I need to deserialize (using Newton Soft JSON utilities) into.  Without the model, I cannot extract any properties (without a model) from the deserialized string and a C# and a compilation error occurs.

Is there a proper model I can deserialize the JSON string to?

Hello Terry,
 
Thank you for contacting Docusign Customer Support. 

You can first deserialized into a string to read the event type:
 
"event": "envelope-completed",

"event": "envelope-delivered",

"event": "envelope-sent",
then, based on the event type you can go into the right classes.

Here is a list off the event types:
Webhook event triggers | Docusign

We hope this helps. 

 
Best regards,
 
Adrian | Docusign Developer Support

Reply