首页 > 解决方案 > 带有模板的 DocuSign REST 电话身份验证

问题描述

我在 Docusign 中创建了模板。我调用 REST API 以使用这些模板生成一个新的信封。代码工作正常:

但我无法让电话身份验证工作。我检查了 DocuSign 网站和此处的其他代码。我能看到的唯一区别:

这是 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"
}

标签: docusignapi

解决方案


看来您输入的电话号码格式错误,请尝试以下 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"
                ]
            }
        }
    ]
}

推荐阅读