[英]Create a Document to Sign from a Template in DocuSign
这是我的“项目”。
我需要从 Google 表格中下载包含员工信息(姓名、地址、email、电话号码和其他一些自定义字段)的行,并使用此信息在 DocuSign 中填写模板并将其发送给员工进行签名。 员工无需进行任何编辑,他们只需签署文件即可。
因此,在 DocuSign web UI 中,我创建了包含所有字段的模板。
在 API 中,我首先创建一个新信封:
POST /v2.1/accounts/{accountId}/envelopes
{
"templateId": "9e35d343-6942-4756-b7aa-XXXXXXXX",
"templateRoles": [
{
"email": "joe.doe@doooeeee.com",
"name": "Joe Doe",
"roleName": "employee"
}
],
"status": "created"
}
我成功地创建了信封(我在 UI 中看到它),但不清楚我的下一个 API 应该是预填充模板。 我一直在 API 文档中担任主角,但我就是不明白……
有什么提示吗?
我们有一个分步代码示例,向您展示如何做到这一点。
JSON 看起来像这样:
"templateId": "9e35d343-6942-4756-b7aa-XXXXXXXX",
"templateRoles": [{
"email": "joe.doe@doooeeee.com",
"name": "Joe Doe",
"roleName": "employee",
"tabs": {
"checkboxTabs": [{
"selected": "true",
"tabLabel": "ckAuthorization"
}, {
"selected": "true",
"tabLabel": "ckAgreement"
}],
"listTabs": [{
"documentId": "1",
"pageNumber": "1",
"tabLabel": "list",
"value": "green"
}],
"radioGroupTabs": [{
"groupName": "radio1",
"radios": [{
"selected": "true",
"value": "white"
}]
}],
"textTabs": [{
"tabLabel": "text",
"value": "Jabberywocky!"
}, {
// .....
这是通过 API 请求生成器提供的实时示例。
Note that the API Request Builder can be used to create the SDK code for the example in C#, Java, Node.js, PHP, Python, and Ruby
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.