docusignapi - 带有模板的 DocuSign REST 电话身份验证
问题描述
我在 Docusign 中创建了模板。我调用 REST API 以使用这些模板生成一个新的信封。代码工作正常:
- 签名者被填充
- 字段被填充
但我无法让电话身份验证工作。我检查了 DocuSign 网站和此处的其他代码。我能看到的唯一区别:
- 不同数量的参数:我尝试使用和不使用(recordVoicePrint=false,validateRecipProvidedNumber=false),它不会改变结果
- 我调用了一个模板,而不是像在其他示例中那样发送 Base64 文档
这是 JSON 请求:
{
"templateRoles": [
{
"tabs": {
"textTabs": [
{
"value": "Some Name",
"tabLabel": "CustName"
},
{
"value": "315750.00",
"tabLabel": "TotEqptCost"
}
]
},
"roleName": "Signer",
"requireIdLookup": true,
"phoneAuthentication": {
"senderProvidedNumbers": [
"(222) 222-2222"
],
"recipMayProvideNumber": false
},
"name": "James",
"idCheckConfigurationName": "Phone Auth $",
"email": "James@gmail.com"
},
{
"tabs": {
"textTabs": [
{
"value": "Dome Name",
"tabLabel": "CustName"
},
{
"value": "315750.00",
"tabLabel": "TotEqptCost"
}
]
},
"roleName": "Signer2",
"requireIdLookup": true,
"phoneAuthentication": {
"senderProvidedNumbers": [
"+1 (111) 111-1111"
],
"recipMayProvideNumber": false
},
"name": "Joe",
"idCheckConfigurationName": "Phone Auth $",
"email": "Joe@thing.com"
}
],
"templateId": "a315793d-896f-41b4-9c61-dfc6873bc6f3",
"status": "created",
"emailSubject": "Testing"
}
解决方案
看来您输入的电话号码格式错误,请尝试以下 json 片段:
{
"signers": [
{
"name": "Test Name",
"email": "testemail+name@gmail.com",
"roleName": "Signer 1",
"routingOrder": 1,
"recipientId": "1",
"requireIdLookup": true,
"idCheckConfigurationName": "Phone Auth $",
"phoneAuthentication": {
"recipMayProvideNumber": false,
"senderProvidedNumbers": [
"+18889619998"
]
}
}
]
}
推荐阅读
- c# - 从文件中删除文本
- android - com.fyber:fyber-sdk:8.22.1 没有缓存版本可用于离线模式
- amazon-web-services - 尝试使用 codepipeline 将 spring boot + mysql 应用程序部署到 AWS 时出错
- npm - NX 错误 - Nx 无法安装依赖项
- c# - 为什么即使我在特定度数范围内随机限制旋转,变换也会旋转 360 度?
- c# - 是否可以在没有代码的用户控件中设置子控件属性?
- ios - 每个部分具有不同单元格的 SwiftUI 列表
- javascript - 子组件在父组件中使用 useMemo 进行记忆,如何让子组件通知父组件重新计算值?
- python - ModuleNotFoundError:没有名为“stable_baselines3”的模块
- r - 如何在列表列和外部向量之间的 data.table 中进行行匹配?