使用自定义电子邮件通知添加收件人时出错

时间:2014-11-24 20:27:22

标签: docusignapi

我正在尝试将收件人添加到草稿信封中,并且虽然收件人确实已添加,但我收到与通知相关的错误消息。有人可以解释一下USER_LACKS_RECIPIENTEMAILNOTIFICATION_PERMISSION错误吗?

POST /restapi/v2/accounts/123456/envelopes/3a20bef6-0d88-431a-aaf1-e27baa9b59a6/recipients HTTP/1.1

{
"carbonCopies": [
{
  "email": "my@emailaddress.com",
  "name": "Mike",
  "accessCode": "xyz",
  "addAccessCodeToEmail": true,
  "emailNotification": {
    "emailBody": "Custom email message different than the envelope body",
    "emailSubject": "Custom email subject",
    "supportedLanguage": "en"
  },
  "inheritEmailNotificationChange": false,
  "note": "Sample note",
  "recipientId": "1",
  "routingOrder": "1"
}
]
}

以下是我收到的回复:

{
"signers": [],
"agents": [],
"editors": [],
"intermediaries": [],
"carbonCopies": [
{
  "name": "Mike",
  "email": "my@emailaddress.com",
  "recipientId": "1",
  "accessCode": "xyz",
  "requireIdLookup": "false",
  "routingOrder": "1",
  "note": "Sample note",
  "status": "error",
  "emailNotification": {
    "emailSubject": "Custom email subject",
    "emailBody": "Custom email message different than the envelope body",
    "supportedLanguage": "en"
  },
  "errorDetails": {
    "errorCode": "USER_LACKS_RECIPIENTEMAILNOTIFICATION_PERMISSION",
    "message": "Account or user does not have permission to set recipient email notifications."
  }
}
],
"certifiedDeliveries": [],
"inPersonSigners": [],
"recipientCount": "1"
}

我能看到的唯一权限设置可能与以下内容有关,但我无法更改它的值。

enter image description here

2 个答案:

答案 0 :(得分:1)

解决此问题的答案是不为收件人提供“”supportedLanguage“属性。此功能需要为您的发送用户启用才能使用它。

答案 1 :(得分:0)

检查“提醒和过期”部分,确保您没有选中“不允许用户覆盖这些设置”设置?

enter image description here enter image description here