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

调用DocuSign API获取已完成信封返回空结果,请求协助

Troubleshooting DocuSign Search Folders API Returning Empty Results for Completed Envelopes

Let’s walk through practical fixes for this issue—since you know there’s a completed envelope in your account, we can narrow down potential causes step by step:

  • Double-check your account ID: The ID 4636543 you’re using must match exactly with your demo environment account. Verify this by calling the GET /restapi/v2/accounts endpoint with your valid auth token—this returns all accounts linked to your authenticated user, so confirm 4636543 is listed here. Mixing up production and demo account IDs is a common oversight.

  • Confirm the envelope’s actual status: Ensure the envelope you’re expecting is truly in a completed state. Call GET /restapi/v2/accounts/4636543/envelopes/{envelopeId} (replace {envelopeId} with your envelope’s ID) and check the status field. Envelopes marked as voided, declined, or even sent but not fully finalized won’t show up in completed folder results.

  • Verify user permissions: The authenticated user (linked to your integration key or access token) needs access to that envelope. If the envelope was created by another user in your account, confirm there’s a sharing rule granting your API user visibility. Test this by authenticating as the envelope’s creator and running the same search request—if it returns the envelope, permissions are the issue.

  • Add explicit date range filters: The search_folders/completed endpoint might have implicit date filtering excluding your envelope. Append from_date and to_date parameters to cover the exact timeframe when the envelope was completed. For example:

    https://demo.docusign.net/restapi/v2/accounts/4636543/search_folders/completed?include_recipients=true&from_date=2024-05-01T00:00:00Z&to_date=2024-05-30T23:59:59Z
    

    Adjust the dates to match when your envelope was finalized.

  • Try the v2.1 API version: While v2 is still supported, DocuSign’s v2.1 API has improved folder search behavior. Update your request to use the v2.1 endpoint:

    https://demo.docusign.net/restapi/v2.1/accounts/4636543/search_folders/completed?include_recipients=true
    

    This may resolve edge-case bugs present in the older v2 endpoint.

  • Validate your auth token’s scope: Ensure your access token includes the envelopes:read scope. If your token lacks this permission, the API might return empty results instead of a permission error. Inspect the token’s payload to confirm scopes are correct.

If none of these steps work, enable DocuSign API logging for your integration—this will show detailed request/response data to pinpoint why the envelope isn’t being returned.

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.21 06:47:26