QR code
Prints a QR code with configurable model, module size, error correction, and alignment.
Example
{
"type": "qrcode",
"content": "https://example.com",
"align": "center"
}Fields
| Field | Type | Description |
|---|---|---|
typerequired | "qrcode" | Discriminator for QR code blocks. |
contentrequired | string | Data to encode into the QR code. Must be at most 500 bytes after CP437 encoding.
|
alignoptional | string | Horizontal alignment of the printed QR code.
|
modeloptional | string | QR code model. Use model2 for normal QR codes; model1 is legacy, and micro is only suitable for very small payloads.
|
cellSizeoptional | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Size of each QR module in printer dots. Larger values print larger, easier-to-scan codes but require more paper width. |
correctionoptional | string | Error correction level. Higher levels improve damage tolerance but reduce data capacity and can increase the printed symbol size.
|