【问题标题】:DocuSign API Explorer - Creating a draft envelope with a document and recipientDocuSign API Explorer - 创建包含文档和收件人的草稿信封
【发布时间】:2017-06-07 02:35:28
【问题描述】:

我正在尝试使用我的 DocuSign 开发人员沙盒帐户通过 DocuSign API Explorer 创建一个包含文档和收件人的草稿信封。

尽管有 SUCCESS 响应,但实际的信封既不包含我在请求中包含的文档或收件人。我哪里错了?

这里是请求 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

【问题讨论】:

    标签: docusignapi


    【解决方案1】:

    您缺少文档和收件人对象的一些参数,例如,除了文档字节之外,您还需要为文档添加 documentIddocumentName

    完整的 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>
    

    【讨论】:

    • 感谢 Ergin,我使用了您的 XML,并获得了要附加的文档,但仍然没有收件人,也没有文档上的 SignHere 字段。不确定是否重要,但我的源文档是 TXT。
    • 忽略收件人部分,我在请求中的收件人周围添加了 ,现在有了收件人。仍在 SingHere 领域苦苦挣扎....
    猜你喜欢
    • 2013-12-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-08-24
    相关资源
    最近更新 更多