【问题标题】:Docusign:- The recipient you have identified is not a valid recipient of the specified envelopeDocusign:- 您确定的收件人不是指定信封的有效收件人
【发布时间】:2014-10-26 06:00:40
【问题描述】:

我是 docusign 的新手,正在尝试使用嵌入功能。这是我遵循的步骤:

  1. 创建了一个模板并上​​传了一个示例文档。对于收件人和路由部分,我创建了一个角色,但没有提供电子邮件和姓名。因为我需要将相同的模板发送给不同的人
  2. 使用与http://iodocs.docusign.com/APIWalkthrough/embeddedSigning 完全相同的 JAVA 代码
  3. 提供了integratorKey,username,password,recipientName,recipientEmail,templateId,roleName等所需的值
  4. 收到以下错误,不知道如何解决。

https://demo.docusign.net/restapi/v2/accounts/781990/envelopes/b61f50f3-632f-43d3-8f24-76758dbf31b7/views/recipient

第 3 步:为嵌入式签名生成 URL 令牌... API 调用失败,返回的状态为:400 错误描述:

<?xml version="1.0" encoding="UTF-8"?>
<errorDetails xmlns="http://www.docusign.com/restapi" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <errorCode>UNKNOWN_ENVELOPE_RECIPIENT</errorCode>
  <message>The recipient you have identified is not a valid recipient of the specified envelope.</message>
</errorDetails>

【问题讨论】:

    标签: docusignapi


    【解决方案1】:

    修好了!该站点中给出的代码存在问题。在第 2 步中给出:

    body = "<envelopeDefinition xmlns=\"http://www.docusign.com/restapi\">" +
    "<accountId>" + accountId + "</accountId>" +
    "<status>sent</status>" +
    "<emailSubject>DocuSign API Call - Signature request from template</emailSubject>" +
    "<templateId>" + templateId + "</templateId>" +
    "<templateRoles>" +
    "<templateRole>" +
    "<email>" + username + "</email>" + 
    "<name>" + recipientName + "</name>" +
    "<roleName>" + roleName + "</roleName>" +
    "<clientUserId>1001</clientUserId>" +   // required for embedded sending (value is user-defined)
    "</templateRole>" +
    "</templateRoles>" +
    "</envelopeDefinition>";
    

    "&lt;email&gt;" + username + "&lt;/email&gt;" 是错误的。 "&lt;email&gt;" + recipientEmail + "&lt;/email&gt;" 应改为使用。

    【讨论】:

      猜你喜欢
      • 2020-11-02
      • 1970-01-01
      • 2022-11-28
      • 2021-01-18
      • 2015-11-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多