NetSuite labels with ZPL
Generate ZPL labels from NetSuite with a SuiteScript: post the record's data to the OpenZPL API and get filled ZPL, a PNG or a PDF back.
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
A SuiteScript can call the API from a button or a workflow, so the layout lives in a design and not in a script.
Example
const res = https.post({
url: "https://api.openzpl.com/v1/templates/d123",
headers: {"X-API-Key": key, "Accept": "text/plain", "Content-Type": "application/json"},
body: JSON.stringify({data: {sku: item.getValue("itemid")}})
});
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
How does the label reach the printer?
NetSuite runs in the cloud, so it needs an agent to reach a printer on your network. The [OpenZPL print agent](/print-agent/) does that.
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.