我尝试为复合模板创建模板,同时从docusign获取响应我遇到了一些问题。下面是我为复合模板创建的XML。
我收到了BAD请求错误。
<envelopeDefinition xmlns="http://www.docusign.com/restapi">
<accountId>ACCOUNTID</accountId>
<status>sent</status>
<compositeTemplates>
<compositeTemplate>
<serverTemplates>
<serverTemplate>
<sequence>1</sequence>
<templateId>xxxxxxxxxxxx</templateId>
</serverTemplate>
</serverTemplates>
<inlineTemplates>
<inlineTemplate>
<sequence>1</sequence>
<recipients>
<signers>
<signer>
<email>xxxxxxxxxxxx@yahoo.com</email>
<name>234 234</name>
<recipientId>1</recipientId>
<roleName>Contractor</roleName>
<clientUserId>1</clientUserId>
</signer>
</signers>
</recipients>
</inlineTemplate>
</inlineTemplates>
</compositeTemplate>
<compositeTemplate>
<serverTemplates>
<serverTemplate>
<sequence>2</sequence>
<templateId>xxxxxxxxxxxx</templateId>
</serverTemplate>
</serverTemplates>
<inlineTemplates>
<inlineTemplate>
<sequence>1</sequence>
<recipients>
<signers>
<signer>
<email>xxxxxxxxxxxx@yahoo.com</email>
<name>234 234</name>
<recipientId>1</recipientId>
<roleName>Contractor</roleName>
<clientUserId>1</clientUserId>
</signer>
</signers>
</recipients>
</inlineTemplate>
</inlineTemplates>
</compositeTemplate>
<compositeTemplate>
<serverTemplates>
<serverTemplate>
<sequence>3</sequence>
<templateId>xxxxxxxxxxxx</templateId>
</serverTemplate>
</serverTemplates>
<inlineTemplates>
<inlineTemplate>
<sequence>1</sequence>
<recipients>
<signers>
<signer>
<email>xxxxxxxxxxxx@yahoo.com</email>
<name>234 234</name>
<recipientId>1</recipientId>
<roleName>Contractor</roleName>
<clientUserId>1</clientUserId>
</signer>
</signers>
</recipients>
</inlineTemplate>
</inlineTemplates>
</compositeTemplate>
<compositeTemplate>
<serverTemplates>
<serverTemplate>
<sequence>4</sequence>
<templateId>xxxxxxxxxxxx</templateId>
</serverTemplate>
</serverTemplates>
<inlineTemplates>
<inlineTemplate>
<sequence>1</sequence>
<recipients>
<signers>
<signer>
<email>xxxxxxxxxxxx@yahoo.com</email>
<name>234 234</name>
<recipientId>1</recipientId>
<roleName>Contractor</roleName>
<clientUserId>1</clientUserId>
</signer>
<signer>
<email />
<name />
<recipientId>4</recipientId>
<roleName>Legal</roleName>
<clientUserId>1</clientUserId>
</signer>
</signers>
</recipients>
</inlineTemplate>
</inlineTemplates>
</compositeTemplate>
<compositeTemplate>
<serverTemplates>
<serverTemplate>
<sequence>5</sequence>
<templateId>xxxxxxxxxxxx</templateId>
</serverTemplate>
</serverTemplates>
<inlineTemplates>
<inlineTemplate>
<sequence>1</sequence>
<recipients>
<signers>
<signer>
<email>xxxxxxxxxxxx@yahoo.com</email>
<name>234 234</name>
<recipientId>1</recipientId>
<roleName>Contractor</roleName>
<clientUserId>1</clientUserId>
</signer>
</signers>
</recipients>
</inlineTemplate>
</inlineTemplates>
</compositeTemplate>
</compositeTemplates>
</envelopeDefinition>
答案 0 :(得分:0)
您可以使用DocuSign REST API自动生成的帮助页面来确定请求的哪个部分无效。它显示了v2中所有API调用的示例,您可以查看JSON或XML格式的有效请求: