We are using docusign for people to sign consent forms that register on our web site and I was pointed to the Embedded Signing API.
From what I understood, I had to create an envelope which I have done.
I am using the .Net examples for this.
Login through the API fine, but I get the following error trying to get the URL back from the API:
ENVELOPE_IS_INCOMPLETE The Envelope is not Complete. A Complete Envelope Requires Documents, Recipients, Tabs, and a Subject Line.
Here is my envelopeDefinition xml:
string requestBody = "<envelopeDefinition xmlns=\"http://www.docusign.com/restapi\">" +
"<accountId>" + accountId + "</accountId>" +
"<status>sent</status>" +
"<emailSubject>API Call for Embedded Sending</emailSubject>" +
"<emailBlurb>This comes from C#</emailBlurb>" +
"<templateId>[TEMPLATE ID FROM DOCUSIGN]</templateId>" +
"<templateRoles>" +
"<email>testregister@notrealurl.com</email>" + // NOTE: Use different email address if username provided in non-email format!
"<name>testregister@notrealurl.com</name>" + // username can be in email format or an actual ID string
"<roleName>Signer</roleName>" +
"</templateRoles>" +
"</envelopeDefinition>";
I saw another posting about needing a clientUserId here:
But I am not sure how to implement in the envelopeDefinition.
Please help!