I am attempting to use the compositeTemplate to create an envelope with the recipient information and a document provided by the user. Neither the recipient information or the document are added to the envelope at the time of creation. The envelope is however using the template provided in the server template portion. The bytestring variable is the pdfbytes. I am using the REST API. Below is my xml string. Any help is appreciated.
EDITED 9/12 with the same original results. As an additional note, I have successfully created an envelope that includes the provided pdf bytes but does not use any templates.
<envelopeDefinition xmlns="http://www.docusign.com/restapi">
...
<compositeTemplates>
<compositeTemplate>
<serverTemplates>
...
</serverTemplates>
<inlineTemplates>
...
</inlineTemplates>
<document>
<name>DOCUSIGN API TEST DOC</name>
<documentId>123456</documentId>
<documentBase64>pdfbytestring</documentBase64>
</document>
</compositeTemplate>
</compositeTemplates>
</envelopeDefinition>