Skip to main content
POST
Generate a single GS1 DataMatrix

Authorizations

X-API-Key
string
header
required

Body

application/json

Request body for synchronous GS1 DataMatrix generation.

gtin
string
required

GTIN (8/12/13/14 digits, normalized to GTIN-14).

lot
string | null

Optional GS1 AI(10) lot/batch (1-20 printable ASCII).

serial
string | null

Optional GS1 AI(21) serial (1-20 printable ASCII).

expiry
string | null

Optional GS1 AI(17) expiry as YYMMDD (e.g. '270630' for 2027-06-30).

format
enum<string>
default:svg

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.

Available options:
svg,
png,
pdf
xdim_mm
number | null

Target physical X-dimension (module width) in millimetres. Used only when an HRI configuration applies, where it is required — HRI legibility is evaluated against a physical size. The bare symbol ignores it.

Required range: 0.1 <= x <= 10
dpi
enum<integer>
default:300

Raster resolution for format='png' when HRI is composed — 300 or 600 dpi, the two resolutions the HRI print-export pipeline supports. Ignored for vector formats and when no HRI configuration applies.

Available options:
300,
600
hri
HRIOptions · object | null

Human Readable Interpretation configuration to compose onto the symbol (C-4395) — placement, layout, notation and typography. Takes precedence over hri_preset and the organization's default preset.

Example:
hri_preset
string | null

Name of a saved HRI preset (see POST /hri-presets/) to apply instead of specifying hri inline. Resolved against the calling organization; unknown names return 422. Ignored when hri is set.

Maximum string length: 128

Response

OK

The response is of type file.