Skip to main content
POST
Render up to 10 codes in one request. The response has the same codes and errors structure as batch generation. Each successful code also contains image, the SVG document encoded as Base64.

Request

The same modes, optional parameters and QR correction levels as single rendering apply. QR correction defaults to L. This endpoint requires write:codes.

Compression

Set compression on individual items to EPC_BASE64 or EPC_HEX, or omit it / send null for an uncompressed URI. Compressed and uncompressed items can share a batch. The single-rendering restrictions apply: Digital Link mode, digitalLinkStem, primary key 01, serial number AI 21, and EPC-supported additional AIs.
Each success contains the compressed URI in barcodeText, the unchanged GS1 data in hri, and the rendered SVG encoded as Base64 in image. An invalid compression produces an item error Validation.Invalid.compression at path compression; the batch remains 200 OK.

Results

Successful entries contain reference, barcodeText, hri and image. Decode the Base64 value in image to UTF-8 SVG bytes and save them as an .svg file. Invalid items appear in errors with reference and an errors list containing code, path and args. They do not prevent other items from rendering. The response remains 200 OK, including when all items fail. Your reference is echoed unchanged. If omitted or null, the original zero-based position is returned as a string. Empty references are preserved. More than 10 items returns 422 with Validation.TooMany.codes before any rendering starts.

Authorizations

Authorization
string
header
required

The access_token from POST /oauth/token.

Body

codes
object[]
required
Maximum array length: 10

Response

Successful codes and per-item errors. Inspect errors even when the HTTP status is 200.

codes
object[]
required
errors
object[]
required