我们正在使用docusign人们签署在我们网站上注册的同意书,有人指出了嵌入式签名API。
据我了解,我不得不创建一个信封。
我为此使用.Net示例。
可以通过API正常登录,但是在尝试从API取回URL时出现以下错误:
ENVELOPE_IS_INCOMPLETE The Envelope is not Complete. A Complete Envelope Requires Documents, Recipients, Tabs, and a Subject Line.
Run Code Online (Sandbox Code Playgroud)
这是我的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 …Run Code Online (Sandbox Code Playgroud)