listStatus的INVALID_REQUEST_PARAMETER [英] INVALID_REQUEST_PARAMETER on listStatus

查看:94
本文介绍了listStatus的INVALID_REQUEST_PARAMETER的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试查询Docusign以获取一组信封的状态,但是却出现 INVALID_REQUEST_PARAMETER 错误。

I am trying to query Docusign to get a status of a set of envelopes but I am getting the INVALID_REQUEST_PARAMETER error.

这是我正在进行的卷曲请求

Here is the curl request I am making

curl -X PUT \
  https://na2.docusign.net/restapi/v2/accounts/XXXXX/envelopes/status \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'X-DocuSign-Authentication: { ... }' \
  -d '{
    "envelopeIds": [
        "SOME ENVELOPE ID",
        "ANOTHER ENVELOPE ID"
    ]
  }'

我得到的完整错误

{
    "errorCode": "INVALID_REQUEST_PARAMETER",
    "message": "The request contained at least one invalid parameter. Query parameter 'from_date' must be set to a valid DateTime, or 'envelope_ids' or 'transaction_ids' must be specified."
}

根据文档(如果我包含 envelopeIds 的数组)这应该工作。它看起来与他们在该文档页面上的示例非常相似。

According to the documentation if I include an array of envelopeIds this should work. It looks very similar to the example they have on that documentation page.

我知道错误消息说要使用 envelope_ids ,所以我尝试了该操作,并得到了相同的错误。

I know the error messages says to use envelope_ids so I tried that and got the same error.

我在这里做什么错了?

推荐答案

如果要传递信封编号在requestBody中,然后在URL中,您需要将查询参数设置为 envelope_ids = request_body ,因此您的完整URI如下所示:

If you want to pass envelopeIds in the requestBody then in the URL you need to set a query parameter as envelope_ids=request_body, so your complete URI will look like below:

PUT /restapi/v2/accounts/<accountId>/envelopes/status?envelope_ids=request_body

然后您可以传递requestBody,如下所示:

then you can pass requestBody as below:

{
    "envelopeIds": ["SOME ENVELOPE ID",
    "ANOTHER ENVELOPE ID"]
}

这篇关于listStatus的INVALID_REQUEST_PARAMETER的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆