我正在使用您的REST API处理您的演示环境。我的目标是获取PDF,为嵌入式签名创建信封,获取嵌入式签名URL,让用户导航到该页面,签署文档,让收件人收到已完成签名文档的副本。
我已经取得了一些成功,但是当签名者不作为收件人存在时,我似乎无法让clientUserId在收件人/签名者部分正常工作。我相信clientUserId应该允许这种情况发生。
如果我将“签名者”与现有收件人完全匹配,则可以正常使用(例如,将自己用作收件人)。
这是我发布https://demo.docusign.net/restapi/v2/accounts/517564/envelopes的请求:
{
"emailBlurb" : "This comes from....",
"accountId" : "123456",
"emailSubject" : "Please Sign This....",
"documents" : [
{
"documentId" : "1",
"name" : "the_document.pdf"
}
],
"status" : "sent",
"recipients" : {
"signers" : [
{
"tabs" : {
"carbonCopies" : [
{
"email" : "real-email@soemwhere.com",
"name" : "The Signer",
"recipientId" : "2",
"routingOrder" : "2"
}
],
"signHereTabs" : [
{
"documentId" : "1",
"xPosition" : "50",
"pageNumber" : "1",
"yPosition" : "160"
}
]
},
"email" : "internetuser1@email.com",
"name" : "John Public",
"clientUserId" : "991003",
"recipientId" : "1",
"routingOrder" : "1"
}
]
}
}
这将返回UNKNOWN_ENVELOPE_RECIPIENT,因为John Public不是Docusign系统中的收件人。但我确实将clientUserId设置为991003,我相信你的演练说这是一个足够的元素/标签来实现这一点。
我已经尝试了几种组合,并在演练中遵循了模糊。
有没有人有任何见解。
答案 0 :(得分:0)
这应该适合您:
{
"status": "sent",
"accountId": "378713",
"emailBlurb": "This comes from....",
"emailSubject": "Please Sign This....",
"documents": [
{
"documentId": "1",
"name": "the_document.pdf"
}
],
"recipients": {
"signers": [
{
"email": "internetuser1@email.com",
"name": "John Public",
"routingOrder": "1",
"recipientId": "1",
"clientUserId": "991003",
"tabs": {
"signHereTabs": [
{
"xPosition": "50",
"yPosition": "160",
"documentId": "1",
"pageNumber": "1"
}
],
"carbonCopies": [
{
"email": "recipient@mymail.com",
"name": "Mr My Final Reviewer",
"recipientId": "2",
"routingOrder": "2"
}
]
}
}
]
}
}
答案 1 :(得分:0)
我最终解决了这个问题。看起来我有几个问题:
感谢Justin M为我寻找事情!