0
votes

I am trying to create an envelope using a composite template. I created a server Template with roles for each signer. I would like to specify the role data at creation, attach a local side document and then overlay the server template for routing. I can get through auth, find the teplate ID everything up to creating the envelope. Please see my JSON post below:

--MYBoundary

Content-Type: application/json
Content-Disposition: form-data; 
{
"emailBlurb":"Test Email Body",
"emailSubject":"Test Email Subject",
"status":"created",
"compositeTemplates": [
{
"compositeTemplateId": "1",
"inlineTemplates": [
{
"sequence": "1",
"recipients": {
"signers" : [
{
"email": "[email protected]",
"name": "Boss",
"recipientId": "1",
"roleName": "GM"
},
{
"email": "[email protected]",
"name": "Name Here",
"recipientId": "3",
"roleName": "PX"
},
{
"email": "[email protected]",
"name": "Diff Name",
"recipientId": "2",
"roleName": "OO"
}
]
}
}
],
"document": {
"documentId": "1",
"name": "LV_EOTF-Non-Mod_Commitment_Letter.DOCX"
},
"serverTemplates": [
{
"sequence": "2",
"templateId": "TempID"
}
]
}
]
}
--MYBoundary

Content-Disposition: form-data; name="file"; filename="LV_EOTF-Non-Mod_Commitment_Letter.DOCX"; documentid=1; compositeTemplateId=1
Content-Type: application/octet-stream

<Doc bytes here>
--MYBoundary--

I am getting the error response:

    {  "errorCode": "INVALID_REQUEST_PARAMETER",
"message": "The request contained at least one invalid parameter. Template definition must include an 'envelopeTemplateDefinition' section."
}

I've searched every thread I could find and have tried emulating them. It just isn't working. Any help would be most appreciated.

1
Update: The issue was the fact that I was accessing the Template Folder instead of the Envelope folder in the URL. This one about about drove me crazy... - Hacksaw

1 Answers

-3
votes

Can you please check the example provided by me in the below link.

Several editable PDF

The example shows how to create an envelope using servertemplate and inlinetemplate.