Docusign预填充模板字段

2024-09-27 21:29:57 发布

您现在位置:Python中文网/ 问答频道 /正文

所以我现在正在与DocuSign API斗争。 我用一个电子标签创建了一个模板,叫做“test”

enter image description here

我想发送一个JSON请求来触发签名响应。此请求的一部分将包含特定于客户端的预设值。在

到目前为止,除了我的请求结构没有正确地将值映射到字段之外,我可以让一切正常工作(将电子邮件发送到正确的地址等等)。在

请求:

request = json.dumps({'accountId': account_id,
                      'status': 'sent',
                      'emailSubject': 'You have a document you need to sign',
                      'emailBlurb': 'This is a blurb',
                      'templateId': 'xxxxxxxxxxxxxxxxxxxxxxxx',
                      'customFields': {
                          'textCustomFields': [{
                              'name': 'address',
                              'required': 'True',
                              'show': 'True',
                              'value': 'This is an address'
                          }],
                      },
                      'templateRoles': [{
                          'email': 'my_email@emailsrus.com',
                          'name': 'Jamie Strauss',
                          'roleName': 'Signer1',
                          'recipientId': '1',
                          "tabs": {
                              "textTabs": [{
                                  "tabLabel": "test",
                                  "value": "hello123",
                              }]
                          },
                      }],
                      })

电子邮件通过,但当我导航到docusign端点时,呈现的字段为空。在

enter image description here

我尝试过“tab”设置的变量实现,但没有成功。谁能看出我做错了什么吗?在

干杯


Tags: nametest模板apijsontrue客户端is
1条回答
网友
1楼 · 发布于 2024-09-27 21:29:57

看起来您为收件人“Steven Johns”创建了“test”文本选项卡,但API调用引用的是“Signer1”角色。在

检查该选项卡是否与Signer1角色/收件人关联。在

相关问题 更多 >

    热门问题