我创建了一个包含两个角色的DocuSign模板:提供者和接收者。我通过DocuSign沙盒UI做到了这一点。
在我的模板中,我有一个文档,上面有四个选项卡: 1. ProviderName 2. ProviderAddress1 3. RecipientName 4. RecipientAddress
我应该使用CustomFields还是Tabs?
在给定一个包含文档的模板的情况下,我应该进行哪些API调用来完成以下操作:
在POSTMan示例中,我尝试使用此网址,执行POST:
{{baseUrl}}/envelopes
传入一个templateId,并在POST正文中包含以下JSON:
JSON:
{
"templateRoles": [{
"email": "{{signer1Email}}",
"name": "The Provider",
"roleName": "Provider",
"tabs": {
"textTabs": [{
"tabLabel": "ProviderName",
"value": "This is the provider!"
},
{
"tabLabel": "ProviderAddress1",
"value": "10 Provider Street, Baltimore, MD 21212"
}]
}
},
{
"email": "{{otherEmail}}",
"name": "Test Recipient",
"roleName": "Recipient",
"tabs": {
"textTabs": [{
"tabLabel": "RecipientName",
"value": "This is the recipient!"
},
{
"tabLabel": "RecipientAddress",
"value": "10 Main Street, Baltimore, MD 21212"
}]
}
}],
"emailSubject": "DocuSign API - Signature Request on Document Call",
"templateId": "<<template ID>>",
"status": "sent"
}
这会在响应中返回一个信封Id,并且我会收到包含要签名的DocuSign文档的电子邮件。
但是,选项卡并未填充,它们是空白的。
发布于 2019-06-26 07:59:40
模板中的角色是否为空占位符?如果在模板上定义了名称/电子邮件,API调用将不会像您预期的那样填充它们。
发布于 2019-06-26 08:54:33
尝试将documentId和pageNumber属性添加到选项卡中。此外,请确保标签与原始模板中的标签相匹配。最后,您可能还需要向每个收件人添加recipientId,以匹配模板中的内容(由于您有roleName,因此可能不需要此内容,但只是以防万一)
https://stackoverflow.com/questions/56763338
复制相似问题