I am trying to send an envelope that is composed of Template1 (1 pdf document) Template2 (2 pdf documents, 1-regular fill-out, 2-with attach extra document tab)
If I use just template1 or template2 individually, I am able to send out the envelope. However, I can not send it both templates at the same time, I get the following error, and not sure what it means.
<errorDetails xmlns="http://www.docusign.com/restapi" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<errorCode>TAB_REFERS_TO_MISSING_DOCUMENT</errorCode>
<message>The DocumentId specified in the tab element does not refer to a document in this envelope. Tab refers to DocumentId 2 which is not present.</message>
</errorDetails>
Here is the code that I am using:
{
"emailSubject": "Account Setup",
"emailBlurb": "Please fill out the form",
"status": "sent",
"compositeTemplates": [{
"compositeTemplateId": "compositeTemplate1",
"serverTemplates": [
/* STANDARD ACCOUNT FORM */
{
"sequence": "2",
"templateId": "182B70AD-*"
},
/* ELECTRONIC TRANSFER FORM */
{
"sequence": "3",
"templateId": "B2B0BF8D-*"
}
],
"inlineTemplates": [{
"sequence": "1",
"recipients": {
"signers": [{
"email": "email@gmail.com",
"name": "First Last",
"recipientId": "1",
"roleName": "Client",
"RequireIDLookup": "true",
"RequireIDLookupSpecified": "true",
"idCheckConfigurationName": "Phone Auth $",
"phoneAuthentication": {
"recipMayProvideNumber": "false",
"senderProvidedNumbers": [
"914-000-0000"
]
}
}]
}
}]
}]
}
Please advise.