Appendix
B Template placeholders
In block-builder and custom HTML templates, words in square brackets are replaced with real values when the page is shown. Names are not case-sensitive; unknown placeholders stay as they are.
| Placeholder | Replaced with |
|---|---|
| [AssetName] | The asset's name |
| [AssetDescription] | The asset's description |
| [VerifiedAt] | Date and time of the verification (UTC) |
| [VerifiedDate] | Date of the verification |
| [VerificationMethod] | The carrier type that was scanned |
| [propertyName] | The product's value for any asset field, e.g. [serialNumber], [caseMaterial] |
| GS1 fields | For GS1 assets: [gtin], [brandName], [tradeItemDescription], [netContent], [batchLotNumber], [expiryDate] and the other GS1 attributes |
| Passport data | Any top-level item of the asset's passport chart data, by its key, printed as raw data. For a product whose passport is published from the Shopify app, the published passport replaces the asset's chart data; the Integration guide (Custom HTML templates) shows how to read it with a script |
| [AssetImageUrl] · [AssetThumbUrl] | On the verified page only: the address of the asset's main photo (the first one under Photos), full size up to 1600 px or a thumbnail up to 480 px (longest side). Use it as an image address: <img src="[AssetImageUrl]"> in custom HTML, or the Source URL of an Image block. Empty when the asset has no photos |
| [TransactionId] · [TransactionLink] | The integrity record and its explorer link, when assets are stored on a blockchain |
| [ErrorMessage] | On the unverified page only: why the check failed |
| [FailReason] | On the unverified page only: the failure group as a code, already-scanned, blocked, internal-only or auth-failed, for example to switch texts in custom HTML |
The Integration guide in the admin panel (Custom HTML templates) explains how custom HTML pages can also read the full verification data with a script.
Brand theme variables#
When a brand theme is saved, custom HTML templates get its colours as CSS variables. Always give a fallback, so the page still looks right without a theme: background: var(--brand-surface, #ffffff).
| Variable | Value |
|---|---|
--brand-primary · --brand-on-primary | Primary colour and the text colour on it |
--brand-link | Primary colour made readable as link text |
--brand-accent | Accent colour |
--brand-bg · --brand-page-bg | Page background colour, and the full background (gradient or soft spots) |
--brand-surface · --brand-text · --brand-muted · --brand-line | Cards, text on them, secondary text and dividers |
--brand-btn-bg · --brand-btn-fg · --brand-btn-border | Buttons in the chosen style |
--brand-font · --brand-radius-s · --brand-radius-m · --brand-radius-l · --brand-radius-btn | Font and corner rounding |
With Like the device the variables switch between the light and dark palette by themselves.