docusignapi - 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"
}
]
}
}
]
解决方案
看起来您缺少在文档上显示全名的 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 实施,您可以根据自己的需要进行修改。
推荐阅读
- reactjs - 当使用具有不同道具的路由组件时重复
- react-native - 我想改变导航图标的颜色,我该怎么做?
- python-3.x - 在 TF-Agents 中使用 EpisodicReplayBuffer
- sql - Regexp_Substr 过滤 SQL 中的行
- vue.js - 为什么 vue3 不必要地重新渲染 v-for 中的节点?
- wordpress - 仅当用户是管理员时才显示 add_filter
- java - CompletionException:client.HttpClientErrorException: 400 和服务器端 HTTP 请求解析错误 RFC 7230 并已被忽略
- javascript - 文本区域的更改事件
- django - 在其他地方使用 cbv 视图
- monitoring - Javamelody 收集器服务器计数错误:点击数呈指数增长