20. Send an Envelope Using CompositeTemplates
POST {{baseUrl}}/{{apiVersion}}/accounts/{{accountId}}/envelopes
In this example, we will use the template we created in previous step and we will use CompositeTemplates
to add a signer and a tab to it using inlineTemplates
. You can see how one can create a template and keep reusing it this way.
Request Body
{"emailBlurb"=>"Create an envelope with a templateId", "emailSubject"=>"Template", "compositeTemplates"=>[{"serverTemplates"=>[{"sequence"=>"1", "templateId"=>"{{templateId}}"}], "inlineTemplates"=>[{"recipients"=>{"signers"=>[{"email"=>"{{user1}}", "name"=>"{{user1_name}}", "recipientId"=>"2", "roleName"=>"seller", "tabs"=>{"signHereTabs"=>[{"anchorString"=>"test", "anchorUnits"=>"pixels", "anchorXOffset"=>"200", "anchorYOffset"=>"10"}]}}]}, "sequence"=>"2"}]}], "status"=>"sent"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |