Skip to content
Start free

Barcode

A barcode of a value made from text and fields.

PropertyRequiredDescription
valueYes1 to 100 text and field nodes, without formatting, as for a QR code
symbologyYesThe kind of barcode

The barcode is stretched to fill its box: make the box wide enough for the bars.

symbologyBarcodeIts value
code_25Code 25Only digits
code_39Code 39Only A-Z, 0-9, spaces and - . $ / + %
code_93Code 93Only ASCII characters
code_128Code 128Only ASCII characters
ean_13EAN-1312 digits, or 13 with the check digit
ean_8EAN-87 digits, or 8 with the check digit
upc_aUPC-A11 digits, or 12 with the check digit

A submission fails with “A barcode has no value.” when the value comes out empty, and with a message saying the value can’t be encoded as that barcode when it doesn’t fit its rules.

A Code 128 barcode of the shipment’s tracking number:

{
"id": "tracking_barcode",
"type": "barcode",
"x": 0,
"y": 0,
"width": 252,
"height": 60,
"symbology": "code_128",
"value": [
{ "type": "field", "attrs": { "expression": "shipment.tracking_number" } }
]
}