我正在尝试使用docusign和JSON从文本文档中创建一个信封,但是我们会收到以下错误代码
"errorCode":"ENVELOPE_IS_INCOMPLETE","message":“信封不完整。完整的信封需要文件、收件人、表格和主题行。”
谁能告诉我我错过了什么吗?
请在我们发送的邮件下面找到。
POST https://demo.docusign.net:7801/restapi/v2/accounts/XXXX/envelopes
Content-Length: 742
Content-Type: multipart/form-data; boundary=8B10626873356827771077AAF6D55D6E0
Connection: Keep-Alive
Accept: application/json
Host: demo.docusign.net
User-Agent: SAPNetWeaverApplicationServer(1.0;740)
x-docusign-authentication: <DocuSignCredentials><Username>XXXX</Username><Password>[omitted]</Password><IntegratorKey>[omitted]</IntegratorKey></DocuSignCredentials>
X-SecurityProtocol-Version: TLSv1
--8B10626873356827771077AAF6D55D6E0
Content-Type: application/json; charset=utf-8
Content-Length: 376
content-disposition: form-data
{ "emailBlurb": "Test Webui", "emailSubject": "Test Webui", "status": "sent", "compositeTemplates": [{"inlineTemplates": [{ "sequence": "1", "recipients": { "signers": [{ "recipientId": "1", "name": "JESS", "email": "test@lol.com","defaultRecipient": "true" }] } }],"document": {"documentId": "1","name": "f4506t.txt","transformPdfFields": "true"} }]}
--8B10626873356827771077AAF6D55D6E0
Content-Type: application/text; charset=utf-8
Content-Length: 11
content-disposition: file; filename="f4506t.txt"; documentid="1"
Hallo Webui
--8B10626873356827771077AAF6D55D6E0--发布于 2017-11-27 20:59:43
在您的JSON中很少有问题:
由于您正在上载文本文档,所以"transformPdfFields":"true“无效,因为它仅适用于PDF文档,而且如果按照DocuSign标准创建这些PDF字段,则需要将这些pdf字段转换为DocuSign选项卡。b.在您的“签名者”属性中,没有定义任何选项卡,因此DocuSign将无法知道您计划如何处理该文档,并且存在任何DocuSign选项卡,您的签名节点应该如下所示:
"signers": [{
"recipientId": "1",
"name": "JESS",
"email": "test@lol.com",
"tabs": {
"dateSignedTabs": [
{
......add required tab details
}
],
"signHereTabs": [
{
......add required tab details
}
]
}
}]https://stackoverflow.com/questions/47513262
复制相似问题