【问题标题】:UNKNOWN_ENVELOPE_RECIPIENT When making Embedded Signing API CallUNKNOWN_ENVELOPE_RECIPIENT 进行嵌入式签名 API 调用时
【发布时间】:2014-07-02 20:35:30
【问题描述】:

我正在对 Docusign 进行 API 调用,以尝试为收件人获取一个链接,以便在他不必进入电子邮件的情况下签署他的文档。我在 APEX 中的 Visualforce 页面中执行此操作。

我正在向端点发送以下请求:“https://demo.docusign.net/restapi/v2/accounts/661863/envelopes/21F02F6C-E156-46E0-BCDE-778D18DB4592/views/recipient

我的要求是:

{
  "authenticationMethod": "email",
  "email": "test@outlook.com",
  "returnUrl": "www.docusign.net",
  "userName": "LB -1 Demo 2"
}

我得到的回应是:

{
  "errorCode": "UNKNOWN_ENVELOPE_RECIPIENT",
  "message": "The recipient you have identified is not a valid recipient of the specified       envelope. Envelope recipient could not be determined. 'clientUserId', 'email', or 'userName' in request and envelope may not match."
}

信封请求是:

{
  "signers": [
    {
      "name": "LB -1 Demo 2",
      "email": "test@outlook.com",
      "recipientId": "1",
      "requireIdLookup": "false",
      "userId": "05b324da-8ebb-4d4b-a58b-0ef019530214",
      "routingOrder": "1",
      "roleName": "Signer 1",
      "status": "completed",
      "signedDateTime": "2014-06-24T11:30:09.4630000Z",
      "deliveredDateTime": "2014-06-24T11:29:58.5100000Z"
    }
  ],
  "agents": [],
  "editors": [],
  "intermediaries": [],
  "carbonCopies": [],
  "certifiedDeliveries": [],
  "inPersonSigners": [],
  "recipientCount": "1",
  "currentRoutingOrder": "1"
}

收件人信息似乎与我的请求相符,但 API 调用仍无法正常工作。这是因为我缺少一个 clientUserId 并且这是嵌入式签名调用所必需的吗?如果是这样,我是否需要创建信封和收件人,然后才能进行嵌入式签名者调用?

【问题讨论】:

  • Docusign Embedded Signing的可能重复
  • 你是对的,你需要一个clientUserId,你只能为一个有clientUserId的接收者获取一个接收令牌。此答案中的更多信息:stackoverflow.com/a/17558969/1612605

标签: salesforce apex docusignapi


【解决方案1】:

此问题重复,请在发布新问题之前搜索DocuSignApi 标记以获取现有答案。正如安德鲁所提到的,这是这个问题的重复:

Docusign Embedded Signing

您需要为希望成为嵌入式收件人的任何收件人设置clientUserId 属性。使用什么值取决于您,但请确保在请求签名 URL 令牌时包含相同的确切值。

DocuSign 开发者中心Features -> Embedding下也有对此的详细解释

https://www.docusign.com/developer-center/explore/features/embedding-docusign

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多