2017-07-18 58 views
0

我在从复合模板创建个人签名会话时遇到问题。InPerson签名不是自动填写签名者电子邮件

我遵循相同的程序来识别亲自签署人,就像在其他直接嵌入文档的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": "[email protected]", 
          "hostEmail": "[email protected]", 
          "hostName": "Lilly Test", 
          "signerName": "Yakue Holguín", 
          "signerEmail": "[email protected]", 
          "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": "[email protected]", 
          "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": "[email protected]", 
          "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" 
     } 
    ] 
} 

}

使用合成模板还是我失去了关于最后的“发送完成文档”或“打印”自动填充东西时,是在不同的funcionality?

谢谢!

+0

要添加到意外的行为,并不是所有的通知邮件被发送。 – lvelasco

回答

0

首先你需要在调用删除几个参数: “名”:“礼来测试”, “电子邮件”:“[email protected]”, 这些参数仅用于经典签名者不在签名者身上。 “clientUserId”:“1000”, 只有在嵌入式签名的情况下,您才应该使用这个签名,如果您使用它,我们将不会发送任何电子邮件!

+0

嗨Yvon,删除参数不会影响信封,但我会继续删除。 – lvelasco

+0

至于clientUserId,我们已配置未选中的“禁止向嵌入式签名者发送电子邮件”,并且将其余的API调用的电子邮件发送给不涉及组合模板的电子邮件。 – lvelasco

0

下面是InPerson签名者的代码示例,让我们知道,如果它解决您的问题:

{ 
"emailSubject": "Doc Subject", 
"emailBlurb": "Doc Blurb", 
"status": "sent", 
"compositeTemplates": [ 
    { 
     "inlineTemplates": [ 
      { 
       "sequence": "1", 
       "recipients": { 
        "inPersonSigners": [{ 
        "routingOrder": 1, 
        "recipientId": "1", 
        "hostEmail": "[email protected]", 
        "clientUserId": "OnlyNeededIfEmbeddedSigning", 
        "hostName": "Agent1", 
        "signerName": "Customer1", 
        "tabs": { 
          "signHereTabs": [{ 
           "documentId": "1", 
           "pageNumber": "1", 
           "recipientId": "1", 
           "xPosition": "300", 
           "yPosition": "300" 
          }] 
         } 
       }, 
       { 
        "routingOrder": 1, 
        "recipientId": "2", 
        "hostEmail": "[email protected]", 
        "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" 
     } 
    } 
] 

}