Render the passport's QR code.
Returns the QR code for a passport. Default response is a raw SVG image so <img src=".../qr"> works directly. Use ?format=png for a raster PNG, or ?format=json for an envelope containing both the SVG markup and a base64 PNG data URI plus the encoded URL + status.
Counts as one v1 passport-read against the daily budget (same counter as the data endpoint).
Request
- Base URL: https://app.tracepass.eu
- URL: https://app.tracepass.eu/api/v1/passports/{id}/qr
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://app.tracepass.eu/api/oauth/authorize, token URL https://app.tracepass.eu/api/oauth/token, scopes: passports:read)
Query parameters
The 2D symbology to render. EN 18220:2026 permits QR Code (ISO/IEC 18004) and Data Matrix (ISO/IEC 16022); both encode the same URL. Data Matrix suits small parts and direct part marking. With datamatrix, an 8-char backgroundColor renders opaque unless its alpha is 00 (fully transparent).
When set to true, foreground colour comes from the company's branding.primaryColor. Ignored if color is also set.
6-char hex without #. Wins over useCompanyBranding.
6 or 8 char hex without # (8 = RGBA).
Response
QR rendering.
Example response
{
"passportId": "6650a1b2c3d4e5f6a7b8c9d0",
"gtin": "04012345000015"
}Changes
No recorded changes to this operation across all 1 revision of this API.