简体   繁体   English

DocuSign API - 列出状态在日期范围内更改为“已完成”的信封

[英]DocuSign API - List Envelopes with Status Changed to 'completed' within date range

I'm using the DocuSign API and present I'm running a query every 20 minutes to check the status of a series of Envlopes by supplying a list of Envelope IDs. 我正在使用DocuSign API并显示我每隔20分钟运行一次查询,通过提供一个Envelope ID列表来检查一系列Envlopes的状态。 It looks like I'm now passing in too many envelope IDs as I'm now getting a 404 error on my request. 看起来我现在传递了太多的信封ID,因为我现在在我的请求中收到404错误。

I would like to refine this to just get any Envelopes where the Status has Changed to 'completed' within a date range (eg the last 20 minutes). 我想对此进行优化,以便在日期范围内(例如最后20分钟)将状态已更改为“已完成”的任何信封。 I'm polling using the the Envelopes: listStatusChanges API: 我正在使用Envelopes:listStatusChanges API进行轮询:

https://developers.docusign.com/esign-rest-api/reference/Envelopes/Envelopes/listStatusChanges/ https://developers.docusign.com/esign-rest-api/reference/Envelopes/Envelopes/listStatusChanges/

I can't quite work out the syntax to make a successful request for any Envelopes that have changed to 'completed' in the last 20 minutes, eg: 对于在过去20分钟内已更改为“已完成”的任何信封,我无法确定语法成功请求,例如:

GET /restapi/v2/accounts/1703061/envelopes?from_date=2019-05-08T08:30Z&to_date=2019-05-08T08:50Z&from_to_status=Completed

If there were 3 envelopes that were completed within that 20 minute time frame I would want those Envelopes to be returned by the request. 如果在20分钟的时间范围内有3个信封完成,我希望请求返回这些信封。

Version 2.0 of our API doesn't support complex envelope searches such as the one you are trying to perform. 我们的API 2.0版不支持复杂的信封搜索,例如您尝试执行的信封搜索。 Version 2.1 of our API that just came out have an improved envelopes search that you should look into. 我们刚刚推出的API 2.1版本有一个改进的信封搜索,您应该查看。 https://developers.docusign.com/esign-rest-api/guides/concepts/envelopes/search you will need to change your code as the search feature has completely revamped API in version 2.1. https://developers.docusign.com/esign-rest-api/guides/concepts/envelopes/search您需要更改代码,因为搜索功能已在2.1版中完全修改了API。 We're working on some code examples for the new features of API 2.1 that was just released, these will come soon. 我们正在研究刚刚发布的API 2.1新功能的一些代码示例,这些将​​很快推出。

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

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