首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >POSTMan示例-从模板创建信封不会填充用户标签

POSTMan示例-从模板创建信封不会填充用户标签
EN

Stack Overflow用户
提问于 2019-06-26 07:38:48
回答 2查看 48关注 0票数 0

我创建了一个包含两个角色的DocuSign模板:提供者和接收者。我通过DocuSign沙盒UI做到了这一点。

在我的模板中,我有一个文档,上面有四个选项卡: 1. ProviderName 2. ProviderAddress1 3. RecipientName 4. RecipientAddress

我应该使用CustomFields还是Tabs?

在给定一个包含文档的模板的情况下,我应该进行哪些API调用来完成以下操作:

  1. 为特定用户创建信封
  2. 为特定用户在模板中更新文档中的文本
  3. 将其发送出去?

在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文档的电子邮件。

但是,选项卡并未填充,它们是空白的。

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56763338

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档