0

当我从复合模板创建亲自签名会话时遇到了问题。

我遵循与直接嵌入文档的其他 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"
        }
    ]
}

}

使用复合模板时功能是否不同,或者我是否遗漏了有关最终“将完成的文档发送到”或“打印”自动填充的内容?

谢谢!

4

2 回答 2

0

以下是 InPerson Signers 的示例代码,如果它解决了您的问题,请告诉我们:

{
"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"
        }
    }
]

}

于 2017-07-28T21:14:57.930 回答
0

首先,您需要在调用中删除几个参数:“name”:“Lilly Test”,“email”:“liltest@company.com”,这些参数仅用于经典签名者而不是 inPerson 签名者。"clientUserId": "1000", 只有当它是嵌入式签名时你才应该使用这个,如果你使用它,我们不会发送任何电子邮件!

于 2017-07-26T07:42:06.747 回答