You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

能否为DocuSign API的不同事件配置差异化的事件通知数据?

How to Send Differentiated Data for DocuSign Webhook Events

Great question! I’ve worked through this exact use case with DocuSign’s API before, and there are two solid approaches to pull this off—let’s walk through them:

DocuSign doesn’t let you set conditional includeData rules within a single notification, but you can create separate notification configurations for different event groups. Here’s how:

  • Create one eventNotification dedicated to the envelope-completed event, with includeData set to include documents and tabs.
  • Create a second eventNotification for all other events (like envelope-sent, envelope-delivered), where you exclude those high-volume fields from includeData.

When you create your envelope, attach both notifications. DocuSign will trigger each one only for its assigned events, sending exactly the data you specify for each scenario.

Here’s a simplified JSON snippet to illustrate:

{
  "envelopeDefinition": {
    // ... your envelope details here ...
    "eventNotifications": [
      // Notification for envelope-completed only
      {
        "url": "https://your-webhook-url.com/completed-handler",
        "requireAcknowledgment": true,
        "events": ["envelope-completed"],
        "includeData": ["documents", "tabs", "recipients"]
      },
      // Notification for all other events
      {
        "url": "https://your-webhook-url.com/generic-handler",
        "requireAcknowledgment": true,
        "events": ["envelope-sent", "envelope-delivered", "recipient-signed"],
        "includeData": ["recipients"] // Only include necessary data here
      }
    ]
  }
}

Pro tip: You can even use the same webhook URL for both—just add a query parameter (like ?eventType=completed) to let your backend distinguish which notification it’s receiving.

Approach 2: Backend Filtering (Fallback)

If creating multiple notifications isn’t feasible, you can configure a single eventNotification that includes all possible data, then handle the filtering on your backend. When the webhook hits your server:

  • Check the eventType field in the payload.
  • If it’s envelope-completed, process the documents and tabs data.
  • For all other events, simply ignore those fields.

This is easier to set up initially, but keep in mind it will send more data over the wire (which could matter for large envelopes or high volume).

Key Notes

  • Double-check event names: DocuSign uses hyphenated identifiers like envelope-completed (not "envelope completed")—using the wrong name will prevent the trigger from firing.
  • Test with the DocuSign Sandbox first: You can simulate events to verify that each notification sends the correct data before going live.

Hope that solves your problem! Let me know if you need help troubleshooting the payload or webhook validation.

内容的提问来源于stack exchange,提问作者The Mungler

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.27 20:09:09