Package Information
Available Nodes
Documentation generating…
Documentation
n8n-nodes-tracepass
This is an n8n community node. It lets you automate
TracePass — the EU Digital Product
Passport platform — in your n8n workflows.
TracePass generates compliant Digital Product Passports (DPPs) for EU
regulations (ESPR, the Battery Regulation, and more). This node lets
you create and manage products, passports, and GS1 EPCIS 2.0
supply-chain events directly from n8n — no code.
n8n is a fair-code licensed workflow automation
platform.
Installation ·
Operations ·
Credentials ·
Example workflows ·
Resources
Installation
Follow the
community nodes installation guide
in the n8n documentation.
In n8n: Settings → Community Nodes → Install, then entern8n-nodes-tracepass.
Operations
The operations below mirror the node's nodes/TracePass/*Description.ts
files; if they ever disagree, the code is right.
Product
- Create — add a product to the catalogue
- Create Batch — create up to 100 products in one call, with partial
success per item; the whole batch is counted against the daily write cap
upfront (if it would exceed the cap, nothing is created — 429). Products
are not billable on their own - Archive — soft-archive a product (reversible, not deletion); blocked
with 409 while any non-archived passport still references it - Get — retrieve a product by ID
- Get Many — list products, with category / search filters
- Update — update a product's name, model, or description
Passport
- Create — create a Digital Product Passport (consumes a plan
DPP slot — billable; opt in to overage with Confirm Overage
Charge). For a repurposed, remanufactured or reused battery, add
Lineage (JSON) under Additional Options to link the new passport
to the original(s) (Battery Regulation Art. 77(7)) - Create Batch — create up to 100 passport shells in one call (each
item: a product ID plus a GS1 GTIN + serial or an EN 18219 identifier
scheme; battery passports accept only GS1 or ISO 15459). Field values are
not accepted here — set them afterwards with Update Field. Partial
success per item; consumes one plan DPP slot per passport - Capture Measurements / Capture Measurements by Serial — push
over-life battery data from your own equipment (state of health, cycle
counts and the other Battery Regulation Annex XIII point 4 values) into a
published battery passport; metered against the plan's monthly measurement
allowance, and paid plans keep counting past it at no charge - Get Measurements / Get Latest Measurements — read a battery
passport's measurement history, or the newest value per field - Get / Get by Serial — retrieve a passport by ID or by its
serial number - Get Many — list passports, with status / product filters
- Get QR / Get QR by Serial — render the passport QR code
(SVG / PNG / JSON), optionally in the company brand colour or an
explicit colour, by ID or by serial - Get Snapshots — list a passport's immutability snapshots, newest
first (one is written on publish and after every change to a non-draft
passport), each with version, reason, actor, content hash and a
re-verifiedhashValid; set As Of to get the version valid at a given
moment instead - Get Snapshot — the full archival record of one snapshot: the complete
JSON-LD the passport asserted at that time, plus its content hash
(re-verified on read) - Compliance — get a three-tier compliance verdict (compliant /
compliant_with_warnings / incomplete) with regulation-cited findings —
missing required fields/parties, format issues, and per-category
conditional rules - Registry Readiness — check whether a passport would pass the EU DPP
Registry's formal submission gate (mandatory fields present, correct
formatting, a resolvable public link). The registry's mechanical
pre-submission check, not the substantive compliance verdict. Battery only - Get Condition Flags / Get Condition Flags by Serial — read the
condition-classification flags for a passport — approved yes/no facts
(e.g. battery:hasBMS,rechargeable,externalStorageOnly,isStationaryBess) that gate conditional legal duties - Set Condition Flags / Set Condition Flags by Serial — set or
clear condition flags (flag →true/false/nullto remove).
Warning: approving a flag may make additional fields required — an
empty required field will block publishing with aconditional_missing
error - Update Field / Update Field by Serial — set the value of one
passport field, by ID or by serial - Suspend / Suspend by Serial — suspend a published passport
(reversible), by ID or by serial - Archive / Archive by Serial — archive a passport
(irreversible — the public QR permanently 404s), by ID or by serial
The by-serial operations address a passport by your own serial number.
A serial is unique only within a GTIN, so if the same serial exists under
two GTINs in your account a serial-only call returns 409 — set the
optional GTIN (Disambiguator) field to resolve the passport exactly.
EPCIS Event
- Export / Export by Serial — export a passport's events as a
GS1 EPCIS 2.0 document, by ID or by serial (included on Starter plans
and up; the by-serial form takes the same optional GTIN disambiguator) - Capture — submit EPCIS 2.0 events (requires the EPCIS add-on)
- Get Capture Job — poll an async capture job
- Query — query the EPCIS event store with the standard EPCIS
query filters (requires the EPCIS add-on)
Scope
- Check — ask what EU law says for a product type matching the
facts given: whether it needs a Digital Product Passport, from when,
at which level, under which act and article, and the duties of each
supply-chain role (manufacturer, importer, distributor). Not legal
advice.
Accepts an optional product category, role, act-namespaced facts
(e.g.battery.use), placing date and precision, locale, and
optional product ID / passport ID to pull in saved facts. Available
on every plan, Free included. Counted against the scope-answer cap
(≈100/day, 30/min burst), not the v1 daily read cap. 429scope_answer_capwithRetry-Afterpast it. - Get Catalogue Report — get the company-wide scope report: for
every product and every distinct fact set among its passports,
whether a passport is needed, from when, at which level and under
which act. Filter by classification, category or Changed Only to
see only rows whose answer changed in the most recent run. UsenextCursorto page through the full report (up to 500 rows per
page). Requires Growth plan or above (scopeCatalogueEnabled); 403plan_upgrade_requiredbelow that. Counts one v1 daily read per
page.
Template
- Get Many — list the DPP category templates with their field
count, required-field count, governing regulation and version - Get — get the full regulatory field schema for one category
(every field with its key, label, type, required flag, access
level and governing regulation reference)
Templates are read-only reference data — use them to discover what a
compliant passport in a category requires before creating products
and passports.
Credentials
The node supports both of TracePass's auth methods. On the node, pick
one in the Authentication dropdown — n8n then shows the matching
credential type (you only fill in the one you chose):
| Authentication | Credential type | Best for |
|---|---|---|
| Access Token | TracePass API | A key you own — single user, server-to-server automation |
| OAuth2 | TracePass OAuth2 API | Acting on a specific user's behalf, with scoped + revocable access |
Access Token (API key) — the simplest. In the TracePass dashboard,
go to Developer → API Keys, create a key (it starts with tp_),
then create a TracePass API credential in n8n and paste it. Use
Test to verify the key before building a workflow. The whole
workspace is reachable (all-or-nothing).
OAuth2 — for when the workflow should act as a particular user with
only the access they granted. Register an OAuth app in the TracePass
dashboard under Developer → OAuth Apps (a public/PKCE client works —
no secret needed), then create a TracePass OAuth2 API credential in
n8n and click Connect: you approve the requested scopes on a
TracePass consent screen, and n8n stores + auto-refreshes the tokens.
Request only the scopes the workflow needs (e.g.passports:read passports:write offline_access — keep offline_access
so n8n can refresh). The user can revoke the connection any time under
Developer → OAuth Apps → Connected Apps.
For both, the Base URL defaults to https://app.tracepass.eu —
change it only for a self-hosted or staging deployment.
Example workflows
Shopify → TracePass — on a new Shopify order, create a passport
(product mapped by SKU, serial = order ID), then email the QR code
to the customer.
Daily analytics digest — a Schedule trigger lists yesterday's
passports and posts a summary to Slack.
CSV → passports — read a CSV of serial numbers and create a
passport per row.
Compatibility
Requires n8n 1.x. Tested against the current n8n community-node API
(n8nNodesApiVersion: 1).