Existing customer? Sign In
Below is the JSON used to create the qr codes above. All the attributes within the data parameter are non-mandatory. Supply only what you want to populate on the document.
{
"template": "qr_codes",
"data": {
"title": "Product Labels",
"unit": "mm",
"margin_x": 0,
"margin_y": 5,
"label_width": 35,
"label_height": 35,
"label_margin_x": 5,
"label_margin_y": 8,
"columns": 3,
"labels": [
{
"qr": "https://example.com/product/1",
"description": "Product 1 - XFR582"
},
{
"qr": "https://example.com/product/2",
"description": "Product 2 - XFR583"
},
{
"qr": "https://example.com/product/3",
"description": "Product 3 - XFR584"
},
{
"qr": "https://example.com/product/4",
"description": "Product 4 - XFR585"
},
{
"qr": "https://example.com/product/5",
"description": "Product 5 - XFR586"
},
{
"qr": "https://example.com/product/6",
"description": "Product 6 - XFR587"
},
{
"qr": "https://example.com/product/7",
"description": "Product 7 - XFR588"
},
{
"qr": "https://example.com/product/8",
"description": "Product 8 - XFR589"
},
{
"qr": "https://example.com/product/9",
"description": "Product 9 - XFR590"
},
{
"qr": "https://example.com/product/10",
"description": "Product 10 - XFR591"
},
{
"qr": "https://example.com/product/11",
"description": "Product 11 - XFR592"
},
{
"qr": "https://example.com/product/12",
"description": "Product 12 - XFR593"
},
{
"qr": "https://example.com/product/13",
"description": "Product 13 - XFR594"
},
{
"qr": "https://example.com/product/14",
"description": "Product 14 - XFR595"
},
{
"qr": "https://example.com/product/15",
"description": "Product 15 - XFR596"
}
]
}
}
It's easy to change the look and feel of the qr codes. The template API allows you to easily insert your own logo and specify a custom font.
{
"template": "qr_codes",
"font": "Open Sans",
"font_size": 0.9,
"font_color": "#32325d",
"data" : {...}
}
By default all templates are generated as a PDF document. If you would like to generate as a PNG or WEBP image, supply the file_type parameter in your API request:
{
"template": "qr_codes",
"file_type": "png",
"data" : {...}
}
Not a developer? No problem! Docamatic's Zapier integration allows you to easily generate qr codess without coding.
If you prefer to build your own templates or require more flexibility, be sure to try our HTML to PDF API . We are using the same HTML to PDF API to generate the qr codes above!
Back to templates