没有服务器模板的 DocuSign 错误代码 ENVELOPE_IS_INCOMPLETE,使用服务器模板成功
DocuSign error code ENVELOPE_IS_INCOMPLETE without server template, succeeds with server template
以下请求正文returns错误代码:ENVELOPE_IS_INCOMPLETE
The Envelope is not Complete. A Complete Envelope Requires Documents,
Recipients, Tabs, and a Subject Line.
{
"status":"sent",
"compositeTemplates":[
{
"inlineTemplates":[
{
"sequence":"1",
"recipients":{
"signers":[
{
"name":"Dr. Oswald",
"email":"somewhere@google.com",
"accessCode":null,
"roleName":"recipient",
"clientUserId":"test",
"recipientId":"1",
"tabs":{
"textTabs":[
{
"tabLabel":"\*recipientFullName",
"value":"Grace Hooper",
"tabId":null,
"tabLocked":false
}
],
"checkboxTabs":[
],
"titleTabs":[
]
},
"routingOrder":null
}
],
"agents":[
]
},
"customFields":null
}
],
"document":{
"name":"HIA",
"documentId":1,
"documentBase64":"...",
"transformPdfFields":true
}
}
],
"notification":null
}
但添加服务器模板 - 有效。根据文档,CompositeTemplate
不需要 ServerTemplate
。这个请求可以:
{
"status":"sent",
"compositeTemplates":[
{
"serverTemplates":[ // THIS IS THE ONLY ADDITION
{
"sequence":"0",
"templateId":"ASDASDASD-SD-SADS-AA9A-ASD"
}
],
"inlineTemplates":[
{
"sequence":"1",
"recipients":{
"signers":[
{
"name":"Dr. Oswald",
"email":"someone@google.com",
"accessCode":null,
"roleName":"recipient",
"clientUserId":"test",
"recipientId":"1",
"tabs":{
"textTabs":[
{
"tabLabel":"\*recipientFullName",
"value":"Grace Hooper",
"tabId":null,
"tabLocked":false
}
],
"checkboxTabs":[
],
"titleTabs":[
]
},
"routingOrder":null
}
],
"agents":[
]
},
"customFields":null
}
],
"document":{
"name":"HIA",
"documentId":1,
"documentBase64":"...",
"transformPdfFields":true
}
}
],
"notification":null
}
这里的报错信息是正确的,我需要添加邮件主题,问题就解决了。空字符串不起作用。
A Complete Envelope Requires Documents, Recipients, Tabs, and a Subject Line.
在请求中添加 emailSubject
解决了这个问题。
以下请求正文returns错误代码:ENVELOPE_IS_INCOMPLETE
The Envelope is not Complete. A Complete Envelope Requires Documents, Recipients, Tabs, and a Subject Line.
{
"status":"sent",
"compositeTemplates":[
{
"inlineTemplates":[
{
"sequence":"1",
"recipients":{
"signers":[
{
"name":"Dr. Oswald",
"email":"somewhere@google.com",
"accessCode":null,
"roleName":"recipient",
"clientUserId":"test",
"recipientId":"1",
"tabs":{
"textTabs":[
{
"tabLabel":"\*recipientFullName",
"value":"Grace Hooper",
"tabId":null,
"tabLocked":false
}
],
"checkboxTabs":[
],
"titleTabs":[
]
},
"routingOrder":null
}
],
"agents":[
]
},
"customFields":null
}
],
"document":{
"name":"HIA",
"documentId":1,
"documentBase64":"...",
"transformPdfFields":true
}
}
],
"notification":null
}
但添加服务器模板 - 有效。根据文档,CompositeTemplate
不需要 ServerTemplate
。这个请求可以:
{
"status":"sent",
"compositeTemplates":[
{
"serverTemplates":[ // THIS IS THE ONLY ADDITION
{
"sequence":"0",
"templateId":"ASDASDASD-SD-SADS-AA9A-ASD"
}
],
"inlineTemplates":[
{
"sequence":"1",
"recipients":{
"signers":[
{
"name":"Dr. Oswald",
"email":"someone@google.com",
"accessCode":null,
"roleName":"recipient",
"clientUserId":"test",
"recipientId":"1",
"tabs":{
"textTabs":[
{
"tabLabel":"\*recipientFullName",
"value":"Grace Hooper",
"tabId":null,
"tabLocked":false
}
],
"checkboxTabs":[
],
"titleTabs":[
]
},
"routingOrder":null
}
],
"agents":[
]
},
"customFields":null
}
],
"document":{
"name":"HIA",
"documentId":1,
"documentBase64":"...",
"transformPdfFields":true
}
}
],
"notification":null
}
这里的报错信息是正确的,我需要添加邮件主题,问题就解决了。空字符串不起作用。
A Complete Envelope Requires Documents, Recipients, Tabs, and a Subject Line.
在请求中添加 emailSubject
解决了这个问题。