Shopify labels with ZPL
Print Shopify shipping and product labels on a Zebra printer: crop Shopify's PDFs to 4 × 6, make barcode labels, or generate labels from order webhooks.
Your file is downloading.
Free, with no daily limit. A free account also saves your designs and gives you an API key.
How it fits
Shipping labels: if the PDF doesn't fit your printer, the resizer crops it to 4 × 6.
Product labels: export your products and use Excel to ZPL, or the SKU and UPC generators.
Automating it: an order webhook can call the API.
Example
app.post("/webhooks/orders-paid", async (req, res) => {
const o = req.body;
await fetch("https://api.openzpl.com/v1/templates/d123", {
method: "POST", headers: {"X-API-Key": KEY, "Content-Type": "application/json"},
body: JSON.stringify({data: {order: o.name, name: o.shipping_address.name}})
});
res.sendStatus(200);
});
Setting it up
Design the label in the designer with {{variables}}, save it, and copy its ID from the dashboard. Create an API key, then send your data to POST /v1/templates/{id}. The API docs have the details.
Questions
Is there a Shopify app?
Not yet: today it's the tools above and the API.
Do I need to install anything?
Not to render labels: it's an HTTP API. To send them to a printer on your network, run the [print agent](/print-agent/) next to it.
What does it cost?
A free key allows 20 labels a day. Pro is $29 a month for 100,000 labels, and Business $99 for 1,000,000. See [pricing](/pricing/).
Related
Need something we don't have yet?
A connector for your system, a label format or a new tool: tell us what you use and we'll look at building it.