PrintBase
  • Product
  • Pricing
  • Docs
  • Resources
PrintBase/Guides/Printing use cases

Prescription label printing from a web pharmacy system

A web pharmacy system can send a label PDF or ZPL to the store printer. This page claims no pharmacy regulatory status.

For Pharmacy software teams printing labels in the store

Overview

The label content, warnings, and drug name come from the pharmacy system. The print API transports the file to the store printer_code. Nothing here is a claim of pharmacy accreditation or a specific country's labeling law.

Trigger the print from the verified fill step, on the server. The pharmacist's browser must not hold the API key. Prefer a layout the store's label printer can scan and read at the size you tested.

Store the job id on the fill. A PRINT_ERROR should block the hand-off in your workflow if a missing label is unacceptable. The API will not enforce that policy.

Integration steps

  1. 01

    Decide the printer before the click

    Map the station, store, or line to a printer_code from GET /v1/printers. Do not ask the operator to pick a dialog.

  2. 02

    Create the document in your system

    PDF for driver printers, raw ZPL or ESC/POS when the device speaks that language.

  3. 03

    POST when the business event happens

    Pack, pay, check-in, or scan. Not on every autosave. Use the business id as Idempotency-Key.

  4. 04

    Show the job result where the work is

    queued is not done. Surface AGENT_OFFLINE and PRINT_ERROR to the person at the bench.

Node.js

// Prescription label PDF
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: pdf.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

No regulatory claim

You remain responsible for label content and retention. The agent prints only what you send; it does not fetch the document from the platform for you.

Do not log the label

The body can contain patient data. Log the job id. The agent prints only what you send; it does not fetch the document from the platform for you.

Questions

Is there an NCPDP or similar interface?

No. Integrate from your system. The call is still POST /v1/print-jobs with a Bearer API key, and HTTP 201 means queued rather than printed.

Multi-store?

One printer_code per store, checked so store A cannot address store B.

Vial label versus paperwork?

Two jobs if they are two printers. The call is still POST /v1/print-jobs with a Bearer API key, and HTTP 201 means queued rather than printed.

What if the printer jams?

The job fails or the driver reports an error. Your workflow decides whether the fill can proceed.

Related guides

  • Print specimen labels from a cloud EMR

    A cloud EMR can print a specimen label on the clinic's Zebra or Brother without a VPN to that printer. This page does not claim a medical certification.

  • Print address labels on a DYMO LabelWriter 450

    Send a PDF sized to the DYMO die, such as a 30252 address label. The LabelWriter 450 does not speak ZPL. The agent uses the OS queue.

  • Add printing to a multi-tenant SaaS

    Each customer site prints to its own printer_code. The API key stays on your server. Enterprise accounts can isolate customers in child organizations.

  • Silent printing from browser JavaScript, via your backend

    Browsers will not silently print to a USB device from a public website. Call your backend, and let the backend call the print API.

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