Generate a single GS1 DataMatrix
Render a GS1 DataMatrix for a GTIN plus any subset of (lot, serial, expiry). At least one of lot or serial is required. Returns image bytes (image/svg+xml, image/png, 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 GS1 DataMatrix generation.
GTIN (8/12/13/14 digits, normalized to GTIN-14).
Optional GS1 AI(10) lot/batch (1-20 printable ASCII).
Optional GS1 AI(21) serial (1-20 printable ASCII).
Optional GS1 AI(17) expiry as YYMMDD (e.g. '270630' for 2027-06-30).
Output image format. svg is the default scalable vector output; png is raster output; pdf is single-page vector PDF for print workflows (C-2852) — path operators in the content stream rather than a rasterised preview, so a print shop can scale to its target label size at the press.
svg, png, pdf Response
OK
The response is of type file.