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
- 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.
- 02
Create the document in your system
PDF for driver printers, raw ZPL or ESC/POS when the device speaks that language.
- 03
POST when the business event happens
Pack, pay, check-in, or scan. Not on every autosave. Use the business id as Idempotency-Key.
- 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.
Free plan: 100 jobs a month on one computer, no card.