2017-07-18 228 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" 
     } 
    } 
] 

}