Docusignapi 如何在Docusign中设置来自JSON的电子邮件主题行和电子邮件消息

Docusignapi 如何在Docusign中设置来自JSON的电子邮件主题行和电子邮件消息,docusignapi,Docusignapi,有谁能告诉我如何在Docusign中使用JSON设置电子邮件主题行和电子邮件消息 注意:(JSON字符串必须作为HTTP请求传递) 谢谢,, Vignesh.B使用属性为每个收件人设置单独的电子邮件主题和电子邮件正文。应为每个收件人设置emailNotification属性 下面是请求的Json示例 POST/v2/accounts/{accountId}/信封 使用emailSubject和emailBlurb属性为信封中的所有收件人设置主题和邮件。必须在json请求的根级别设置这些属性 注意

有谁能告诉我如何在Docusign中使用JSON设置电子邮件主题行和电子邮件消息

注意:(JSON字符串必须作为HTTP请求传递)

谢谢,, Vignesh.B

使用属性为每个收件人设置单独的电子邮件主题和电子邮件正文。应为每个收件人设置emailNotification属性

下面是请求的Json示例

POST/v2/accounts/{accountId}/信封


使用emailSubjectemailBlurb属性为信封中的所有收件人设置主题和邮件。必须在json请求的根级别设置这些属性

注意:您可以通过为每个收件人指定emailNotification属性来覆盖信封级别的属性,如本文所建议的

下面是请求的Json示例

POST/v2/accounts/{accountId}/信封

{
  "recipients": {
    "signers": [
      {
        "email": "recipientone@acme.com",
        "name": "recipient one",
        "recipientId": "1",
        "routingOrder": "1",
        "emailNotification": {
              "emailSubject": "Please sign the  document Recipient One ",
              "emailBody": "Hello Recipient One,\r\n\r\nYour consultant has sent you a new document to view and sign.  Please click on the View Documents link below, review the content, and sign the document.  If you have any questions, please contact your consultant.\r\n\r\nThank you!",
              "supportedLanguage": "en"
         },
        "tabs": {"signHereTabs": [{"documentId": "1", "pageNumber": "1", "xPosition": "100", "yPosition": "100"}]}
      },
      {
        "email": "recipienttwo@acme.com",
        "name": "recipient two",
        "recipientId": "2",
        "routingOrder": "2",
        "emailNotification": {
              "emailSubject": "Please sign the  document Recipient Two ",
              "emailBody": "Hello Recipient Two,\r\n\r\nYour consultant has sent you a new document to view and sign.  Please click on the View Documents link below, review the content, and sign the document.  If you have any questions, please contact your consultant.\r\n\r\nThank you!",
              "supportedLanguage": "en"
         },        
        "tabs": {"signHereTabs": [{"documentId": "1", "pageNumber": "1", "xPosition": "100", "yPosition": "200"}]}
      }
    ]
  },
  "documents": [
    {
      "documentBase64": "RG9jIFRXTyBUV08gVFdP",
      "documentId": "1",
      "fileExtension": "txt",
      "name": "Simple Contract",
      "order": "1"
    }
  ],
  "status": "Sent"
}
{
 "emailSubject": "Email subject for all recipients",
 "emailBlurb": "Email body for all recipients",
 "status": "Sent",
 "recipients": {
     "signers": [
         {
             "email": "recipientone@acme.com",
             "name": "recipientone",
             "recipientId": "1",
             "routingOrder": "1",
             "tabs": { "signHereTabs": [ { "documentId": "1", "pageNumber": "1", "xPosition": "100", "yPosition": "100" } ] }

         },
         {
             "email": "recipienttwo@acme.com",
             "name": "recipient two",
             "recipientId": "2",
             "routingOrder": "1",
             "tabs": { "signHereTabs": [ { "documentId": "1", "pageNumber": "1", "xPosition": "100", "yPosition": "200" } ] }
         }
     ]
 },
 "documents": [
     {
         "documentBase64": "RG9jIFRXTyBUV08gVFdP",
         "documentId": "1",
         "fileExtension": "txt",
         "name": "Simple Contract",
         "order": "1"
     }
 ]
}