我需要创建一个应用程序,用户可以在我的网站上签署文档,而无需任何docusign身份验证,我想就像LoanCo Sample Demo一样。
我正在使用嵌入式签名并按照此处列出的步骤,并在EnvelopeViews上获取URI:createRecipient调用,但是当我尝试访问该URI时,它会重定向到“/Signing/SessionTimeout.aspx”并说“ SESSION ENDED“然后没有任何反应,附上”会话结束“页面的快照。
这是创建信封请求JSON。
{
"documents": [
{
"documentBase64": "<Base64BytesHere>",
"documentId": "1",
"fileExtension": "pdf",
"name": "PDF Doc"
}
],
"emailSubject": "Doc Sign",
"recipients": {
"signers": [
{
"clientUserId": "clientUserId",
"email": "examble@email.com",
"name": "Shah",
"recipientId": "1",
"tabs": {
"signHereTabs": [
{
"documentId": "1",
"pageNumber": "1",
"tabLabel": "Sign Here",
"xPosition": "100",
"yPosition": "100"
}
]
}
}
]
}
}
这是我的createRecipient请求JSON。
{
"authenticationMethod": "email",
"email": "examle@email.com",
"returnUrl": "https://localhost/index.php",
"userName": "Shah"
}
答案 0 :(得分:2)
创建信封后,使用createRecipient:EnvelopeViews api检索签名网址。
在您的请求中,您缺少 clientUserId 参数。
请求强>
{
"userName": "Shah",
"email": "examble@email.com",
"clientUserId": "clientUserId",
"authenticationMethod": "email",
"returnUrl": "https://localhost/index.php"
}