REST API - 如何在DocuSign请求中修改电子邮件通知

时间:2014-04-25 17:03:56

标签: docusignapi

如何添加提醒和过期消息?我可以CreateAnd发送一个信封,但不知道在哪里添加这个可选参数。我目前的JSON请求如下:

 POST https://demo.docusign.net/restapi/v2/accounts/175597/envelopes

 {
     "emailBlurb": "Please sign to complete the document signature",
     "emailSubject": "Reminder and Expiration Test",
     "documents": [
         {
             "documentId": "1",
             "name": "7805dda0-9363-11e3-a6ef-0e26cd4d7860.pdf"
         }
     ],
     "recipients": {
         "signers": [
             {
                 "recipientId": "1",
                 "email": "email@hotmail.com",
                 "name": "Test Test",
                 "routingOrder": 1
             }
         ]
     },
     "status": "sent"
 }

1 个答案:

答案 0 :(得分:2)

请参阅CreateEnvelope API文档

以下是一个在API请求中指定通知设置的示例。

POST https://demo.docusign.net/restapi/v2/accounts/175597/envelopes

{
 "emailBlurb": "Please sign to complete the document signature",
 "emailSubject": "Reminder and Expiration Test",
 "status": "sent",
 "documents" :[//dcouments go here],
 "recipients" :{//recipients go here},
 "notification":{ 
     "useAccountDefaults":"String content", 
     "reminders":{ 
         "reminderEnabled":"String content", 
         "reminderDelay":"String content", 
         "reminderFrequency":"String content" 
     }, 
     "expirations":{ 
         "expirationEnabled":"String content", 
         "expirationAfter":"String content", 
         "expirationWarn":"String content" 
     } 
   }
 }

可以找到REST API的旧文档here