Skip to content

Instantly share code, notes, and snippets.

@tomfa
Last active February 27, 2024 14:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomfa/b47ab85c40d3093c99c453286ba80243 to your computer and use it in GitHub Desktop.
Save tomfa/b47ab85c40d3093c99c453286ba80243 to your computer and use it in GitHub Desktop.
Docusign webhook xml example
<?xml version="1.0" encoding="utf-8"?>
<DocuSignEnvelopeInformation xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.docusign.net/API/3.0">
<EnvelopeStatus>
<RecipientStatuses>
<RecipientStatus>
<Type>Signer</Type>
<Email>tomas@echo.com</Email>
<UserName>Tomas Fagerbekk</UserName>
<RoutingOrder>1</RoutingOrder>
<Sent>2020-03-30T23:00:33.963</Sent>
<Delivered>2020-03-30T23:02:58.72</Delivered>
<Signed>2020-03-30T23:03:28.077</Signed>
<DeclineReason xsi:nil="true"/>
<Status>Completed</Status>
<RecipientIPAddress>81.0.170.128</RecipientIPAddress>
<CustomFields/>
<TabStatuses>
<TabStatus>
<TabType>SignHere</TabType>
<Status>Signed</Status>
<XPosition>506</XPosition>
<YPosition>865</YPosition>
<TabLabel>Signature
1_SignHere_9aaeb0e4-93d1-40b9-8aad-4d3e39c5dbba_0ce92ac5-3725-4083-9bfb-5b084df809fc
</TabLabel>
<TabName/>
<DocumentID>1</DocumentID>
<PageNumber>2</PageNumber>
</TabStatus>
</TabStatuses>
<AccountStatus>Active</AccountStatus>
<RecipientId>0ce92ac5-3725-4083-9bfb-5b084df809fc</RecipientId>
</RecipientStatus>
</RecipientStatuses>
<TimeGenerated>2020-03-30T23:03:48.0539768</TimeGenerated>
<EnvelopeID>703a7493-1234-1234-1234-123412341234</EnvelopeID>
<Subject>Tomas: Please sign this contract</Subject>
<UserName>Echo Admin</UserName>
<Email>ops+docusign@echo.com</Email>
<Status>Completed</Status>
<Created>2020-03-30T23:00:33.353</Created>
<Sent>2020-03-30T23:00:33.997</Sent>
<Delivered>2020-03-30T23:02:58.89</Delivered>
<Signed>2020-03-30T23:03:28.077</Signed>
<Completed>2020-03-30T23:03:28.077</Completed>
<ACStatus>Original</ACStatus>
<ACStatusDate>2020-03-30T23:00:33.353</ACStatusDate>
<ACHolder>Echo Admin</ACHolder>
<ACHolderEmail>docusign@echo.com</ACHolderEmail>
<ACHolderLocation>DocuSign</ACHolderLocation>
<SigningLocation>Online</SigningLocation>
<SenderIPAddress>81.1.170.127</SenderIPAddress>
<EnvelopePDFHash/>
<CustomFields>
<CustomField>
<Name>AccountId</Name>
<Show>false</Show>
<Required>false</Required>
<Value>10129024</Value>
<CustomFieldType>Text</CustomFieldType>
</CustomField>
<CustomField>
<Name>AccountName</Name>
<Show>false</Show>
<Required>false</Required>
<Value>Echo AS</Value>
<CustomFieldType>Text</CustomFieldType>
</CustomField>
<CustomField>
<Name>AccountSite</Name>
<Show>false</Show>
<Required>false</Required>
<Value>demo</Value>
<CustomFieldType>Text</CustomFieldType>
</CustomField>
</CustomFields>
<AutoNavigation>true</AutoNavigation>
<EnvelopeIdStamping>true</EnvelopeIdStamping>
<AuthoritativeCopy>false</AuthoritativeCopy>
<DocumentStatuses>
<DocumentStatus>
<ID>1</ID>
<Name>contract</Name>
<TemplateName/>
<Sequence>1</Sequence>
</DocumentStatus>
</DocumentStatuses>
</EnvelopeStatus>
<DocumentPDFs>
<DocumentPDF>
<Name>CertificateOfCompletion_703a7493-1234-1234-1234-123412341234.pdf
</Name>
<PDFBytes>Y2hlZXNl==</PDFBytes>
<DocumentType>SUMMARY</DocumentType>
</DocumentPDF>
</DocumentPDFs>
<TimeZone>Pacific Standard Time</TimeZone>
<TimeZoneOffset>-7</TimeZoneOffset>
</DocuSignEnvelopeInformation>
<?xml version="1.0" encoding="utf-8"?>
<DocuSignEnvelopeInformation xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.docusign.net/API/3.0">
<EnvelopeStatus>
<RecipientStatuses>
<RecipientStatus>
<Type>Signer</Type>
<Email>tomas@echo.com</Email>
<UserName>Tomas Fagerbekk</UserName>
<RoutingOrder>1</RoutingOrder>
<Sent>2020-03-30T23:00:33.963</Sent>
<DeclineReason xsi:nil="true"/>
<Status>Sent</Status>
<RecipientIPAddress/>
<CustomFields/>
<AccountStatus>Active</AccountStatus>
<RecipientId>0ce92ac5-3725-4083-9bfb-5b084df809fc</RecipientId>
</RecipientStatus>
</RecipientStatuses>
<TimeGenerated>2020-03-30T23:00:54.1645372</TimeGenerated>
<EnvelopeID>703a7493-1234-1234-1234-123412341234</EnvelopeID>
<Subject>Echo: contract for solar installation</Subject>
<UserName>Echo Admin</UserName>
<Email>docusign@echo.com</Email>
<Status>Sent</Status>
<Created>2020-03-30T23:00:33.353</Created>
<Sent>2020-03-30T23:00:33.997</Sent>
<ACStatus>Original</ACStatus>
<ACStatusDate>2020-03-30T23:00:33.353</ACStatusDate>
<ACHolder>Echo Admin</ACHolder>
<ACHolderEmail>docusign@echo.com</ACHolderEmail>
<ACHolderLocation>DocuSign</ACHolderLocation>
<SigningLocation>Online</SigningLocation>
<SenderIPAddress>81.1.170.127</SenderIPAddress>
<EnvelopePDFHash/>
<CustomFields>
<CustomField>
<Name>AccountId</Name>
<Show>false</Show>
<Required>false</Required>
<Value>10129024</Value>
<CustomFieldType>Text</CustomFieldType>
</CustomField>
<CustomField>
<Name>AccountName</Name>
<Show>false</Show>
<Required>false</Required>
<Value>Echo AS</Value>
<CustomFieldType>Text</CustomFieldType>
</CustomField>
<CustomField>
<Name>AccountSite</Name>
<Show>false</Show>
<Required>false</Required>
<Value>demo</Value>
<CustomFieldType>Text</CustomFieldType>
</CustomField>
</CustomFields>
<AutoNavigation>true</AutoNavigation>
<EnvelopeIdStamping>true</EnvelopeIdStamping>
<AuthoritativeCopy>false</AuthoritativeCopy>
<DocumentStatuses>
<DocumentStatus>
<ID>1</ID>
<Name>contract</Name>
<TemplateName/>
<Sequence>1</Sequence>
</DocumentStatus>
</DocumentStatuses>
</EnvelopeStatus>
<DocumentPDFs>
<DocumentPDF>
<Name>CertificateOfCompletion_703a7493-1234-1234-1234-123412341234.pdf
</Name>
<PDFBytes>Y2hlZXNl==</PDFBytes>
<DocumentType>SUMMARY</DocumentType>
</DocumentPDF>
</DocumentPDFs>
<TimeZone>Pacific Standard Time</TimeZone>
<TimeZoneOffset>-7</TimeZoneOffset>
</DocuSignEnvelopeInformation>
@cincodenada
Copy link

cincodenada commented Mar 12, 2021

Hello from a stranger on the internet (you're currently the #3 result for docusign webhook api "docusignenvelopeinformation" on DuckDuckGo!)

This is exactly what I needed to just do a basic test of the docuSign endpoint I'm working on, so thanks for posting it! And you have excellent taste in fake PDF Documents, thanks for the bonus chuckle 😄

@doctorconceptual
Copy link

thanks

@tomfa
Copy link
Author

tomfa commented Feb 25, 2022

Thanks for the comment @cincodenada - you made me happy today ❤️

@luis30n
Copy link

luis30n commented Mar 16, 2022

Hello from a stranger on the internet (you're currently the #3 result for docusign webhook api "docusignenvelopeinformation" on DuckDuckGo!)

This is exactly what I needed to just do a basic test of the docuSign endpoint I'm working on, so thanks for posting it! And you have excellent taste in fake PDF Documents, thanks for the bonus chuckle 😄

+1

@WEshalom
Copy link

Very much needed - could not find anything like this on the internet - thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment