Generate a single QR code
Authorizations
Body
Request body for the synchronous single-QR endpoint.
Encodes a GS1 Digital Link URL as a QR code. The gtin is the only
required identifier; lot, serial, and expiry are GS1
Application Identifier values that, when present, are appended to the
Digital Link path/query so a phone scan resolves to the most specific
instance available.
GTIN barcode (GTIN-8, 12, 13, or 14, with or without separators). Normalized to GTIN-14 server-side before encoding into the Digital Link URL.
8 - 17^[\d\s\-]{8,17}$Optional GS1 AI(10) lot/batch identifier — 1-20 printable ASCII chars, no spaces. Encoded into the Digital Link path as /10/{lot}. When present alongside serial, both are added (lot before serial).
1 - 20^[\x21-\x7E]{1,20}$Optional GS1 AI(21) serial identifier — 1-20 printable ASCII chars, no spaces. Encoded into the Digital Link path as /21/{serial}. Use serial for unit-level traceability when each item carries a unique tag.
1 - 20^[\x21-\x7E]{1,20}$Optional GS1 AI(17) expiry date as YYMMDD — exactly 6 digits (e.g. 261231 for 2026-12-31). Encoded into the Digital Link query as ?17={expiry}.
6^\d{6}$Output image format. svg for resolution-independent vector output; png for raster output sized by size; pdf for single-page vector PDF (path operators in the content stream — for print houses that scale to label size at the press, not in the browser); eps for PostScript vector output that packaging-design tools ingest into Illustrator.
svg, png, pdf, eps, tif Target image side length in pixels (50-2000). QR codes are square, so this is both width and height. For format='svg', format='pdf', and format='eps' the value is treated as the target width in SVG user units / PostScript points (1pt = 1/72 inch ≈ 0.353mm), so a 400-unit symbol is roughly 140mm wide. Ignored when xdim_mm is set — X-dimension-correct sizing supersedes the pixel heuristic.
50 <= x <= 2000Emit CMYK process colours instead of RGB. Only valid with format='eps' — any other format returns 422. Use for print houses that ingest the EPS directly into a CMYK workflow, avoiding an RGB→CMYK conversion that can shift module ink density.
Target physical X-dimension (module width) in millimetres. When set, the symbol is sized so each module is exactly this wide on the printed surface (via Zint --scalexdimdp), size is ignored, and physical-size metadata travels with the file (PNG pHYs chunk, TIF resolution IFD tags, SVG width/height in mm). GS1 recommends 0.625 mm for consumer packaging; 0.495 mm is the GS1 minimum. Null keeps the legacy pixel-heuristic sizing.
0.1 <= x <= 10Device resolution in dots per millimetre, used only when xdim_mm is set. Default 11.81 (300 dpi), matching the label/flexo presses we target. Affects the raster pixel grid for PNG/TIF; vector outputs (SVG/EPS) carry physical units regardless.
1 <= x <= 200Response
OK
The response is of type file.