所以我现在正在与DocuSign API斗争。 我用一个电子标签创建了一个模板,叫做“test”
我想发送一个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端点时,呈现的字段为空。在
我尝试过“tab”设置的变量实现,但没有成功。谁能看出我做错了什么吗?在
干杯
看起来您为收件人“Steven Johns”创建了“test”文本选项卡,但API调用引用的是“Signer1”角色。在
检查该选项卡是否与Signer1角色/收件人关联。在
相关问题 更多 >
编程相关推荐