PrintBase
  • Product
  • Pricing
  • Docs
  • Resources
PrintBase/Guides/Printer models and the PrintBase API

Print ZPL shipping labels to a Zebra ZD420

Send ZPL to a Zebra ZD420 from your app. The agent writes raw bytes to the OS queue. No Browser Print port and no public IP.

For Warehouses and sellers printing ZPL on a ZD420

Overview

The ZD420 is a desktop Zebra sold as direct-thermal and thermal-transfer variants, and in 203 dpi and 300 dpi printheads. PrintBase does not detect which one you bought. Read the configuration label and size ZPL in dots for that head: a 4 by 6 inch label is 812 by 1218 dots at 203 dpi and 1218 by 1824 at 300 dpi.

PrintBase does not ship a driver for this model. The agent prints to a queue the operating system already lists. Raw bytes go straight through: from memory into the Windows spooler, or via lp -o raw on macOS and Linux. PDF jobs go through the OS driver. A PDF marked as raw is rejected with INVALID_CONTENT.

Set ^PW and ^LL for the head you have. A 203 dpi layout looks shrunken on a 300 dpi ZD420. USB models need the agent on the PC that has the cable. Network models still need an OS queue on that PC; the cloud does not open port 9100 on the printer.

Integration steps

  1. 01

    Install the printer in the OS

    Use the vendor driver or a raw port until a test page works. The agent cannot see a device the operating system does not list.

  2. 02

    Read the numeric code

    GET /v1/printers returns code. That integer is printer_code on POST /v1/print-jobs. The name is for humans.

  3. 03

    Match content_type to the payload

    ZPL, EPL, TSPL, and ESC/POS are content_type raw, standard base64. Office documents and driver labels are content_type pdf.

  4. 04

    Key the job to the business id

    Reuse one Idempotency-Key per label. A reprint uses a new key. The same key with a different body returns HTTP 409.

  5. 05

    Wait for completed

    HTTP 201 means status queued. Poll GET /v1/print-jobs/{id}. Paid plans can subscribe to print_job.completed and print_job.failed only.

Node.js

// ZD420 shipping label as ZPL
const res = await fetch('https://api.printbase.cloud/v1/print-jobs', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PRINTBASE_API_KEY}`,
    'Content-Type': 'application/json',
    'Idempotency-Key': idempotencyKey,
  },
  body: JSON.stringify({
    printer_code: Number(process.env.PRINTER_CODE),
    content_type: 'raw',
    content: Buffer.from(zpl,'utf8').toString('base64'),
    copies: 1,
  }),
});
if (!res.ok) throw new Error(`PrintBase ${res.status}: ${await res.text()}`);
const job = await res.json();
// { id: "job_abc", status: "queued" }

Details for this setup

Model notes

Set ^PW and ^LL for the head you have. A 203 dpi layout looks shrunken on a 300 dpi ZD420. USB models need the agent on the PC that has the cable. Network models still need an OS queue on that PC; the cloud does not open port 9100 on the printer.

Raw versus PDF on this queue

Raw is not reflowed. On Windows a PDF needs an application that handles PrintTo; the agent error text names Adobe Reader or SumatraPDF as examples. macOS and Linux use lp.

Questions

Does the ZD420 need Zebra Browser Print?

No. Browser Print is a localhost helper for browsers. Here the server posts ZPL and the agent prints it. See the Browser Print comparison if you are leaving that tool.

Can I send a carrier PDF instead?

Yes, content_type pdf, if you would rather use the driver. Do not send the PDF bytes as raw.

How do copies work?

copies greater than 1 on a single ^XA label with no ^PQ, ^SN, or ^SF is folded into ^PQ so the printer repeats it.

Which Windows driver?

Install the Zebra driver so the OS lists the printer. Raw jobs are spooled as raw bytes rather than rendered by that driver as a page.

Related guides

  • Print ZPL labels to a Zebra ZD620

    Send ZPL to a ZD620 through the print API. Match dot size to the 203 or 300 dpi head. The agent does not need a public printer IP.

  • How to auto-print Shopify shipping labels

    Print a Shopify shipping-label PDF on a local thermal printer from your own app. No PrintBase Shopify plugin — one API call after the label exists.

  • Print Odoo ZPL labels without the IoT Box

    Send ZPL from Odoo to a Zebra the OS can already see. No PrintBase Odoo app and no IoT Box — a server action calls the API.

  • Zebra Browser Print alternative: send ZPL from your server

    Zebra Browser Print is a localhost helper that sends ZPL from a web page on ports 9100 and 9101. A server-side app can send the same ZPL through the print API instead.

Free plan: 100 jobs a month on one computer, no card.

Create a free accountRead the API docs
PrintBase

PrintBase connects your applications to physical printers anywhere - securely, reliably, and in real time.

Product
Receipt PrintingLabel PrintingDashboardDevicesWebhooks
Resources
DocsBlogStatusAPI ReferenceDownloadPrintBase vs PrintNodePrintNode PricingFAQ
Guides
All guidesIntegrationsPrintersCode samplesComparisonsUse casesTroubleshooting
Company
ContactSecurityPrivacy

© 2026 Aveniq Technologies OÜ. All rights reserved. PrintBase is a service of Aveniq Technologies OÜ.

PrivacyTermsRefunds