First of all, select Make API Call module:

Now change API Endpoint Path into the following:


Now in the Body section click on Add Item

And add item with Key set to templateId
and Value set to your HTML template id
you can find your HTML template id at

we set here to default 1 which is invoice template



HTML template may look like this (use Mustache template syntax):

<!doctype html>
<html lang=”en-US”>
<title>Invoice {{}} {{}}</title>
<link rel=”stylesheet” href=”” integrity=”sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn” crossorigin=”anonymous”>
{{#if paid}}
<div style=”border-width: 3px;border-style: solid; border-color: #008000;border-radius: 8px; color: #008000; opacity:0.4; position: absolute; z-index: 1; left:80%; top:3%; font-size: 60pt;transform: rotate(-20deg)”>
PAID </div>

<div class=”container”>
<div class=””>
<div class=””>

<!– invoice: header begin–>
<div class=”row col-md-12″>
<div class=”col col-md-6″>
<div class=”font-weight-bold”>{{}}</div>

<div class=””>{{}}</div>
<div class=””>{{issuer.address}}</div>
<div class=””>{{}}</div>
<div class=””>{{}}</div>

And then add another item with Key as templateData
and set Value to the JSON string with input JSON data:

Make sure to enable these switches:
Forcely enable async mode

Auto-run job/check for async jobs

Run the module and it will take HTML template + JSON data = and will generate output PDF:

Final PDF:

Related Pages:

Related Samples: