首页 > 解决方案 > Docusign API Explorer 未预填充字段

问题描述

我尝试用标签和值填充选项卡,但是当我发送请求时,选项卡没有预先填充,还有人知道全名选项卡是如何填充的吗?

{
  "emailSubject": "Welcome to Soul Gym",
  "status": "sent",
  "templateId": "196b0d27-b967-4380-bb2c-013051ec9e45",
  "templateRoles": [
    {
      "clientUserId": "marcus.yeo@business.edu.sg",
      "email": "marcus.yeo@business.edu.sg",
      "name": "Marcus Yeo",
      "roleName": "New Member",
      "tabs": {
        "emailTabs": [
          {
            "tabLabel": "Email",
            "value": "marcus.yeo@business.edu.sg"
          }
        ],
        "fullNameTabs": [
          {
            "tabLabel": "FullName"
          },
          {
            "tabLabel": "FullName2"
          }
        ],
        "textTabs": [
          {
            "tabLabel": "Address",
            "value": "32 Duke Road"
          }
        ]
      }
    }
  ]

标签: docusignapirest

解决方案


看起来您缺少在文档上显示全名的 documentId 和 tabPositions。这是一个省略了原始文档的示例工作请求正文:

{
  "documents": [
    {
      "documentBase64": "<Base64BytesHere>",
      "documentId": "1",
      "fileExtension": "docx",
      "name": "testFile"
    }
  ],
  "emailSubject": "testing envelope",
  "recipients": {
    "signers": [
      {
        "email": "john.doe@example.com",
        "name": "Docusign Test Signer",
        "recipientId": "1",
        "routingOrder": "1",
        "tabs": {
          "fullNameTabs": [
            {
              "documentId": "1",
              "pageNumber": "1",
              "xPosition": "280",
              "yPosition": "172"
            },
            {
              "documentId": "1",
              "pageNumber": "1",
              "xPosition": "480",
              "yPosition": "300"
            }
          ],
          "signHereTabs": [
            {
              "documentId": "1",
              "pageNumber": "1",
              "xPosition": "120",
              "yPosition": "300"
            }
          ]
        }
      }
    ]
  },
  "status": "sent"
}

以及我尝试使用此请求 json 的演示文档中显示的结果fullName放置:

响应图像

虽然我在这里没有使用信封templateId,但机制是一样的,设置 documentID、pageNumber 和 x/y 坐标以在文档中注入 fullName。随时查看快速入门工具,并以您选择的语言查找完整的 DocuSign 实施,您可以根据自己的需要进行修改。


推荐阅读