简体   繁体   English

Docusign API不发送Webhook事件通知

[英]Docusign API Not Sending Webhook Event Notifications

I can't seem to get Docusign API eventNotification webhooks to send. 我似乎无法获得Docusign API eventNotification webhooks发送。 When creating an envelope I've verified that the request is sending the correct eventNotification JSON hash that the API is expecting, both on my end and via the Docusign request log. 在创建信封时,我已经验证了请求正在发送API所期望的正确的eventNotification JSON哈希值,无论是在我的端点还是通过Docusign请求日志。 There are no connect logs, even though I specify that loggingEnabled is true, so I can't get meaningful feedback. 没有连接日志,即使我指定loggingEnabled为true,所以我无法获得有意义的反馈。 I've tried setting requireAcknowledgment to true as mentioned in another answer, as well as many other setting combinations. 我已经尝试将requireAcknowledgment设置为true,如另一个答案中提到的,以及许多其他设置组合。 I've read through the documentation extensively and many similar questions on SO, and none of the suggestions have worked for me. 我已经详细阅读了文档和许多关于SO的类似问题,但这些建议都没有对我有用。

Any help or insight is greatly appreciated. 非常感谢任何帮助或见解。

For starters, is there a way that I can verify, on the Docusign side, that the event notifications have actually been created from the request? 对于初学者,有没有一种方法可以在Docusign方面验证事件通知是否实际上是从请求中创建的?

Here is the envelope creation request JSON 这是信封创建请求JSON

{
   "emailBlurb":"Please sign this proforma invoice.",
   "emailSubject":"Proforma Invoice",
   "documents":[
      {
         "documentId":"1",
         "name":"proforma_invoice.pdf"
      }
   ],
   "recipients":{
      "signers":[
         {
            "accessCode":"",
            "addAccessCodeToEmail":false,
            "customFields":null,
            "idCheckConfigurationName":null,
            "idCheckInformationInput":null,
            "inheritEmailNotificationConfiguration":false,
            "note":null,
            "phoneAuthentication":null,
            "recipientAttachment":null,
            "requireIdLookup":null,
            "roleName":"Customer",
            "routingOrder":1,
            "socialAuthentications":null,
            "recipientId":1,
            "email":"john@smith.com",
            "name":"John Smith",
            "autoNavigation":false,
            "defaultRecipient":false,
            "signatureInfo":null,
            "tabs":{
               "approveTabs":null,
               "checkboxTabs":[

               ],
               "companyTabs":null,
               "dateSignedTabs":[
                  {
                     "anchorString":"Sign",
                     "anchorXOffset":"350",
                     "anchorYOffset":"-10",
                     "anchorIgnoreIfNotPresent":false,
                     "anchorUnits":"pixels",
                     "documentId":"1",
                     "pageNumber":"1",
                     "recipientId":1,
                     "required":false,
                     "xPosition":"0",
                     "yPosition":"0",
                     "optional":false,
                     "tabLabel":"Signature 1",
                     "locked":false
                  }
               ],
               "dateTabs":null,
               "declineTabs":null,
               "emailTabs":[

               ],
               "envelopeIdTabs":null,
               "fullNameTabs":[
                  {
                     "anchorString":"Sign",
                     "anchorXOffset":"220",
                     "anchorYOffset":"8",
                     "anchorIgnoreIfNotPresent":false,
                     "anchorUnits":"pixels",
                     "documentId":"1",
                     "pageNumber":"1",
                     "recipientId":1,
                     "required":false,
                     "xPosition":"0",
                     "yPosition":"0",
                     "optional":false,
                     "tabLabel":"Signature 1",
                     "locked":false
                  }
               ],
               "listTabs":[

               ],
               "noteTabs":null,
               "numberTabs":[

               ],
               "radioGroupTabs":[

               ],
               "initialHereTabs":[

               ],
               "signHereTabs":[
                  {
                     "anchorString":"Sign",
                     "anchorXOffset":"80",
                     "anchorYOffset":"0",
                     "anchorIgnoreIfNotPresent":false,
                     "anchorUnits":"pixels",
                     "documentId":"1",
                     "pageNumber":"1",
                     "recipientId":1,
                     "required":false,
                     "scaleValue":1,
                     "xPosition":"0",
                     "yPosition":"0",
                     "optional":false,
                     "tabLabel":"Signature 1",
                     "locked":false
                  }
               ],
               "signerAttachmentTabs":null,
               "ssnTabs":null,
               "textTabs":[

               ],
               "titleTabs":[

               ],
               "zipTabs":null
            }
         }
      ],
      "carbonCopies":[

      ]
   },
   "eventNotification":{
      "useSoapInterface":false,
      "includeCertificateWithSoap":false,
      "url":"valid_accessible_url_endpoint",
      "loggingEnabled":true,
      "envelopeEvents":[
         {
            "includeDocuments":false,
            "envelopeEventStatusCode":"completed"
         },
         {
            "includeDocuments":false,
            "envelopeEventStatusCode":"sent"
         },
         {
            "includeDocuments":false,
            "envelopeEventStatusCode":"delivered"
         }
      ],
      "recipientEvents":[

      ]
   },
   "status":"sent",
   "customFields":null
}

The connectEvents api lets you query the Connect logs and failures. connectEvents api允许您查询Connect日志和失败。

You can also view them using the DocuSign admin app . 您还可以使用DocuSign管理应用程序查看它们。 Documentation for the admin app here . 这里有管理员应用程序的文档。

If the events were generated successfully and could not be delivered to your Webhook endpoint then they should be listed in the failures section. 如果事件生成成功且无法传递到Webhook端点,则应在故障部分中列出这些事件。

Please make your request includes a https listener url. 请将您的请求包含在https监听网址中。 DocuSign does not support http listener URL's. DocuSign不支持http侦听器URL。 Documentation here 文档在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM