Skip to main content
POST
/
products
/
api
/
v1
/
datamatrix
Generate a single GS1 DataMatrix
curl --request POST \
  --url https://www.closient.com/products/api/v1/datamatrix/ \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "gtin": "<string>",
  "lot": "<string>",
  "serial": "<string>",
  "expiry": "<string>",
  "format": "svg"
}
'
"<string>"

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

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.

Available options:
svg,
png

Response

OK

The response is of type file.