我似乎无法获得Docusign API eventNotification webhooks发送。在创建信封时,我已经验证了请求正在发送API所期望的正确的eventNotification JSON哈希值,无论是在我的端点还是通过Docusign请求日志。没有连接日志,即使我指定loggingEnabled为true,所以我无法获得有意义的反馈。我已经尝试将requireAcknowledgment设置为true,如另一个答案中提到的,以及许多其他设置组合。我已经详细阅读了文档和许多关于SO的类似问题,但这些建议都没有对我有用。
非常感谢任何帮助或见解。
对于初学者,有没有办法可以在Docusign方面验证事件通知是否实际上是从请求中创建的?
这是信封创建请求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
}
答案 0 :(得分:3)
connectEvents api允许您查询Connect日志和失败。
您还可以使用DocuSign admin app查看它们。管理员应用here的文档。
如果事件成功生成且无法传递到您的Webhook端点,那么它们应列在故障部分中。
请将您的请求包含 https 监听网址。 DocuSign不支持http侦听器URL。文档here