REST API - How to modify email notifications in DocuSign request

自作多情 提交于 2019-12-13 05:49:57

问题


How do you add reminders and expirations? I can CreateAndSend an envelope, but not sure where to add this optional parameter. My current JSON request below:

 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:


Refer to the CreateEnvelope API documentation

Here is an example that specifies the notification settings in the API request.

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

Old documentation for the REST API can be found here



来源:https://stackoverflow.com/questions/23299085/rest-api-how-to-modify-email-notifications-in-docusign-request

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!