Closed ewillman closed 5 years ago
Hi @ewillman This is an issue with the way swagger-codegen is setting up the optional parameters. We don't want you to be getting a huge set of Envelopes, thus the API is asking for a date range. We understand that the reference does not say it out loud that these are required parameters. We will add this to our backlog to update our API Reference to clear the confusion. To resolve your issue can you please try using the below "options" and give a date range to your query.
// This example gets statuses of all envelopes in your account going back 30 days...
DateTime fromDate = DateTime.UtcNow;
fromDate = fromDate.AddDays(-30);
string fromDateStr = fromDate.ToString("o");
// set a filter for the envelopes we want returned using the fromDate and count properties
EnvelopesApi.ListStatusOptions options = new EnvelopesApi.ListStatusOptions()
{
fromDate = fromDateStr
};
// in your code please add the options parameter instead of passing it null
var envelopeInfos = await envelopesApi.ListStatusAsync(_tokenAccountId, new EnvelopeIdsRequest(envelopeIds), options);
@RajRele, I am also facing this issue. I tried specifying FromDate
as you suggested. The call went through without an error. However, it seemed to ignore the EnvelopeIds
I specified in my EnvelopeIdsRequest
- and returned data for all envelopes in since the FromDate
, including the ones I didn't ask for.
It seems that regardless of the FromDate
, the client is not communicating the EnvelopeIds
correctly to the API.
Perhaps the issue is a missing query string parameter envelope_ids=request_body
as mentioned in the link referenced by @ewillman?
https://stackoverflow.com/questions/50644862/invalid-request-parameter-on-liststatus
@alexroode Sorry to hear that you are facing this issue. We have already opened an internal investigation to fix this (Jira# DCM-2748). We will update this conversation once we have a release. Thanks for your patience...
Hi, We have fixed the issues with new eSignature API version and new SDK release candidate. Please have a look at NuGet Store v3.1.3-rc
You can now send envelopeIds as a query parameter or in the request object. We have a v3.1.3-rc branch. Please have a look at these test methods ListStatusChanges and ListStatus
Let us know if this resolves the issue. Thanks
I was encountering this issue on the Ruby client, @RajRele will this fix be included there?
Hi @tedPen, Sorry that you are facing this. We are working on getting the Ruby Client work these issue fixes plus many swagger-spec upgrades. I don't have a expected completion date yet.
For now, I recommend using the raw API to get yourself unblocked for Ruby client. Endpoint -> PUT /v2/accounts/{accountId}/envelopes/status?envelope_ids=request_body
You need to pass the query parameter as envelope_ids=request_body to read envelopeIds from request body.
And body will look like below: { "envelopeIds": [ "fill in envelope id#1", "fill in envelope id#2" ] }
For Ruby: We will be tracking and updating you with our progress here: https://github.com/docusign/docusign-ruby-client/issues/15
Thank you for your patience.
Thanks @ewillman, closing this issue as resolved. Please open a new issue if you have any questions.
the following code:
results in an INVALID_REQUEST_PARAMETER exception.
I have capture the http request and response from this code with fiddler: request:
the response:
There is a nearly identical error reported on stackoverflow by a developer using the REST API directly, and the answer was to add an additional querystring parameter to the request URI (https://stackoverflow.com/questions/50644862/invalid-request-parameter-on-liststatus), but obviously, this would require modification of the SDK.