Print 4x6 labels to a MUNBYN
Print 4 by 6 shipping labels on a MUNBYN by sending PDF to the OS queue. Confirm any raw language in the manual before you send ZPL.
For Sellers using a MUNBYN thermal label printer
Overview
MUNBYN ships several 4 by 6 thermal label printers that Windows and macOS drive with a vendor driver. Treat PDF at 100 by 150 mm as the reliable payload. Some units advertise a printer language; send that as raw only after a local test, not because a listing said ZPL-compatible.
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 the driver stock to 4 by 6 and turn off 'fit to page' if the driver has it. The agent does not change driver preferences. Darkness and speed stay on the printer.
Integration steps
- 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.
- 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.
- 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.
- 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.
- 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
// 4x6 PDF for a MUNBYN
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: 'pdf',
content: labelPdf.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 the driver stock to 4 by 6 and turn off 'fit to page' if the driver has it. The agent does not change driver preferences. Darkness and speed stay 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
Which MUNBYN model?
The page covers the common 4 by 6 shipping units. Check the manual before sending raw commands.
It prints then feeds a blank label.
The driver page size is taller than the mark. Fix the stock size in the OS, then send a PDF of that size.
Can I share one MUNBYN across two apps?
Yes. Both apps send jobs to the same printer_code. Use different idempotency keys.
Is there a MUNBYN SDK in PrintBase?
No. The OS driver plus the print API is the path. The call is still POST /v1/print-jobs with a Bearer API key, and HTTP 201 means queued rather than printed.
Free plan: 100 jobs a month on one computer, no card.