【发布时间】: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 并且这是嵌入式签名调用所必需的吗?如果是这样,我是否需要创建信封和收件人,然后才能进行嵌入式签名者调用?
【问题讨论】:
-
你是对的,你需要一个clientUserId,你只能为一个有clientUserId的接收者获取一个接收令牌。此答案中的更多信息:stackoverflow.com/a/17558969/1612605
标签: salesforce apex docusignapi