我正在向Docusign发出API调用,试图获取一个链接,让收件人签署他的文档,而无需他进入他的电子邮件。我在Visualforce页面的APEX中这样做。
我向端点发送以下请求:" 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,这是嵌入式签名调用所必需的吗?如果是这样,我是否需要创建信封和收件人,并且我是否可以进行嵌入式签名者呼叫?
答案 0 :(得分:0)
此问题是重复的,请在发布新问题之前在DocuSignApi
标记中搜索现有答案。正如安德鲁所提到的,这是这个问题的重复:
您需要为要成为嵌入式收件人的任何收件人设置clientUserId
属性。这取决于您使用什么值,但请确保在请求签名URL令牌时包含相同的确切值。
在Features -> Embedding
https://www.docusign.com/developer-center/explore/features/embedding-docusign