[英]DocuSign API Explorer - Creating a draft envelope with a document and recipient
I am trying to create aa draft envelope with a document and a recipient through DocuSign API Explorer using my DocuSign Developer Sandbox account. 我正在尝试使用我的DocuSign开发人员沙箱帐户通过DocuSign API Explorer创建一个带有文档和收件人的草稿信封。
Despite a SUCCESS response, the actual envelope contains neither the document or the recipient I included in the Request. 尽管有SUCCESS响应,但实际的信封中既没有包含文档也没有包含我包含在请求中的收件人。 Where am I going wrong?
我要去哪里错了?
Here is the Request XML: 这是请求XML:
<envelopeDefinition
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.docusign.com/restapi">
<documents>
<documentBase64><Base64BytesHere></documentBase64>
</documents>
<emailSubject>Test from API Explorer</emailSubject>
<recipients>
<signers>
<email>nobody@nobody.com</email>
<name>John Smith</name>
</signers>
</recipients>
<status>created</status>
</envelopeDefinition>
You're missing some parameters for the document and recipient objects, for instance you need to add a documentId
and documentName
for the document in addition to the document bytes. 您缺少文档和收件人对象的某些参数,例如,除了文档字节外,还需要为
documentId
添加documentId
和documentName
。
Here's what a full XML request should look like: 完整的XML请求应如下所示:
<envelopeDefinition xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.docusign.com/restapi">
<emailSubject>Test Subject</emailSubject>
<documents>
<document>
<name>document.pdf</name>
<documentId>1</documentId>
<documentBase64><Base64BytesHere></documentBase64>
</document>
</documents>
<recipients>
<signers>
<tabs>
<signHereTabs>
<signHereTab>
<pageNumber>1</pageNumber>
<documentId>1</documentId>
<xPosition>100</xPosition>
<yPosition>100</yPosition>
</signHereTab>
</signHereTabs>
</tabs>
<routingOrder>1</routingOrder>
<recipientId>1</recipientId>
<name>My Name</name>
<email>email@email.com</email>
</signers>
</recipients>
<status>created</status>
</envelopeDefinition>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.