DocuSign复合模板提供TAB_REFERENCES_TO_MISSING_DOCUMENT [英] Docusign composite template giving TAB_REFERS_TO_MISSING_DOCUMENT

查看:18
本文介绍了DocuSign复合模板提供TAB_REFERENCES_TO_MISSING_DOCUMENT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过REST API将这两个模板用作复合模板。我单独发送了每个模板,它工作得很好。以下是来自日志文件的请求:

Content-Length: 1526
Host: demo.docusign.net
X-DocuSign-Authentication: {"Username":"Kathleen.Jones@XXX.com","Password":"[omitted]","IntegratorKey":"[omitted]"}
X-Forwarded-For: 63.118.233.100, 104.129.194.117

{
  "compositeTemplates": [
    {
      "serverTemplates": [
        {
          "sequence": "1",
          "templateId": "2d743750-f910-4a30-ad34-ac5bc0ca8daa"
        },
        {
          "sequence": "2",
          "templateId": "63479d79-a776-4767-a2a3-1ebd01d7d8fa "
        }
      ],
      "inlineTemplates": [
        {
          "sequence": "1",
          "recipients": {
            "signers": [
              {
                "name": "Joe Blow",
                "email": "JoeBlow@outlook.com",
                "recipientId": "1",
                "roleName": "CEO"
              },
              {
                "name": "Kathy Blow",
                "email": "KathyBlow@outlook.com",
                "recipientId": "2",
                "roleName": "Uber CEO"
              }
            ]
          }
        },
        {
          "sequence": "2",
          "recipients": {
            "signers": [
              {
                "name": "Joe Blow",
                "email": "JoeBloww@outlook.com",
                "recipientId": "2",
                "roleName": "Uber CEO"
              },
              {
                "name": "Kathy Blow",
                "email": "KathyBlow@outlook.com",
                "recipientId": "1",
                "roleName": "CEO"
              }
            ]
          }
        }
      ]
    }
  ],
  "status": "sent",
  "emailSubject": "Please Sign the enclosed docs at your earliest convenience"
}
400 BadRequest
Content-Type: application/json; charset=utf-8
X-DocuSign-TraceToken: cb23f0ed-6be2-4189-9237-5575671f8f4b

{
  "errorCode": "TAB_REFERS_TO_MISSING_DOCUMENT",
  "message": "The DocumentId specified in the tab element does not refer to a document in this envelope. Tab refers to DocumentId 15100956 which is not present."
}

正如我所说,我单独使用了这两个模板,它们都运行得很好。有什么想法吗?

推荐答案

我在堆栈溢出answer中找到了答案:

在您发布的请求JSON中,您将"Documents"(复数)指定为Document对象的集合/数组--这是不正确的。PositeTemplates数组中的每个复合模板项最多只能包含一个文档。

这篇关于DocuSign复合模板提供TAB_REFERENCES_TO_MISSING_DOCUMENT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆