format |
string |
Required |
Symbology format: 'qr' (ISO 18004 v1-v10 UTF-8), 'code128' (Set B/C auto-packed), 'gs1_128' (GS1 Application Identifiers with FNC1), 'ean13' (GTIN-13), or 'upca' (GTIN-12). (enum: qr | code128 | gs1_128 | ean13 | upca) |
value |
string |
Required |
Payload to encode (UTF-8 string/URL for QR; printable ASCII for code128; '(01)...' AI string for gs1_128; 12/13 digits for ean13; 11/12 digits for upca). (minLength: 1, maxLength: 1024) |
scale |
integer |
Optional |
Pixels per module (defaults to 4 for QR and 2 for 1D linear barcodes). (min: 1, max: 24) |
barHeight |
integer |
Optional |
Bar height in pixels for 1D linear barcodes (defaults to 72). (min: 20, max: 400) |
quietZone |
integer |
Optional |
Quiet zone margin in modules (defaults to ISO standard: 4 for QR, 9-11 for 1D). (min: 0, max: 32) |
includeText |
boolean |
Optional |
Render human-readable text beneath symbol (defaults to true for 1D, false for QR). |
label |
string |
Optional |
Optional custom human-readable caption override beneath the barcode. (maxLength: 120) |
foreground |
string |
Optional |
Foreground bar/module hex color (#RGB or #RRGGBB, default '#000000'). (maxLength: 16) |
background |
string |
Optional |
Background hex color (#RGB or #RRGGBB, default '#FFFFFF'). (maxLength: 16) |
errorCorrection |
string |
Default: "M" |
QR Code Reed-Solomon error correction level: L (~7%), M (~15%), Q (~25%), H (~30%). (enum: L | M | Q | H) |