Label sheet
About this tool
How to use it
- Choose this tool.
- Paste your list, or add a CSV or Excel file with Upload or drag and drop.
- Write what each label should say and choose your label sheet type.
- Add a QR code or barcode if you need one, then press Generate.
- Download the PDF.
What you get back
Try Label sheet in the Studio
Use it from your code
cURL
curl -X POST "https://app.h2i.davixlabs.io/v1/render/labels" \
-H "X-Api-Key: $DAVIX_H2I_API_KEY" \
-F 'data=Country,Orders
Germany,12
France,8' \
-F 'template={{name}}
{{street}}
{{postcode}} {{city}}' \
-F 'layout=avery-l7160'Node.js
const { DavixH2I } = require('@davixlabs/h2i-sdk');
const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.render.labels({
"data": "Country,Orders\nGermany,12\nFrance,8",
"template": "{{name}}\n{{street}}\n{{postcode}} {{city}}",
"layout": "avery-l7160"
});
console.log(result.data, result.requestId);PHP
<?php
require 'vendor/autoload.php';
$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->render()->labels([
'data' => 'Country,Orders
Germany,12
France,8',
'template' => '{{name}}
{{street}}
{{postcode}} {{city}}',
'layout' => 'avery-l7160',
]);
echo $result->requestId;