qrcode
Scannable QR code with an optional center icon.
See also
This is the import-time schema. To override an existing QR code layer's properties at generation time, see Element Properties → QR Code.
| Property | Type | Notes |
|---|---|---|
payload | string | URL or text to encode. Up to 2048 chars (invalid_payload beyond). Blank values are accepted: an explicit "", a whitespace-only payload and an omitted payload are all valid — an omitted one defaults to "". |
foreground_color | color | QR color. Defaults to black. See Color & Length Conventions for the accepted hex/CMYK forms. |
background_color | color | Background — supports alpha (e.g. #FFFFFF00 for transparent). See Color & Length Conventions. |
icon_src | string | Center icon rendered over the QR code. Accepts the same three source forms as an image layer's src: a filename (returns a presigned upload in uploads[]), an https:// URL, or a data URI (data:image/png / data:image/jpeg, decoded ≤ 1 MB — out_of_range beyond). |
margin | int | Quiet zone around the code, in modules (not a length) — 0–100, defaults to 2. Same field on every design type; it takes no unit conversion on print. |
opacity | int | 0–100. Defaults to 100. |
rotation | float | 0–360 inclusive. |
Not qrcode properties
padding and icon_size are not accepted — the icon scale is chosen by the renderer.
Error correction is automatic
The QR error-correction level is chosen by the system — a higher level is used when a center icon is present (the icon covers part of the code). It is not a payload field; supplying one is rejected as unknown_field.
