Automating 4x6" ZPL II Inserts Right After Courier Labels (BaseLinker, Shopify & Zebra)
How to wire POST /api/zpl-compile into warehouse workflows so a Zebra GK420d, ZD421, Munbyn, or Rollo prints the buyer's destination insert in <5 ms.
| Webhook Endpoint | POST /api/zpl-compile |
|---|---|
| Compute Latency | < 5 ms deterministic Edge compilation |
| Supported Printers | Zebra ZPL II (GK420d/ZD421/ZT230), Munbyn, Rollo |
| Label Stock | Standard 100x150 mm (4x6") Fanfold / Roll |
1. One thermal roll, zero laser printer on the packing bench
Adding an A4 laser printer for compliance slips slows down packing benches and jams with dust. Because every fulfillment station already loads 100x150 mm (4x6") direct thermal rolls for DHL, DPD, or Royal Mail, sending a second raw ZPL II ^XA...^XZ stream directly to the same print queue eliminates paper tray switching.
curl -X POST https://packpasseu.com/api/zpl-compile \
-H "Content-Type: application/json" \
-d '{"dpi":203,"primaryInsertLang":"FR","sku":"MERINO-04","materialSlugs":["pap-20","ldpe-04"]}' 2. Routing by shipping_country in Shopify Flow or BaseLinker
Map destination country codes to primaryInsertLang: FR -> FR, IT -> IT, DE/AT -> DE, PL -> PL, all other EU -> EN. Pass today's ISO date as the lot parameter so batch traceability stays synchronized automatically.
- Verify ^CI28 UTF-8 encoding is supported on your Zebra firmware (V53+ / Link-OS).
- Route raw ZPL II output straight to the thermal printer port (TCP 9100 or PrintNode/BaseLinker Printer).