Generate a single 1D barcode
Render a 1D barcode for a GTIN. Symbology is auto-selected from GTIN length unless overridden via barcode_type. Returns image bytes (image/svg+xml, image/png, application/postscript, or application/pdf).
Caching: responses are deterministic given the request body. The endpoint sets Cache-Control: public, max-age=2592000 (30 days) and a strong ETag over the image bytes. Clients sending If-None-Match with a matching ETag get 304 Not Modified.
Documentation Index
Fetch the complete documentation index at: https://docs.closient.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Body
Request body for synchronous 1D barcode generation.
GTIN (8/12/13/14 digits) or AI-bracketed string for GS1-128.
Symbology. auto picks the right family from GTIN length.
auto, ean13, ean8, jan, upca, upce, itf14, ean14, code128, gs1_128, code39 Output image format. svg is scalable vector output with embedded OCR-B HRT glyphs (the preferred print-shop format); png is raster output; eps is PostScript for legacy label-printer drivers; pdf (C-2852) is vector PDF for print houses — the SVG goes through svglib + reportlab so the PDF contains path operators, not a rasterised preview.
svg, png, eps, pdf Module (narrowest bar) width in millimeters. Default 0.33mm matches GS1 retail-scan recommendations. Increase to ~0.5-1.0mm for outer-case ITF-14 / shipping containers.
0.1 <= x <= 2Symbol height in millimeters. Default 25.0mm matches GS1 retail minimum. Reduce for compact labels; increase for warehouse-scan distance.
1 <= x <= 100Human-readable text size in points. Default 10pt. Values below 8pt switch Zint to its compact-text rendering (--small); values 8pt and above render at standard size.
4 <= x <= 24Quiet zone (white margin around the symbol) in millimeters. Default 6.5mm matches GS1 retail recommendations. Set to 0 to disable the quiet-zone markers entirely.
0 <= x <= 20Render the human-readable GTIN below the bars. Default true.
Embed the OCR-B font in SVG output for portable rendering. Default true. No effect on PNG / EPS output.
Response
OK
The response is of type file.