简体   繁体   English

DocuSign API Explorer-创建包含文档和收件人的草稿信封

[英]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>&lt;Base64BytesHere&gt;</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>

Here is the empty envelope screenshot 这是空的信封截图

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添加documentIddocumentName

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>&lt;Base64BytesHere&gt;</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.

相关问题 如何按顺序将docusign草稿信封发送给收件人? - How to send docusign draft envelope to recipient in sequence? Docusign REST API获取文档信封的收件人URL - Docusign REST API Getting recipient URL for document envelope 使用Rest api在Docusign中更正信封的接收者 - Correct Recipient for envelope in Docusign using Rest api DocuSign PHP API从模板创建信封,然后添加文档 - DocuSign PHP API Creating Envelope from Template then add Document DocuSign API-使用带有批准按钮的文档创建信封 - DocuSign API - Creating an envelope with a Document that has an Approve button 通过收件人锁定,通过docusign API将信封重新发送给收件人 - Resend envelope to recipient through docusign API blocked due to locked recipient DocuSign信封处于“已创建”状态,将其存储在草稿文件夹中,当我单击“发送”时,收件人将不会收到信封。 - DocuSign Envelope in status 'Created' which stores it in draft folder and when I click Send the envelope is not received by the recipient. DocuSign Api在生产中创建信封 - DocuSign Api creating envelope in Production DocuSign API-使用textCustomField创建信封 - DocuSign API - Creating an envelope with a textCustomField DocuSign,需要通过单个信封将不同的文档发送给多个收件人 - DocuSign , Need to send different document to multiple recipient through single envelope
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM