我已经制作了复合模板并让它们工作过,但我突然收到错误,并且不知道为什么会导致问题。这是我的要求:
POST https://demo.docusign.net/restapi/v2/accounts/356019/envelopes HTTP/1.1
Host: demo.docusign.net
X-DocuSign-Authentication: <DocuSignCredentials><Username>test@gmail.com</Username><Password>*****</Password><IntegratorKey>****</IntegratorKey></DocuSignCredentials>
Content-Type: multipart/form-data; boundary=MY_BOUNDARY
Accept: application/json
Content-Length: 807319
Expect: 100-continue
Connection: Keep-Alive
--MY_BOUNDARY
Content-Type: application/json
Content-Disposition: form-data
{
"emailSubject": "Please Docusign this",
"emailBlurb": "This is a test... Also sign this form",
"enableWetSign": "true",
"status": "sent",
"compositeTemplates": [
{
"inlineTemplates": [
{
"sequence": "1",
"recipients": {
"signers": [
{
"email": "test@gmail.com",
"name": "test",
"recipientId": "1"
}
]
}
}],
"document":
{
"documentId": "1",
"name": "test0",
"fileExtension": "pdf"
}
}
]
}
--MY_BOUNDARY
Content-Type: application/pdf
Content-Disposition: file; filename="test0.pdf"; documentid="1"
<pdf bytes here>
--MY_BOUNDARY--
我有这个使用服务器模板,但似乎任何需要文档对象的东西给我一个错误的请求。我得到的要求是:
请求错误:BadRequestDocuSign错误:{ “errorCode”:“UNSPECIFIED_ERROR”, “消息”:“文档已损坏,重建失败” }
我已经在另一个程序中读取了pdf字节,并且已经成功地从中创建了一个pdf,所以我不确定是什么导致了这个问题。有谁知道问题可能是什么?谢谢你的时间。