Print barcode labels through an API
Print a product label from the PDF or ZPL layout your inventory system already uses. Choose a printer that supports that format, print one label and scan the barcode before sending a batch.
Check one product label
Prepare a label for SKU A-1024 with the item name, the SKU in plain text and a barcode encoding A-1024. Send it to the assigned label printer at the intended media size. Scan it and check that the scanner returns A-1024. For a carrier label, follow the shipping label guide.
Prepare the final label
Generate the barcode, text and layout in your ecommerce, inventory, ERP or WMS system. CloudPrint is not a label designer and does not change the business data. Before uploading, verify that the item, batch, order and barcode value belong to the same operation.
Choose PDF or a printer language
PDF is suitable when the label already exists as a page and the queue supports system printing or an available renderer. For ZPL, TSPL or CPCL files, use document_format=raw and set document_raw_language to zpl, tspl or cpcl. Do not rename one printer language as another or expect CloudPrint to convert it.
Check the discovered capabilities
Call GET /api/v1/printers and inspect capabilities.language_profiles and endpoint.raw_passthrough_available. The agent discovers these values from the printer and queue. Select a route that advertises the required language; do not infer compatibility from a brand name or ask an operator to configure it manually.
Match the physical media
Make the page or command dimensions match the actual label. When the workflow needs it, set media_width_mm, media_height_mm and dpi, then calibrate the gap or mark sensor, darkness and speed on the printer. Scan real samples before rollout; a printed status cannot prove that a clipped barcode is readable.
Route and retry deliberately
Store a printer_id for each workstation or label purpose. Create the job with a stable Idempotency-Key, save print_job_id and follow the terminal result. Reusing the request after a timeout keeps the same key; a deliberate reprint gets a new key and an audit reason.