Set compression on each definition to EPC_BASE64 or EPC_HEX for a compressed Digital Link. Omit or send null for an uncompressed URI. Compression requires a GTIN and serial number.
Render one code as a Base64-encoded SVG in a JSON response.
The same GS1 validation used by POST /code applies.
This operation requires write:codes and does not save a generated-code record or a file.
GS1 element string with FNC1, Data Matrix ECC 200.
DATAMATRIX_GS1_DIGITAL_LINK_URI
GS1 Digital Link URI in Data Matrix. Requires digitalLinkStem.
GS1_QR
GS1 element string with FNC1 in QR Code.
QR_GS1_DIGITAL_LINK_URI
GS1 Digital Link URI in QR Code. Requires digitalLinkStem.
For QR modes, optional errorCorrectionLevel accepts L, M, Q or H.
Omitting it or sending null selects L. The requested level is used without automatic upgrading.
Data Matrix uses fixed ECC 200: omit errorCorrectionLevel or send null; any other value is rejected.ais and extensionParameters may be omitted or null for empty lists.
linkType and context are optional. The image field contains the SVG encoded as Base64.
The optional compression field accepts EPC_BASE64 (ex) or EPC_HEX (eh).
Omit it or send null to render an uncompressed URI.
Compression is available in QR_GS1_DIGITAL_LINK_URI and DATAMATRIX_GS1_DIGITAL_LINK_URI modes.
It requires a GTIN, a serial number and digitalLinkStem, with the
same AI restrictions as generation.
The SVG encodes the compressed URI. The response still contains image, a Base64-encoded SVG;
this image encoding is separate from the EPC encoding selected by compression.
Invalid compression returns 422 with Validation.Invalid.compression at path compression.
The GS1_QR and GS1_DATAMATRIX modes do not accept compression.
The SVG is black on white, with quiet zones of four modules for QR and one for Data Matrix.
It contains no printed human-readable label.Invalid code definitions or rendering parameters return 422 with an errors array.
The identifying application identifier. With a digitalLinkStem it must be a GS1 Digital Link primary key in the GS1 Barcode Syntax Dictionary; without one, 03 is additionally accepted, the identifier for made-to-order trade items.
GTIN (01) accepts 8, 12, 13 or 14 digits, verifies the mod-10 check digit and normalises the value to 14 digits, so the value you get back may be longer than the one you sent.
GS1 application identifier. Browse the official GS1 Application Identifiers directory for meanings, value formats, required associations and Digital Link usage. The API validates identifiers against its bundled GS1 Barcode Syntax Dictionary; not every AI is valid as a primary key or in every combination.
Further application identifiers. Pass [] for none.
Each key must exist in the GS1 Barcode Syntax Dictionary and its value must match the format that dictionary declares. An AI may not repeat the primary key, keys may not repeat each other, and GS1 "requires" and "excludes" relations between AIs are enforced.
With a digitalLinkStem every AI must be either a path qualifier of the chosen primary key, taken from a single consistent qualifier sequence, or a data attribute that GS1 Digital Link URI Syntax allows in the query string. Qualifiers keep the order GS1 defines, not the order you send.
Temperature AIs (4330 to 4333) are normalised for you: the magnitude is padded to six digits and a negative value keeps its trailing minus.
When compression is selected, the EPC path carries these AIs instead of separate path and query fields.
GS1 application identifier. Browse the official GS1 Application Identifiers directory for meanings, value formats, required associations and Digital Link usage. The API validates identifiers against its bundled GS1 Barcode Syntax Dictionary; not every AI is valid as a primary key or in every combination.
Optional custom query parameters appended to a GS1 Digital Link URI. Omit, send null or pass [] for none.
Only with a digitalLinkStem; a non-empty list without one is rejected. Keys must not be linkType or context, must contain at least one non-digit, must be unique, and both keys and values are limited to unreserved ASCII and URI punctuation.
The origin a GS1 Digital Link path is appended to. Supplying it is what makes this a GS1 Digital Link: send a stem and you get a URI, leave it out and you get a GS1 element string. Must be http or https with a host, and carry no userinfo, query or fragment. A single trailing slash is stripped; empty path segments are rejected.
The GS1 link type the URI resolves to. Only with a digitalLinkStem. A gs1: value must be one the generator offers from the GS1 Web Vocabulary page types; gs1:defaultPage, gs1:defaultPageMulti and gs1:handledBy are not selectable. Any other value must be an absolute http or https URI.
Optional EPC compression of a GS1 Digital Link URI. EPC_BASE64 encodes the EPC binary in URL-safe Base64 (an ex path); EPC_HEX uses hexadecimal (an eh path). Omit or send null for an uncompressed URI.
Requires primary key 01 (GTIN), AI 21 (serial number), and digitalLinkStem. AIs 03, 717, 8014 and 8040–8043 cannot be stored in EPC binary, so a code that contains any of them cannot be compressed. The EPC path carries the AIs; extensionParameters, linkType, and context remain query parameters. Human-readable interpretation (hri) is unchanged.
An unknown or inapplicable value produces Validation.Invalid.compression: HTTP 422 for a single code, or a per-item error in the batch HTTP 200 response.
Only available for QR_GS1_DIGITAL_LINK_URI and DATAMATRIX_GS1_DIGITAL_LINK_URI; not for GS1 element-string modes.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Thing Identity","colors":{"primary":"#18181B","light":"#FAFAFA","dark":"#18181B"},"logo":{"light":"https://mintcdn.com/thing-identity/kRu3PmIiw7bjxaKS/logo/light.svg?fit=max\u0026auto=format\u0026n=kRu3PmIiw7bjxaKS\u0026q=85\u0026s=5b0ca7ae1844542e1d6472bfd08fcb66","dark":"https://mintcdn.com/thing-identity/kRu3PmIiw7bjxaKS/logo/dark.svg?fit=max\u0026auto=format\u0026n=kRu3PmIiw7bjxaKS\u0026q=85\u0026s=12ef220c8158b022a6a3ee4cfb188ecf","href":"https://thingidentity.com"},"favicon":"https://mintcdn.com/thing-identity/kRu3PmIiw7bjxaKS/favicon.svg?fit=max\u0026auto=format\u0026n=kRu3PmIiw7bjxaKS\u0026q=85\u0026s=90d75e0448360010512d1be2344f0683","api":{"params":{"expanded":"all"},"examples":{"languages":["curl","javascript","python"]}},"appearance":{"default":"system"},"navbar":{"primary":{"type":"button","label":"Dashboard","href":"https://thingidentity.com/dashboard"}},"footer":{"socials":{"github":"https://github.com/thingidentity","linkedin":"https://linkedin.com/company/thingidentity"}},"styling":{"eyebrows":"breadcrumbs","latex":false},"navigation":{"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://thingidentity.com/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"thing-identity","hasAudioNarration":false,"actualSubdomain":"thing-identity","customDomains":["docs.thingidentity.com"],"gitSource":{"type":"github","owner":"thingidentity","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6aba87ec9d1721df0ac6e555","collectionId":"81b7d3d8-ea66-42f1-9692-54ff1ad3ad4b","liveDeploymentHistoryId":"6aba87ec9d1721df0ac6e555","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"}},"buildId":"6aba87ec9d1721df0ac6e555","clientVersion":"0.0.3971","searchFilterCounts":[{"language":"default","tag":"API Reference","count":12},{"language":"default","tag":"2D Barcodes","count":4},{"language":"default","tag":"GS1 Resolver","count":3},{"language":"default","tag":"API Documentation","count":2},{"language":"default","tag":"Authentication","count":1},{"language":"default","tag":"Guides","count":1},{"language":"default","tag":"Get Started","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"privacy":{"consentBanner":{"enabled":true}},"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":":root{--ti-radius:0.375rem}@media (min-width:1024px){#navbar div:has(>#search-bar-entry){position:absolute;left:50%;width:min(34rem,40vw);transform:translateX(-50%)}}#search-bar-entry,#topbar-cta-button>a{border-radius:var(--ti-radius)}#navbar .nav-logo{height:1.25rem}"}],"page":{"pagePath":"api-reference/endpoints/render-code","slug":"/api-reference/endpoints/render-code","pageMetadata":{"title":"Render 2D barcode","openapi":"openapi.json POST /code/render","description":"Render one validated code definition as SVG.\n\nSet `compression` on each definition to `EPC_BASE64` or `EPC_HEX` for a compressed Digital Link. Omit or send null for an uncompressed URI. Compression requires a GTIN and serial number.","href":"/api-reference/endpoints/render-code"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Render one validated code definition as SVG.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Set \", _jsx(_components.code, {\n children: \"compression\"\n }), \" on each definition to \", _jsx(_components.code, {\n children: \"EPC_BASE64\"\n }), \" or \", _jsx(_components.code, {\n children: \"EPC_HEX\"\n }), \" for a compressed Digital Link. Omit or send null for an uncompressed URI. Compression requires a GTIN and serial number.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Render one code as a Base64-encoded SVG in a JSON response.\nThe same GS1 validation used by `,_jsx(_components.a,{href:`/api-reference/endpoints/generate-code`,children:_jsx(_components.code,{children:`POST /code`})}),` applies.\nThis operation requires `,_jsx(_components.code,{children:`write:codes`}),` and does not save a generated-code record or a file.`]}),`\n`,_jsx(Heading,{level:`2`,id:`barcode-modes`,children:`Barcode modes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`mode`})}),_jsx(_components.th,{children:`Encoded data`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GS1_DATAMATRIX`})}),_jsx(_components.td,{children:`GS1 element string with FNC1, Data Matrix ECC 200.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DATAMATRIX_GS1_DIGITAL_LINK_URI`})}),_jsxs(_components.td,{children:[`GS1 Digital Link URI in Data Matrix. Requires `,_jsx(_components.code,{children:`digitalLinkStem`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GS1_QR`})}),_jsx(_components.td,{children:`GS1 element string with FNC1 in QR Code.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`QR_GS1_DIGITAL_LINK_URI`})}),_jsxs(_components.td,{children:[`GS1 Digital Link URI in QR Code. Requires `,_jsx(_components.code,{children:`digitalLinkStem`}),`.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`For QR modes, optional `,_jsx(_components.code,{children:`errorCorrectionLevel`}),` accepts `,_jsx(_components.code,{children:`L`}),`, `,_jsx(_components.code,{children:`M`}),`, `,_jsx(_components.code,{children:`Q`}),` or `,_jsx(_components.code,{children:`H`}),`.\nOmitting it or sending `,_jsx(_components.code,{children:`null`}),` selects `,_jsx(_components.code,{children:`L`}),`. The requested level is used without automatic upgrading.\nData Matrix uses fixed ECC 200: omit `,_jsx(_components.code,{children:`errorCorrectionLevel`}),` or send `,_jsx(_components.code,{children:`null`}),`; any other value is rejected.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`ais`}),` and `,_jsx(_components.code,{children:`extensionParameters`}),` may be omitted or `,_jsx(_components.code,{children:`null`}),` for empty lists.\n`,_jsx(_components.code,{children:`linkType`}),` and `,_jsx(_components.code,{children:`context`}),` are optional. The `,_jsx(_components.code,{children:`image`}),` field contains the SVG encoded as Base64.`]}),`\n`,_jsx(Heading,{level:`2`,id:`compression`,children:`Compression`}),`\n`,_jsxs(_components.p,{children:[`The optional `,_jsx(_components.code,{children:`compression`}),` field accepts `,_jsx(_components.code,{children:`EPC_BASE64`}),` (`,_jsx(_components.code,{children:`ex`}),`) or `,_jsx(_components.code,{children:`EPC_HEX`}),` (`,_jsx(_components.code,{children:`eh`}),`).\nOmit it or send `,_jsx(_components.code,{children:`null`}),` to render an uncompressed URI.\nCompression is available in `,_jsx(_components.code,{children:`QR_GS1_DIGITAL_LINK_URI`}),` and `,_jsx(_components.code,{children:`DATAMATRIX_GS1_DIGITAL_LINK_URI`}),` modes.\nIt requires a GTIN, a serial number and `,_jsx(_components.code,{children:`digitalLinkStem`}),`, with the\n`,_jsx(_components.a,{href:`/api-reference/endpoints/generate-code#compression`,children:`same AI restrictions as generation`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"QR_GS1_DIGITAL_LINK_URI\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"errorCorrectionLevel\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"L\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"digitalLinkStem\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://thingidentity.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"primaryKey\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"01\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"09528765123457\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ais\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"21\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"123456789123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"compression\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"EPC_HEX\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The SVG encodes the compressed URI. The response still contains `,_jsx(_components.code,{children:`image`}),`, a Base64-encoded SVG;\nthis image encoding is separate from the EPC encoding selected by `,_jsx(_components.code,{children:`compression`}),`.\nInvalid compression returns `,_jsx(_components.code,{children:`422`}),` with `,_jsx(_components.code,{children:`Validation.Invalid.compression`}),` at path `,_jsx(_components.code,{children:`compression`}),`.\nThe `,_jsx(_components.code,{children:`GS1_QR`}),` and `,_jsx(_components.code,{children:`GS1_DATAMATRIX`}),` modes do not accept compression.`]}),`\n`,_jsx(Heading,{level:`2`,id:`download-an-svg`,children:`Download an SVG`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --fail-with-body`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.thingidentity.com/code/render'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ACCESS_TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/vnd.thingidentity.public.v1+json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Accept: application/vnd.thingidentity.public.v1+json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"mode\": \"QR_GS1_DIGITAL_LINK_URI\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"digitalLinkStem\": \"https://gtin.at\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"primaryKey\": { \"key\": \"01\", \"value\": \"09521234543213\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ais\": [{ \"key\": \"10\", \"value\": \"LOT42\" }]`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` jq`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -r`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '.image'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` base64`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --decode`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` >`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` code.svg`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Success returns `,_jsx(_components.code,{children:`200 OK`}),` with a JSON object containing `,_jsx(_components.code,{children:`image`}),`.`]}),`\n`,_jsx(_components.p,{children:`Example response body:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"image\": \"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij48bWV0YWRhdGEgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIj48ZGM6Y3JlYXRvcj5UaGluZyBJZGVudGl0eTwvZGM6Y3JlYXRvcj48ZGM6c291cmNlPmh0dHBzOi8vdGhpbmdpZGVudGl0eS5jb208L2RjOnNvdXJjZT48L21ldGFkYXRhPjxyZWN0IHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgZmlsbD0iI0ZGRkZGRiIvPjxwYXRoIGZpbGw9IiMwMDAwMDAiIGQ9Ik0xLDFoMXYxaC0xek0zLDFoMXYxaC0xek01LDFoMXYxaC0xek03LDFoMXYxaC0xek05LDFoMXYxaC0xek0xMSwxaDF2MWgtMXpNMTMsMWgxdjFoLTF6TTE1LDFoMXYxaC0xek0xLDJoMnYxaC0yek01LDJoNHYxaC00ek0xMCwyaDJ2MWgtMnpNMTUsMmgydjFoLTJ6TTEsM2gxdjJoLTF6TTUsM2gxdjFoLTF6TTcsM2gydjJoLTJ6TTEyLDNoMXYxaC0xek0zLDRoMnYxaC0yek0xMCw0aDF2MWgtMXpNMTIsNGgydjFoLTJ6TTE2LDRoMXYxaC0xek0xLDVoM3YxaC0zek01LDVoMnYxaC0yek05LDVoMXYxaC0xek0xMiw1aDR2MWgtNHpNMSw2aDF2MmgtMXpNMyw2aDF2MmgtMXpNNiw2aDJ2MWgtMnpNOSw2aDJ2MWgtMnpNMTIsNmg1djFoLTV6TTYsN2gzdjFoLTN6TTExLDdoMXYxaC0xek0xNCw3aDF2MWgtMXpNMSw4aDR2MWgtNHpNNyw4aDV2MWgtNXpNMTYsOGgxdjFoLTF6TTEsOWgxdjFoLTF6TTksOWgxdjFoLTF6TTExLDloMXYxaC0xek0xMyw5aDN2MWgtM3pNMSwxMGgydjFoLTJ6TTYsMTBoMnYxaC0yek0xMCwxMGgxdjJoLTF6TTEzLDEwaDR2MWgtNHpNMSwxMWgxdjFoLTF6TTQsMTFoMXYxaC0xek04LDExaDF2MWgtMXpNMTQsMTFoMXYxaC0xek0xLDEyaDV2MWgtNXpNNywxMmgxdjFoLTF6TTksMTJoMXYxaC0xek0xMSwxMmgydjFoLTJ6TTE1LDEyaDJ2MWgtMnpNMSwxM2gydjFoLTJ6TTUsMTNoM3YxaC0zek05LDEzaDJ2MWgtMnpNMTQsMTNoMXYxaC0xek0xLDE0aDF2MWgtMXpNNCwxNGgzdjFoLTN6TTEwLDE0aDV2MWgtNXpNMTYsMTRoMXYxaC0xek0xLDE1aDJ2MWgtMnpNOCwxNWgydjFoLTJ6TTEyLDE1aDF2MWgtMXpNMTUsMTVoMXYxaC0xek0xLDE2aDE2djFoLTE2eiIvPjwvc3ZnPg==\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The SVG is black on white, with quiet zones of four modules for QR and one for Data Matrix.\nIt contains no printed human-readable label.`}),`\n`,_jsxs(_components.p,{children:[`Invalid code definitions or rendering parameters return `,_jsx(_components.code,{children:`422`}),` with an `,_jsx(_components.code,{children:`errors`}),` array.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Render 2D barcode","openapi":"openapi.json POST /code/render","description":"Render one validated code definition as SVG.\n\nSet `compression` on each definition to `EPC_BASE64` or `EPC_HEX` for a compressed Digital Link. Omit or send null for an uncompressed URI. Compression requires a GTIN and serial number.","href":"/api-reference/endpoints/render-code"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Barcode modes","slug":"barcode-modes","depth":2,"children":[]},{"title":"Compression","slug":"compression","depth":2,"children":[]},{"title":"Download an SVG","slug":"download-an-svg","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Codes"],"summary":"Render 2D barcode","operationId":"renderCode","description":"Render one validated code definition as SVG.\n\nSet `compression` on each definition to `EPC_BASE64` or `EPC_HEX` for a compressed Digital Link. Omit or send null for an uncompressed URI. Compression requires a GTIN and serial number.","requestBody":"2d364cc2-562d-461f-a9e5-6fd6643bb575","responses":{"200":"ddda18c8-cce7-413b-8f15-d4ea4a5dc6d9","400":"aa35835c-9d94-4246-8b59-a18fa5bf4d3f","401":"f7e7af0a-c695-4eea-9b1e-9c1d9a4c03ab","403":"926cc711-6490-4879-b775-7b35f34309c2","406":"6c7cc4a3-cdbf-4441-8296-5869d0769dcc","422":"ac42af3b-69c4-48d8-a9a9-13abd7c039af"},"method":"post","type":"path","servers":["751c3ee5-c165-428a-a409-06e1fbd3b211"],"security":["5e1efa94-7214-484a-9905-e1c0370b3c91"],"path":"/code/render","baseUrlOptions":["https://api.thingidentity.com"],"title":"Render 2D barcode","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/vnd.thingidentity.public.v1+json":{"schema":{"example":{"mode":"QR_GS1_DIGITAL_LINK_URI","digitalLinkStem":"https://gtin.at","primaryKey":{"key":"01","value":"09521234543213"},"ais":[{"key":"10","value":"LOT42"}]},"type":"object","required":["mode","primaryKey"],"properties":{"mode":{"type":"string","enum":["GS1_DATAMATRIX","DATAMATRIX_GS1_DIGITAL_LINK_URI","GS1_QR","QR_GS1_DIGITAL_LINK_URI"],"example":"QR_GS1_DIGITAL_LINK_URI","description":"Barcode type. Digital Link modes require digitalLinkStem.","isRequired":true,"uniqueKey":"mode","typeLabel":"enum\u003cstring>"},"primaryKey":{"type":"object","description":"The identifying application identifier. With a `digitalLinkStem` it must be a GS1 Digital Link primary key in the GS1 Barcode Syntax Dictionary; without one, `03` is additionally accepted, the identifier for made-to-order trade items.\n\nGTIN (`01`) accepts 8, 12, 13 or 14 digits, verifies the mod-10 check digit and normalises the value to 14 digits, so the value you get back may be longer than the one you sent.","required":["key","value"],"properties":{"key":{"type":"string","description":"GS1 application identifier. Browse the official [GS1 Application Identifiers directory](https://ref.gs1.org/ai/) for meanings, value formats, required associations and Digital Link usage. The API validates identifiers against its bundled GS1 Barcode Syntax Dictionary; not every AI is valid as a primary key or in every combination.","examples":["01"],"isRequired":true,"uniqueKey":"primaryKey.key","typeLabel":"string"},"value":{"type":"string","examples":["09521234543213"],"isRequired":true,"uniqueKey":"primaryKey.value","typeLabel":"string"}},"isRequired":true,"uniqueKey":"primaryKey","typeLabel":"object"},"errorCorrectionLevel":{"oneOf":[{"type":"string","enum":["L","M","Q","H",null],"description":"QR only: L, M, Q or H. Omitted or null selects L for QR. For Data Matrix omit or send null.","uniqueKey":"errorCorrectionLevel.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["L","M","Q","H",null],"description":"QR only: L, M, Q or H. Omitted or null selects L for QR. For Data Matrix omit or send null.","uniqueKey":"errorCorrectionLevel.oneOf.1","typeLabel":"null"}],"uniqueKey":"errorCorrectionLevel","typeLabel":"enum\u003cstring> | null"},"ais":{"oneOf":[{"type":"array","description":"Further application identifiers. Pass `[]` for none.\n\nEach key must exist in the GS1 Barcode Syntax Dictionary and its value must match the format that dictionary declares. An AI may not repeat the primary key, keys may not repeat each other, and GS1 \"requires\" and \"excludes\" relations between AIs are enforced.\n\nWith a `digitalLinkStem` every AI must be either a path qualifier of the chosen primary key, taken from a single consistent qualifier sequence, or a data attribute that GS1 Digital Link URI Syntax allows in the query string. Qualifiers keep the order GS1 defines, not the order you send.\n\nTemperature AIs (`4330` to `4333`) are normalised for you: the magnitude is padded to six digits and a negative value keeps its trailing minus.\n\nWhen compression is selected, the EPC path carries these AIs instead of separate path and query fields.","items":{"type":"object","required":["key","value"],"properties":{"key":{"type":"string","description":"GS1 application identifier. Browse the official [GS1 Application Identifiers directory](https://ref.gs1.org/ai/) for meanings, value formats, required associations and Digital Link usage. The API validates identifiers against its bundled GS1 Barcode Syntax Dictionary; not every AI is valid as a primary key or in every combination.","examples":["01"],"isRequired":true,"uniqueKey":"ais.oneOf.0.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","examples":["09521234543213"],"isRequired":true,"uniqueKey":"ais.oneOf.0.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"ais.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"ais.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"Further application identifiers. Pass `[]` for none.\n\nEach key must exist in the GS1 Barcode Syntax Dictionary and its value must match the format that dictionary declares. An AI may not repeat the primary key, keys may not repeat each other, and GS1 \"requires\" and \"excludes\" relations between AIs are enforced.\n\nWith a `digitalLinkStem` every AI must be either a path qualifier of the chosen primary key, taken from a single consistent qualifier sequence, or a data attribute that GS1 Digital Link URI Syntax allows in the query string. Qualifiers keep the order GS1 defines, not the order you send.\n\nTemperature AIs (`4330` to `4333`) are normalised for you: the magnitude is padded to six digits and a negative value keeps its trailing minus.\n\nWhen compression is selected, the EPC path carries these AIs instead of separate path and query fields.","items":{"type":"object","required":["key","value"],"properties":{"key":{"type":"string","description":"GS1 application identifier. Browse the official [GS1 Application Identifiers directory](https://ref.gs1.org/ai/) for meanings, value formats, required associations and Digital Link usage. The API validates identifiers against its bundled GS1 Barcode Syntax Dictionary; not every AI is valid as a primary key or in every combination.","examples":["01"]},"value":{"type":"string","examples":["09521234543213"]}}},"uniqueKey":"ais.oneOf.1","typeLabel":"null"}],"uniqueKey":"ais","typeLabel":"object[] | null"},"extensionParameters":{"oneOf":[{"type":"array","description":"Optional custom query parameters appended to a GS1 Digital Link URI. Omit, send null or pass `[]` for none.\n\nOnly with a `digitalLinkStem`; a non-empty list without one is rejected. Keys must not be `linkType` or `context`, must contain at least one non-digit, must be unique, and both keys and values are limited to unreserved ASCII and URI punctuation.","items":{"type":"object","required":["key","value"],"properties":{"key":{"type":"string","description":"Query parameter name. Not `linkType` or `context`, and it must contain at least one non-digit.","examples":["batch"],"isRequired":true,"uniqueKey":"extensionParameters.oneOf.0.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","examples":["A42"],"isRequired":true,"uniqueKey":"extensionParameters.oneOf.0.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"extensionParameters.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"extensionParameters.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"Optional custom query parameters appended to a GS1 Digital Link URI. Omit, send null or pass `[]` for none.\n\nOnly with a `digitalLinkStem`; a non-empty list without one is rejected. Keys must not be `linkType` or `context`, must contain at least one non-digit, must be unique, and both keys and values are limited to unreserved ASCII and URI punctuation.","items":{"type":"object","required":["key","value"],"properties":{"key":{"type":"string","description":"Query parameter name. Not `linkType` or `context`, and it must contain at least one non-digit.","examples":["batch"]},"value":{"type":"string","examples":["A42"]}}},"uniqueKey":"extensionParameters.oneOf.1","typeLabel":"null"}],"uniqueKey":"extensionParameters","typeLabel":"object[] | null"},"digitalLinkStem":{"oneOf":[{"type":"string","description":"The origin a GS1 Digital Link path is appended to. Supplying it is what makes this a GS1 Digital Link: send a stem and you get a URI, leave it out and you get a GS1 element string. Must be `http` or `https` with a host, and carry no userinfo, query or fragment. A single trailing slash is stripped; empty path segments are rejected.","examples":["https://gtin.at"],"uniqueKey":"digitalLinkStem.oneOf.0","typeLabel":"string"},{"type":"null","description":"The origin a GS1 Digital Link path is appended to. Supplying it is what makes this a GS1 Digital Link: send a stem and you get a URI, leave it out and you get a GS1 element string. Must be `http` or `https` with a host, and carry no userinfo, query or fragment. A single trailing slash is stripped; empty path segments are rejected.","examples":["https://gtin.at"],"uniqueKey":"digitalLinkStem.oneOf.1","typeLabel":"null"}],"uniqueKey":"digitalLinkStem","typeLabel":"string | null"},"linkType":{"oneOf":[{"type":"string","description":"The GS1 link type the URI resolves to. Only with a `digitalLinkStem`. A `gs1:` value must be one the generator offers from the [GS1 Web Vocabulary](https://ref.gs1.org/voc/) page types; `gs1:defaultPage`, `gs1:defaultPageMulti` and `gs1:handledBy` are not selectable. Any other value must be an absolute `http` or `https` URI.","examples":["gs1:pip"],"uniqueKey":"linkType.oneOf.0","typeLabel":"string"},{"type":"null","description":"The GS1 link type the URI resolves to. Only with a `digitalLinkStem`. A `gs1:` value must be one the generator offers from the [GS1 Web Vocabulary](https://ref.gs1.org/voc/) page types; `gs1:defaultPage`, `gs1:defaultPageMulti` and `gs1:handledBy` are not selectable. Any other value must be an absolute `http` or `https` URI.","examples":["gs1:pip"],"uniqueKey":"linkType.oneOf.1","typeLabel":"null"}],"uniqueKey":"linkType","typeLabel":"string | null"},"context":{"oneOf":[{"type":"string","description":"Value for the GS1 Digital Link `context` query parameter. Only with a `digitalLinkStem`, same character rules as extension parameter values.","examples":["dpp"],"uniqueKey":"context.oneOf.0","typeLabel":"string"},{"type":"null","description":"Value for the GS1 Digital Link `context` query parameter. Only with a `digitalLinkStem`, same character rules as extension parameter values.","examples":["dpp"],"uniqueKey":"context.oneOf.1","typeLabel":"null"}],"uniqueKey":"context","typeLabel":"string | null"},"compression":{"oneOf":[{"type":"string","enum":["EPC_BASE64","EPC_HEX",null],"description":"Optional EPC compression of a GS1 Digital Link URI. `EPC_BASE64` encodes the EPC binary in URL-safe Base64 (an `ex` path); `EPC_HEX` uses hexadecimal (an `eh` path). Omit or send null for an uncompressed URI.\n\nRequires primary key `01` (GTIN), AI `21` (serial number), and `digitalLinkStem`. AIs `03`, `717`, `8014` and `8040`–`8043` cannot be stored in EPC binary, so a code that contains any of them cannot be compressed. The EPC path carries the AIs; `extensionParameters`, `linkType`, and `context` remain query parameters. Human-readable interpretation (`hri`) is unchanged.\n\nAn unknown or inapplicable value produces `Validation.Invalid.compression`: HTTP 422 for a single code, or a per-item error in the batch HTTP 200 response.\n\nOnly available for `QR_GS1_DIGITAL_LINK_URI` and `DATAMATRIX_GS1_DIGITAL_LINK_URI`; not for GS1 element-string modes.","examples":["EPC_BASE64","EPC_HEX"],"uniqueKey":"compression.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["EPC_BASE64","EPC_HEX",null],"description":"Optional EPC compression of a GS1 Digital Link URI. `EPC_BASE64` encodes the EPC binary in URL-safe Base64 (an `ex` path); `EPC_HEX` uses hexadecimal (an `eh` path). Omit or send null for an uncompressed URI.\n\nRequires primary key `01` (GTIN), AI `21` (serial number), and `digitalLinkStem`. AIs `03`, `717`, `8014` and `8040`–`8043` cannot be stored in EPC binary, so a code that contains any of them cannot be compressed. The EPC path carries the AIs; `extensionParameters`, `linkType`, and `context` remain query parameters. Human-readable interpretation (`hri`) is unchanged.\n\nAn unknown or inapplicable value produces `Validation.Invalid.compression`: HTTP 422 for a single code, or a per-item error in the batch HTTP 200 response.\n\nOnly available for `QR_GS1_DIGITAL_LINK_URI` and `DATAMATRIX_GS1_DIGITAL_LINK_URI`; not for GS1 element-string modes.","examples":["EPC_BASE64","EPC_HEX"],"uniqueKey":"compression.oneOf.1","typeLabel":"null"}],"uniqueKey":"compression","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"uncompressed":{"title":"uncompressed","value":{"mode":"QR_GS1_DIGITAL_LINK_URI","digitalLinkStem":"https://gtin.at","primaryKey":{"key":"01","value":"09521234543213"},"ais":[{"key":"10","value":"LOT42"}]}},"EPC_BASE64":{"title":"EPC_BASE64","value":{"digitalLinkStem":"https://thingidentity.com","primaryKey":{"key":"01","value":"09528765123457"},"ais":[{"key":"21","value":"123456789123"}],"compression":"EPC_BASE64","mode":"QR_GS1_DIGITAL_LINK_URI"}},"EPC_HEX":{"title":"EPC_HEX","value":{"digitalLinkStem":"https://thingidentity.com","primaryKey":{"key":"01","value":"09528765123457"},"ais":[{"key":"21","value":"123456789123"}],"compression":"EPC_HEX","mode":"QR_GS1_DIGITAL_LINK_URI"}}},"exampleType":"examples"},"application/json":{"schema":{"example":{"mode":"QR_GS1_DIGITAL_LINK_URI","digitalLinkStem":"https://gtin.at","primaryKey":{"key":"01","value":"09521234543213"},"ais":[{"key":"10","value":"LOT42"}]},"type":"object","required":["mode","primaryKey"],"properties":{"mode":{"type":"string","enum":["GS1_DATAMATRIX","DATAMATRIX_GS1_DIGITAL_LINK_URI","GS1_QR","QR_GS1_DIGITAL_LINK_URI"],"example":"QR_GS1_DIGITAL_LINK_URI","description":"Barcode type. Digital Link modes require digitalLinkStem.","isRequired":true,"uniqueKey":"mode","typeLabel":"enum\u003cstring>"},"primaryKey":{"type":"object","description":"The identifying application identifier. With a `digitalLinkStem` it must be a GS1 Digital Link primary key in the GS1 Barcode Syntax Dictionary; without one, `03` is additionally accepted, the identifier for made-to-order trade items.\n\nGTIN (`01`) accepts 8, 12, 13 or 14 digits, verifies the mod-10 check digit and normalises the value to 14 digits, so the value you get back may be longer than the one you sent.","required":["key","value"],"properties":{"key":{"type":"string","description":"GS1 application identifier. Browse the official [GS1 Application Identifiers directory](https://ref.gs1.org/ai/) for meanings, value formats, required associations and Digital Link usage. The API validates identifiers against its bundled GS1 Barcode Syntax Dictionary; not every AI is valid as a primary key or in every combination.","examples":["01"],"isRequired":true,"uniqueKey":"primaryKey.key","typeLabel":"string"},"value":{"type":"string","examples":["09521234543213"],"isRequired":true,"uniqueKey":"primaryKey.value","typeLabel":"string"}},"isRequired":true,"uniqueKey":"primaryKey","typeLabel":"object"},"errorCorrectionLevel":{"oneOf":[{"type":"string","enum":["L","M","Q","H",null],"description":"QR only: L, M, Q or H. Omitted or null selects L for QR. For Data Matrix omit or send null.","uniqueKey":"errorCorrectionLevel.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["L","M","Q","H",null],"description":"QR only: L, M, Q or H. Omitted or null selects L for QR. For Data Matrix omit or send null.","uniqueKey":"errorCorrectionLevel.oneOf.1","typeLabel":"null"}],"uniqueKey":"errorCorrectionLevel","typeLabel":"enum\u003cstring> | null"},"ais":{"oneOf":[{"type":"array","description":"Further application identifiers. Pass `[]` for none.\n\nEach key must exist in the GS1 Barcode Syntax Dictionary and its value must match the format that dictionary declares. An AI may not repeat the primary key, keys may not repeat each other, and GS1 \"requires\" and \"excludes\" relations between AIs are enforced.\n\nWith a `digitalLinkStem` every AI must be either a path qualifier of the chosen primary key, taken from a single consistent qualifier sequence, or a data attribute that GS1 Digital Link URI Syntax allows in the query string. Qualifiers keep the order GS1 defines, not the order you send.\n\nTemperature AIs (`4330` to `4333`) are normalised for you: the magnitude is padded to six digits and a negative value keeps its trailing minus.\n\nWhen compression is selected, the EPC path carries these AIs instead of separate path and query fields.","items":{"type":"object","required":["key","value"],"properties":{"key":{"type":"string","description":"GS1 application identifier. Browse the official [GS1 Application Identifiers directory](https://ref.gs1.org/ai/) for meanings, value formats, required associations and Digital Link usage. The API validates identifiers against its bundled GS1 Barcode Syntax Dictionary; not every AI is valid as a primary key or in every combination.","examples":["01"],"isRequired":true,"uniqueKey":"ais.oneOf.0.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","examples":["09521234543213"],"isRequired":true,"uniqueKey":"ais.oneOf.0.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"ais.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"ais.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"Further application identifiers. Pass `[]` for none.\n\nEach key must exist in the GS1 Barcode Syntax Dictionary and its value must match the format that dictionary declares. An AI may not repeat the primary key, keys may not repeat each other, and GS1 \"requires\" and \"excludes\" relations between AIs are enforced.\n\nWith a `digitalLinkStem` every AI must be either a path qualifier of the chosen primary key, taken from a single consistent qualifier sequence, or a data attribute that GS1 Digital Link URI Syntax allows in the query string. Qualifiers keep the order GS1 defines, not the order you send.\n\nTemperature AIs (`4330` to `4333`) are normalised for you: the magnitude is padded to six digits and a negative value keeps its trailing minus.\n\nWhen compression is selected, the EPC path carries these AIs instead of separate path and query fields.","items":{"type":"object","required":["key","value"],"properties":{"key":{"type":"string","description":"GS1 application identifier. Browse the official [GS1 Application Identifiers directory](https://ref.gs1.org/ai/) for meanings, value formats, required associations and Digital Link usage. The API validates identifiers against its bundled GS1 Barcode Syntax Dictionary; not every AI is valid as a primary key or in every combination.","examples":["01"]},"value":{"type":"string","examples":["09521234543213"]}}},"uniqueKey":"ais.oneOf.1","typeLabel":"null"}],"uniqueKey":"ais","typeLabel":"object[] | null"},"extensionParameters":{"oneOf":[{"type":"array","description":"Optional custom query parameters appended to a GS1 Digital Link URI. Omit, send null or pass `[]` for none.\n\nOnly with a `digitalLinkStem`; a non-empty list without one is rejected. Keys must not be `linkType` or `context`, must contain at least one non-digit, must be unique, and both keys and values are limited to unreserved ASCII and URI punctuation.","items":{"type":"object","required":["key","value"],"properties":{"key":{"type":"string","description":"Query parameter name. Not `linkType` or `context`, and it must contain at least one non-digit.","examples":["batch"],"isRequired":true,"uniqueKey":"extensionParameters.oneOf.0.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","examples":["A42"],"isRequired":true,"uniqueKey":"extensionParameters.oneOf.0.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"extensionParameters.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"extensionParameters.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"Optional custom query parameters appended to a GS1 Digital Link URI. Omit, send null or pass `[]` for none.\n\nOnly with a `digitalLinkStem`; a non-empty list without one is rejected. Keys must not be `linkType` or `context`, must contain at least one non-digit, must be unique, and both keys and values are limited to unreserved ASCII and URI punctuation.","items":{"type":"object","required":["key","value"],"properties":{"key":{"type":"string","description":"Query parameter name. Not `linkType` or `context`, and it must contain at least one non-digit.","examples":["batch"]},"value":{"type":"string","examples":["A42"]}}},"uniqueKey":"extensionParameters.oneOf.1","typeLabel":"null"}],"uniqueKey":"extensionParameters","typeLabel":"object[] | null"},"digitalLinkStem":{"oneOf":[{"type":"string","description":"The origin a GS1 Digital Link path is appended to. Supplying it is what makes this a GS1 Digital Link: send a stem and you get a URI, leave it out and you get a GS1 element string. Must be `http` or `https` with a host, and carry no userinfo, query or fragment. A single trailing slash is stripped; empty path segments are rejected.","examples":["https://gtin.at"],"uniqueKey":"digitalLinkStem.oneOf.0","typeLabel":"string"},{"type":"null","description":"The origin a GS1 Digital Link path is appended to. Supplying it is what makes this a GS1 Digital Link: send a stem and you get a URI, leave it out and you get a GS1 element string. Must be `http` or `https` with a host, and carry no userinfo, query or fragment. A single trailing slash is stripped; empty path segments are rejected.","examples":["https://gtin.at"],"uniqueKey":"digitalLinkStem.oneOf.1","typeLabel":"null"}],"uniqueKey":"digitalLinkStem","typeLabel":"string | null"},"linkType":{"oneOf":[{"type":"string","description":"The GS1 link type the URI resolves to. Only with a `digitalLinkStem`. A `gs1:` value must be one the generator offers from the [GS1 Web Vocabulary](https://ref.gs1.org/voc/) page types; `gs1:defaultPage`, `gs1:defaultPageMulti` and `gs1:handledBy` are not selectable. Any other value must be an absolute `http` or `https` URI.","examples":["gs1:pip"],"uniqueKey":"linkType.oneOf.0","typeLabel":"string"},{"type":"null","description":"The GS1 link type the URI resolves to. Only with a `digitalLinkStem`. A `gs1:` value must be one the generator offers from the [GS1 Web Vocabulary](https://ref.gs1.org/voc/) page types; `gs1:defaultPage`, `gs1:defaultPageMulti` and `gs1:handledBy` are not selectable. Any other value must be an absolute `http` or `https` URI.","examples":["gs1:pip"],"uniqueKey":"linkType.oneOf.1","typeLabel":"null"}],"uniqueKey":"linkType","typeLabel":"string | null"},"context":{"oneOf":[{"type":"string","description":"Value for the GS1 Digital Link `context` query parameter. Only with a `digitalLinkStem`, same character rules as extension parameter values.","examples":["dpp"],"uniqueKey":"context.oneOf.0","typeLabel":"string"},{"type":"null","description":"Value for the GS1 Digital Link `context` query parameter. Only with a `digitalLinkStem`, same character rules as extension parameter values.","examples":["dpp"],"uniqueKey":"context.oneOf.1","typeLabel":"null"}],"uniqueKey":"context","typeLabel":"string | null"},"compression":{"oneOf":[{"type":"string","enum":["EPC_BASE64","EPC_HEX",null],"description":"Optional EPC compression of a GS1 Digital Link URI. `EPC_BASE64` encodes the EPC binary in URL-safe Base64 (an `ex` path); `EPC_HEX` uses hexadecimal (an `eh` path). Omit or send null for an uncompressed URI.\n\nRequires primary key `01` (GTIN), AI `21` (serial number), and `digitalLinkStem`. AIs `03`, `717`, `8014` and `8040`–`8043` cannot be stored in EPC binary, so a code that contains any of them cannot be compressed. The EPC path carries the AIs; `extensionParameters`, `linkType`, and `context` remain query parameters. Human-readable interpretation (`hri`) is unchanged.\n\nAn unknown or inapplicable value produces `Validation.Invalid.compression`: HTTP 422 for a single code, or a per-item error in the batch HTTP 200 response.\n\nOnly available for `QR_GS1_DIGITAL_LINK_URI` and `DATAMATRIX_GS1_DIGITAL_LINK_URI`; not for GS1 element-string modes.","examples":["EPC_BASE64","EPC_HEX"],"uniqueKey":"compression.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["EPC_BASE64","EPC_HEX",null],"description":"Optional EPC compression of a GS1 Digital Link URI. `EPC_BASE64` encodes the EPC binary in URL-safe Base64 (an `ex` path); `EPC_HEX` uses hexadecimal (an `eh` path). Omit or send null for an uncompressed URI.\n\nRequires primary key `01` (GTIN), AI `21` (serial number), and `digitalLinkStem`. AIs `03`, `717`, `8014` and `8040`–`8043` cannot be stored in EPC binary, so a code that contains any of them cannot be compressed. The EPC path carries the AIs; `extensionParameters`, `linkType`, and `context` remain query parameters. Human-readable interpretation (`hri`) is unchanged.\n\nAn unknown or inapplicable value produces `Validation.Invalid.compression`: HTTP 422 for a single code, or a per-item error in the batch HTTP 200 response.\n\nOnly available for `QR_GS1_DIGITAL_LINK_URI` and `DATAMATRIX_GS1_DIGITAL_LINK_URI`; not for GS1 element-string modes.","examples":["EPC_BASE64","EPC_HEX"],"uniqueKey":"compression.oneOf.1","typeLabel":"null"}],"uniqueKey":"compression","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"uncompressed":{"title":"uncompressed","value":{"mode":"QR_GS1_DIGITAL_LINK_URI","digitalLinkStem":"https://gtin.at","primaryKey":{"key":"01","value":"09521234543213"},"ais":[{"key":"10","value":"LOT42"}]}},"EPC_BASE64":{"title":"EPC_BASE64","value":{"digitalLinkStem":"https://thingidentity.com","primaryKey":{"key":"01","value":"09528765123457"},"ais":[{"key":"21","value":"123456789123"}],"compression":"EPC_BASE64","mode":"QR_GS1_DIGITAL_LINK_URI"}},"EPC_HEX":{"title":"EPC_HEX","value":{"digitalLinkStem":"https://thingidentity.com","primaryKey":{"key":"01","value":"09528765123457"},"ais":[{"key":"21","value":"123456789123"}],"compression":"EPC_HEX","mode":"QR_GS1_DIGITAL_LINK_URI"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"ddda18c8-cce7-413b-8f15-d4ea4a5dc6d9":{"description":"Base64-encoded SVG in the image field.","content":{"application/vnd.thingidentity.public.v1+json":{"schema":{"type":"object","required":["image"],"properties":{"image":{"type":"string","format":"byte","contentEncoding":"base64","contentMediaType":"image/svg+xml","description":"Base64-encoded SVG document (UTF-8).","isRequired":true,"uniqueKey":"image","typeLabel":"file"}},"uniqueKey":"","typeLabel":"object"},"example":{"image":"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIg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oLTF6TTcsM2gydjJoLTJ6TTEyLDNoMXYxaC0xek0zLDRoMnYxaC0yek0xMCw0aDF2MWgtMXpNMTIsNGgydjFoLTJ6TTE2LDRoMXYxaC0xek0xLDVoM3YxaC0zek01LDVoMnYxaC0yek05LDVoMXYxaC0xek0xMiw1aDR2MWgtNHpNMSw2aDF2MmgtMXpNMyw2aDF2MmgtMXpNNiw2aDJ2MWgtMnpNOSw2aDJ2MWgtMnpNMTIsNmg1djFoLTV6TTYsN2gzdjFoLTN6TTExLDdoMXYxaC0xek0xNCw3aDF2MWgtMXpNMSw4aDR2MWgtNHpNNyw4aDV2MWgtNXpNMTYsOGgxdjFoLTF6TTEsOWgxdjFoLTF6TTksOWgxdjFoLTF6TTExLDloMXYxaC0xek0xMyw5aDN2MWgtM3pNMSwxMGgydjFoLTJ6TTYsMTBoMnYxaC0yek0xMCwxMGgxdjJoLTF6TTEzLDEwaDR2MWgtNHpNMSwxMWgxdjFoLTF6TTQsMTFoMXYxaC0xek04LDExaDF2MWgtMXpNMTQsMTFoMXYxaC0xek0xLDEyaDV2MWgtNXpNNywxMmgxdjFoLTF6TTksMTJoMXYxaC0xek0xMSwxMmgydjFoLTJ6TTE1LDEyaDJ2MWgtMnpNMSwxM2gydjFoLTJ6TTUsMTNoM3YxaC0zek05LDEzaDJ2MWgtMnpNMTQsMTNoMXYxaC0xek0xLDE0aDF2MWgtMXpNNCwxNGgzdjFoLTN6TTEwLDE0aDV2MWgtNXpNMTYsMTRoMXYxaC0xek0xLDE1aDJ2MWgtMnpNOCwxNWgydjFoLTJ6TTEyLDE1aDF2MWgtMXpNMTUsMTVoMXYxaC0xek0xLDE2aDE2djFoLTE2eiIvPjwvc3ZnPg=="}}},"exampleType":"examples"},"application/json":{"schema":{"type":"object","required":["image"],"properties":{"image":{"type":"string","format":"byte","contentEncoding":"base64","contentMediaType":"image/svg+xml","description":"Base64-encoded SVG document (UTF-8).","isRequired":true,"uniqueKey":"image","typeLabel":"file"}},"uniqueKey":"","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a5bf4d3f":{"description":"Malformed JSON or missing required fields.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"f7e7af0a-c695-4eea-9b1e-9c1d9a4c03ab":{"description":"Missing or invalid bearer token.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"926cc711-6490-4879-b775-7b35f34309c2":{"description":"Token lacks write:codes or API access.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"6c7cc4a3-cdbf-4441-8296-5869d0769dcc":{"description":"Accept does not allow a supported JSON media type.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"ac42af3b-69c4-48d8-a9a9-13abd7c039af":{"description":"Invalid code definition, mode, correction level or unrenderable data.","content":{"application/vnd.thingidentity.public.v1+json":{"schema":{"type":"object","required":["errors"],"properties":{"errors":{"type":"array","items":{"type":"object","required":["code"],"properties":{"code":{"type":"string","examples":["Forbidden"],"isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"path":{"oneOf":[{"type":"string","description":"The offending field when the error is about input, `null` otherwise.","uniqueKey":"errors.items.[INDEX].path.oneOf.0","typeLabel":"string"},{"type":"null","description":"The offending field when the error is about input, `null` otherwise.","uniqueKey":"errors.items.[INDEX].path.oneOf.1","typeLabel":"null"}],"uniqueKey":"errors.items.[INDEX].path","typeLabel":"string | null"},"message":{"type":"string","uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"errors":[{"code":"Validation.Invalid.errorCorrectionLevel","path":"errorCorrectionLevel"}]},"examples":{"Example":{"title":"Example","value":{"errors":[{"code":"Validation.Invalid.errorCorrectionLevel","path":"errorCorrectionLevel"}]}}},"exampleType":"examples"},"application/json":{"schema":{"type":"object","required":["errors"],"properties":{"errors":{"type":"array","items":{"type":"object","required":["code"],"properties":{"code":{"type":"string","examples":["Forbidden"],"isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"path":{"oneOf":[{"type":"string","description":"The offending field when the error is about input, `null` otherwise.","uniqueKey":"errors.items.[INDEX].path.oneOf.0","typeLabel":"string"},{"type":"null","description":"The offending field when the error is about input, `null` otherwise.","uniqueKey":"errors.items.[INDEX].path.oneOf.1","typeLabel":"null"}],"uniqueKey":"errors.items.[INDEX].path","typeLabel":"string | null"},"message":{"type":"string","uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"errors":[{"code":"Validation.Invalid.errorCorrectionLevel","path":"errorCorrectionLevel"}]},"examples":{"Example":{"title":"Example","value":{"errors":[{"code":"Validation.Invalid.errorCorrectionLevel","path":"errorCorrectionLevel"}]}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"5e1efa94-7214-484a-9905-e1c0370b3c91":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"The `access_token` from `POST /oauth/token`.","scopes":[]}}},"servers":{"751c3ee5-c165-428a-a409-06e1fbd3b211":{"url":"https://api.thingidentity.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"The `access_token` from `POST /oauth/token`.","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"The `access_token` from `POST /oauth/token`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"thing-identity","siteName":"Thing Identity","title":"Render 2D barcode - Thing Identity","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-28T14:39:05.540Z","originalFileLocation":"api-reference/endpoints/render-code.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Render one validated code definition as SVG. Set compression on each definition to EPC_BASE64 or EPC_HEX for a compressed Digital Link. Omit or send null for an uncompressed URI. Compression requires a GTIN and serial number.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Thing Identity\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/thing-identity/3IW8MTT2ZtvIbmGr/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/thing-identity/3IW8MTT2ZtvIbmGr/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/thing-identity/3IW8MTT2ZtvIbmGr/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/thing-identity/3IW8MTT2ZtvIbmGr/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/thing-identity/3IW8MTT2ZtvIbmGr/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/thing-identity/3IW8MTT2ZtvIbmGr/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/thing-identity/3IW8MTT2ZtvIbmGr/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/thing-identity/3IW8MTT2ZtvIbmGr/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/thing-identity/3IW8MTT2ZtvIbmGr/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Render 2D barcode - Thing Identity\">\u003cmeta data-mint-head property=\"og:description\" content=\"Render one validated code definition as SVG. Set compression on each definition to EPC_BASE64 or EPC_HEX for a compressed Digital Link. Omit or send null for an uncompressed URI. Compression requires a GTIN and serial number.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Thing Identity\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.thingidentity.com/api-reference/endpoints/render-code\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://thing-identity.mintlify.app/_mintlify/api/og/v2?division=2D+Barcodes\u0026amp;title=Render+2D+barcode\u0026amp;description=Render+one+validated+code+definition+as+SVG.%0A%0ASet+%60compression%60+on+each+definition+to+%60EPC_BASE64%60+or+%60EPC_HEX%60+for+a+compressed+Digital+Link.+Omit+or+send+null\u0026amp;theme=cbc6b4ca26d606041ab96dc7\u0026amp;signature=30d0bf1f13e5ee2cf8a9b778ca7df6e403c952e64258a2e6e1f426943de49bee\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Render 2D barcode - Thing Identity\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Render one validated code definition as SVG. Set compression on each definition to EPC_BASE64 or EPC_HEX for a compressed Digital Link. Omit or send null for an uncompressed URI. Compression requires a GTIN and serial number.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://thing-identity.mintlify.app/_mintlify/api/og/v2?division=2D+Barcodes\u0026amp;title=Render+2D+barcode\u0026amp;description=Render+one+validated+code+definition+as+SVG.%0A%0ASet+%60compression%60+on+each+definition+to+%60EPC_BASE64%60+or+%60EPC_HEX%60+for+a+compressed+Digital+Link.+Omit+or+send+null\u0026amp;theme=cbc6b4ca26d606041ab96dc7\u0026amp;signature=30d0bf1f13e5ee2cf8a9b778ca7df6e403c952e64258a2e6e1f426943de49bee\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/thing-identity/3IW8MTT2ZtvIbmGr/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Thing Identity\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#18181B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.thingidentity.com/api-reference/endpoints/render-code\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoints/render-code.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.thingidentity.com/#organization\",\"name\":\"Thing Identity\",\"url\":\"https://docs.thingidentity.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/thing-identity/kRu3PmIiw7bjxaKS/logo/light.svg?fit=max\u0026auto=format\u0026n=kRu3PmIiw7bjxaKS\u0026q=85\u0026s=5b0ca7ae1844542e1d6472bfd08fcb66\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.thingidentity.com#website\",\"name\":\"Thing Identity\",\"url\":\"https://docs.thingidentity.com\",\"publisher\":{\"@id\":\"https://docs.thingidentity.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.thingidentity.com/api-reference/endpoints/render-code#webpage\",\"url\":\"https://docs.thingidentity.com/api-reference/endpoints/render-code\",\"name\":\"Render 2D barcode\",\"description\":\"Render one validated code definition as SVG. Set compression on each definition to EPC_BASE64 or EPC_HEX for a compressed Digital Link. Omit or send null for an uncompressed URI. Compression requires a GTIN and serial number.\",\"dateModified\":\"2026-09-28T14:39:05.540Z\",\"isPartOf\":{\"@id\":\"https://docs.thingidentity.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.thingidentity.com/api-reference/endpoints/render-code#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.thingidentity.com/api-reference/endpoints/render-code#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"2D Barcodes\",\"item\":\"https://docs.thingidentity.com/api-reference/endpoints/generate-code\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Render 2D barcode\",\"item\":\"https://docs.thingidentity.com/api-reference/endpoints/render-code\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.thingidentity.com/api-reference/endpoints/render-code#apireference\",\"headline\":\"Render 2D barcode\",\"name\":\"Render 2D barcode\",\"description\":\"Render one validated code definition as SVG. Set compression on each definition to EPC_BASE64 or EPC_HEX for a compressed Digital Link. Omit or send null for an uncompressed URI. Compression requires a GTIN and serial number.\",\"url\":\"https://docs.thingidentity.com/api-reference/endpoints/render-code\",\"mainEntityOfPage\":{\"@id\":\"https://docs.thingidentity.com/api-reference/endpoints/render-code#webpage\"},\"dateModified\":\"2026-09-28T14:39:05.540Z\",\"publisher\":{\"@id\":\"https://docs.thingidentity.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.thingidentity.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Thing Identity\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Thing Identity","nav":{"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://thingidentity.com/blog"}]},"tabs":[{"tab":"API Reference","groups":[{"group":"Get Started","icon":"rocket","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/quickstart"}]},{"group":"Guides","icon":"book","pages":[{"title":"Authentication","sidebarTitle":"Authentication","href":"/guides/authentication"}]},{"group":"API Documentation","icon":"book-open","pages":[{"title":"Introduction","sidebarTitle":"Introduction","href":"/api-reference/introduction"},{"title":"Error handling","sidebarTitle":"Error handling","href":"/api-reference/errors"}]},{"group":"Authentication","icon":"code","pages":[{"title":"Get an access token","openapi":"openapi.json POST /oauth/token","href":"/api-reference/endpoints/get-an-access-token"}]},{"group":"2D Barcodes","icon":"qrcode","pages":[{"title":"Generate 2D barcode","openapi":"openapi.json POST /code","description":"Generate the payload and human-readable interpretation for one 2D barcode.\n\nSet `compression` on each definition to `EPC_BASE64` or `EPC_HEX` for a compressed Digital Link. Omit or send null for an uncompressed URI. Compression requires a GTIN and serial number.","href":"/api-reference/endpoints/generate-code"},{"title":"Render 2D barcode","openapi":"openapi.json POST /code/render","href":"/api-reference/endpoints/render-code"},{"title":"Batch Generate 2D barcodes","openapi":"openapi.json POST /codes","description":"Takes a batch of code definitions and returns, for each one, the payload to encode in a symbol plus its human readable interpretation. Nothing is rendered as an image: you get the text and feed it to your own 2D barcode renderer.\n\nA definition that fails validation does not fail the request. The status is `200 OK` even when every item was rejected and `codes` comes back empty, so check `errors` rather than the status code.\n\nRequires the `write:codes` scope.\n\nSet `compression` on each definition to `EPC_BASE64` or `EPC_HEX` for a compressed Digital Link. Omit or send null for an uncompressed URI. Compression requires a GTIN and serial number.","href":"/api-reference/endpoints/generate-codes"},{"title":"Batch Render 2D barcodes","openapi":"openapi.json POST /codes/render/batch","href":"/api-reference/endpoints/render-codes"}]},{"group":"GS1 Resolver","icon":"link","pages":[{"title":"GS1 Digital Link resolver","sidebarTitle":"Overview","href":"/api-reference/resolver/overview"},{"title":"Resolve a GS1 Digital Link","openapi":"openapi.json GET /01/{gtin}","href":"/api-reference/resolver/resolve-gtin"},{"title":"Resolve a compressed GS1 Digital Link","api":"GET https://thingidentity.com/{compressedLink}","href":"/api-reference/resolver/resolve-compressed"}]}]}]},"title":"Render 2D barcode - Thing Identity","buildId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","deploymentId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-rfhihCWU.js","utils-BmH1XFxk.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BcNsxPKB.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BAES3tkd.js","snippetPresets-DCMQBKLP.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D6l_bzE9.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BOktbnNh.js","shallow-BCs8SgM7.js","getApiPlaygroundDisplay-DEmW5bJB.js","CodeSnippet-CpZOpB9C.js","CodeSnippets-BOBDqibl.js","Page-D5fEM6aW.js","getPastedJson-DH2JBvmr.js","icon-BBJH-kKh.js","MethodPill-D2Sd5NLC.js","DuplicateIcon-CGgfL2qN.js","createIcon-BKudBBzi.js","DynamicMarkdown-85clUA0i.js","SectionHeading-D0JiMgDx.js","axios-vUo_bRtp.js","Markdown-Cfiy0xZO.js","clsx-rL8ZCCw4.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-aeztFa9U.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BywkCr5C.js"]}