Docusignapi DocuSign API使用XML将信封移动到回收站

Docusignapi DocuSign API使用XML将信封移动到回收站,docusignapi,Docusignapi,我在尝试使用RESTAPI将已完成的信封移动到DocuSign中已删除的容器时遇到问题。我得到的错误是: <errorDetails xmlns="http://www.docusign.com/restapi" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <errorCode>INVALID_REQUEST_BODY</errorCode> <message>The r

我在尝试使用RESTAPI将已完成的信封移动到DocuSign中已删除的容器时遇到问题。我得到的错误是:

<errorDetails xmlns="http://www.docusign.com/restapi" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <errorCode>INVALID_REQUEST_BODY</errorCode>
    <message>The request body is missing or improperly formatted. &lt;envelopeMoveRequest xmlns=''&gt; was not expected.</message>
</errorDetails>

无效的\u请求\u正文
请求正文缺失或格式不正确。不应为EnvelopemOverRequest xmlns=''。
以下是我进行的API调用:


地址:{accountid}/folders/recyclebin
Http方法:PUT
内容类型:应用程序/xml
标题:{Content Type=[application/xml],Accept=[application/xml],X-DocuSign-Authentication=[{“Username”:“Username”,“Password”:“Password”,“IntegratorKey”:“integrator key”}],上下文长度=[31274]}
有效载荷:

<?xml version="1.0" encoding="UTF-8"?>
<envelopeMoveRequest xmlns="http://www.docusign.com/restapi" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <envelopeIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>EnvelopeId</d2p1:string>
  </envelopeIds>
  <fromFolderId/>
</envelopeMoveRequest>

信封ID

我可能需要一些帮助来找出我的API调用是如何出错的。

通常DocuSign请求对应的
XML
(与JSON等价物相比)具有表示集合或数组的单个元素的额外节点。因此,在本例中,请尝试为每个信封ID添加一个单独的节点

现在你有:

<envelopeIds>EnvelopeId</envelopeIds>
EnvelopeId
尝试更改为:

<envelopeIds>
    <envelopeId>EnvelopeId</envelopeId>
</envelopeIds>

信封ID

以下内容对我来说很有用。确保您没有复制/粘贴任何隐藏字符或额外字符:

<envelopeMoveRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.docusign.com/restapi">
  <envelopeIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>828a593e-10ae-4e54-bccc-66b5e66a5e81</d2p1:string>
  </envelopeIds>
</envelopeMoveRequest> 

828a593e-10ae-4e54-bccc-66B5E66A55E81

经过一些测试后,我发现使用XML声明:“”是导致错误的原因