Skip to main content
POST
Render 2D barcode
Render one code as an SVG file. Send a single code definition, not a codes array. The same GS1 validation used by POST /codes applies. This operation requires write:codes and does not save a generated-code record or a file.

Barcode modes

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. Each response is a single file.

Download an SVG

Success returns 200 OK with Content-Type: image/svg+xml. Example response body, shown as SVG source:
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 requests or codes that cannot be rendered return 400 Bad Request with an empty body. For GS1 validation details in JSON, submit the code definition to POST /codes, wrapped in a codes array.

Authorizations

Authorization
string
header
required

The access_token from POST /oauth/token.

Body

mode
enum<string>
required

Barcode type. Digital Link modes require digitalLinkStem.

Available options:
GS1_DATAMATRIX,
DATAMATRIX_GS1_DIGITAL_LINK_URI,
GS1_QR,
QR_GS1_DIGITAL_LINK_URI
Example:

"QR_GS1_DIGITAL_LINK_URI"

primaryKey
any
required
errorCorrectionLevel
enum<string> | null

QR only: L, M, Q or H. Omitted or null selects L for QR. For Data Matrix omit or send null.

Available options:
L,
M,
Q,
H,
null
ais
any
extensionParameters
any
context
any

Response

SVG barcode image.

The response is of type string.