当我从复合模板创建个人签名会话时,我遇到了一个问题。
我遵循相同的程序来识别亲自签名者,就像在其他直接嵌入文档的API调用中一样,但在这种情况下,当签名人签名完成签名过程并被要求发送电子邮件以发送完成的文档时到,它没有使用我提供的API提供的signerEmail对象自动填充。
JSON如下:
{
"status": "sent",
"compositeTemplates": [{
"serverTemplates": [{
"sequence": "1",
"templateId": "a6c1a9b2-xxxx-xxxx-xxxx-3f8efef01946"
}
],
"inlineTemplates": [{
"sequence": "1",
"recipients": {
"inPersonSigners": [{
"name": "Lilly Test",
"email": "liltest@company.com",
"hostEmail": "liltest@company.com",
"hostName": "Lilly Test",
"signerName": "Yakue Holguín",
"signerEmail": "yholguin@autofill.com",
"roleName": "Signer 1",
"recipientId": "1",
"clientUserId": "1000",
"routingOrder": "1",
"emailNotification": {
"emailSubject": "Contract for live in person signature attached. Host: Lilly Test",
"emailBody": "Contract for live in person signature attached. Host: Lilly Test",
"supportedLanguage": "fr"
},
"requireIdLookUp": "true",
"idCheckConfigurationName": "SMS Auth $",
"smsAuthentication": {
"senderProvidedNumbers": ["+376342078", "+33672793567", "+34696463366"]
}
}
],
"signers": [{
"name": "John Test",
"email": "jtest@company.com",
"emailNotification": {
"emailSubject": "Contract for live in person signature attached. Host: Lilly Test",
"emailBody": "Contract for live in person signature attached. Host: Lilly Test",
"supportedLanguage": "en"
},
"roleName": "Signer 2",
"routingOrder": "2",
"recipientId": "2"
}, {
"name": "Mary Test",
"email": "mtest@company.com",
"emailNotification": {
"emailSubject": "Contract for live in person signature attached. Host: Lilly Test",
"emailBody": "Contract for live in person signature attached. Host: Lilly Test",
"supportedLanguage": "en"
},
"roleName": "Signer 3",
"routingOrder": "2",
"recipientId": "3"
}
]
},
"customFields": {
"textCustomFields": [{
"value": "8009E000000JQl2QAG",
"required": "false",
"show": "false",
"name": "##SFContract"
}
]
},
}
]
}
],
"eventNotification": {
"RecipientEvents": [{
"recipientEventStatusCode": "Completed"
}, {
"recipientEventStatusCode": "sent"
}, {
"recipientEventStatusCode": "delivered"
}, {
"recipientEventStatusCode": "declined"
}
],
"EnvelopeEvents": [{
"envelopeEventStatusCode": "Delivered"
}, {
"envelopeEventStatusCode": "completed"
}, {
"envelopeEventStatusCode": "sent"
}, {
"envelopeEventStatusCode": "Declined"
}
]
}
}
使用复合模板时功能性是否不同,或者我遗漏了关于最终"发送完成的文档到"或"打印"自动填充?
谢谢!
答案 0 :(得分:0)
首先,您需要在呼叫中删除几个参数: “名字”:“礼来测试”, “email”:“liltest@company.com”, 这些参数仅用于经典签名者而非inPerson签名者。 “clientUserId”:“1000”, 只有当它是嵌入式签名时才应该使用这个,如果你使用它,我们将不会发送任何电子邮件!
答案 1 :(得分:0)
以下是InPerson签名者的示例代码,如果它能解决您的问题,请告诉我们:
{
"emailSubject": "Doc Subject",
"emailBlurb": "Doc Blurb",
"status": "sent",
"compositeTemplates": [
{
"inlineTemplates": [
{
"sequence": "1",
"recipients": {
"inPersonSigners": [{
"routingOrder": 1,
"recipientId": "1",
"hostEmail": "validDocuSignAccount@email.com",
"clientUserId": "OnlyNeededIfEmbeddedSigning",
"hostName": "Agent1",
"signerName": "Customer1",
"tabs": {
"signHereTabs": [{
"documentId": "1",
"pageNumber": "1",
"recipientId": "1",
"xPosition": "300",
"yPosition": "300"
}]
}
},
{
"routingOrder": 1,
"recipientId": "2",
"hostEmail": "validDocuSignAccount@email.com",
"hostName": "Agent2",
"signerName": "Customer2",
"tabs": {
"signHereTabs": [{
"documentId": "1",
"pageNumber": "1",
"recipientId": "1",
"xPosition": "500",
"yPosition": "500"
}]
}
}]
}
}
],
"document": {
"name": "doc_1.pdf",
"documentId": "1",
"transformPdfFields": "true"
}
}
]
}