简体   繁体   English

DocuSign API:嵌入式签名仪式的 webhook 通知

[英]DocuSign API: webhook notifications for embedded signing ceremonies

While we can receive webhook messages for email signatures, it seems that DocuSign does not send a webhook event for an embedded session signature.虽然我们可以接收 email 签名的 webhook 消息,但似乎 DocuSign 不会为嵌入式 session 签名发送 webhook 事件。 Does this work?这行得通吗?

Yes, Connect can fire events for Embedded Signing events.是的,Connect 可以触发嵌入式签名事件的事件。

Are you using an account-level Connect configuration, or envelope-level EventNotifications?您使用的是帐户级别的 Connect 配置,还是信封级别的 EventNotifications?

The events related to an embedded signing session are recipient events vs the broader envelope events.与嵌入式签名 session 相关的事件是recipient事件,而不是更广泛的envelope事件。 -- So check that your Connect subscription is asking for the right events. -- 因此,请检查您的 Connect 订阅是否要求正确的事件。 Eg recipient_completed, not just envelope_completed.例如,recipient_completed,而不仅仅是信封_completed。

In addition, the default Connect queuing strategy will usually combine notifications for events that happen at almost the same time.此外,默认的 Connect 排队策略通常会结合几乎同时发生的事件的通知。

For example例如

  1. Recipient 1 signs (via embedded ceremony or email-initiated ceremony)收件人 1 标志(通过嵌入式仪式或电子邮件发起的仪式)
  2. The envelope is now complete (recipient 1 was the last recipient for the envelope)信封现已完成(收件人 1 是信封的最后一个收件人)

If you've asked for recipient and envelope events, you'll usually only be notified once for the above two events.如果您已询问收件人和信封事件,通常只会针对上述两个事件通知您一次。

If you want individual notifications for each of the above events, switch to using SIM queuing for Connect.如果您需要针对上述每个事件的单独通知,请切换到使用 SIM 队列进行 Connect。 This is done at the Account level via the Updates section of the eSignature Admin tool.这是通过电子签名管理工具的更新部分在帐户级别完成的。

Docusign supports webhook events via two ways - Docusign 通过两种方式支持 webhook 事件 -

  1. Account level - Connect Configuration: For this, you need to configure the webhook URL.帐户级别 - 连接配置:为此,您需要配置 webhook URL。 Go to Docusign Admin page -> under Integrations, select "Connect" -> Add Configuration -> Custom -> Specify the webhook URL and the triggering events. Go 到 Docusign 管理页面 -> 在集成下,select “连接” -> 添加配置 -> 自定义 -> 指定 webhook ZE6B391A8D2C4D45902A23A8B6585703DD 和触发事件。 This will apply to all the envelopes of that account.这将适用于该帐户的所有信封。

  2. Envelope level: Add following to the createEnvelope request:信封级别:在 createEnvelope 请求中添加以下内容:

 "eventNotification": { "URL": "<webhookurl>", "loggingEnabled": "true", "requireAcknowledgment": "true", "useSoapInterface": "false", "includeCertificateWithSoap": "false", "signMessageWithX509Cert": "false", "includeDocuments": "true", "includeEnvelopeVoidReason": "true", "includeTimeZone": "true", "includeSenderAccountAsCustomField": "true", "includeDocumentFields": "true", "includeCertificateOfCompletion": "true", "envelopeEvents": [ {"envelopeEventStatusCode": "sent"}, {"envelopeEventStatusCode": "delivered"}, {"envelopeEventStatusCode": "completed"}, {"envelopeEventStatusCode": "declined"}, {"envelopeEventStatusCode": "voided"} ], "recipientEvents": [ {"recipientEventStatusCode": "Sent"}, {"recipientEventStatusCode": "Delivered"}, {"recipientEventStatusCode": "Completed"}, {"recipientEventStatusCode": "Declined"}, {"recipientEventStatusCode": "AuthenticationFailed"}, {"recipientEventStatusCode": "AutoResponded"} ] }

This applies to that envelope only.这仅适用于该信封。

You can configure the events on which you want the webhook URL to be triggered.您可以配置要触发 webhook URL 的事件。

DocuSign hits the webhook on the corresponding events with a XML which contains all the information about the envelope and recipient events. DocuSign 使用 XML 在相应事件上点击 webhook,其中包含有关信封和收件人事件的所有信息。 You can also configure if you don't want to receive the signed document in XML.如果您不想接收 XML 中的签名文档,您也可以配置。

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

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