Skip to main content

Digital Product Passport Guide

The public DPP API returns current product facts in an EN 18223-based JSON format. It implements the three core identifier-based read operations from EN 18222.

Use https://api.carbontrail.net/dpp/v1/... for API calls. Stable identifiers remain on id.carbontrail.net.

These reads do not require an API key, OAuth token or organization ID.

Choose the API group​

The API reference separates public DPP documents from brand compliance exports:

Digital Product Passports (public)Passport (brand compliance)
PurposeRetrieve one product's public DPP document, or discover DPP identifiers.Export a brand's product compliance information, including the AGEC view.
IdentifierA complete DPP ID or product identifier (UPI) URI containing the GTIN.The brand's brandSlug.
EndpointsThree /dpp/v1/ operations listed below.Brand compliance export under /partner/v1.0/.
ResponseOne EN 18223-based document in compressed or full JSON, or a list of DPP identifier URIs for discovery.A paginated compliance response with data, page, pageSize and totalCount.

Use Digital Product Passports (public) for public, product-level DPP exchange. Use Passport (brand compliance) for a compliance export across a brand's catalogue. The Passport API group is the brand export; the consumer passport website at passport.carbontrail.net is a separate browser interface.

Identifiers and eligibility​

A product must be active, have its passport enabled, and have one unambiguous GTIN assignment. Each normalized GTIN has its own model-level identity, even when several GTINs belong to one product:

Product identifier (UPI): https://id.carbontrail.net/01/{gtin14}
Passport identifier: https://id.carbontrail.net/dpp/01/{gtin14}

Replace {gtin14} with the product's actual 14-digit GTIN, including leading zeroes. Use the complete canonical URI in API requests.

The owning organization also needs its assigned Party GLN in the existing external identities collection, with name GS1PartyGLN and a 13-digit value. A physical-location GLN is not interchangeable with a Party GLN. Issuer assignment and the responsible legal entity will be confirmed during onboarding.

Unknown or ineligible passports return a generic 404. Ambiguous assignments return a generic 409.

Read a passport​

The API reference lists these operations under Digital Product Passports:

OperationMethod and path
ReadDPPByIdGET /dpp/v1/dpps/{dppId}
ReadDPPByProductIdGET /dpp/v1/dppsByProductId/{productId}
ReadDPPIdsByProductIdsPOST /dpp/v1/dppsByProductIds

Percent-encode the complete identifier URI as one path segment for GET requests. For example, encode the https:// and all path slashes. Do not encode it twice. A successful GET returns the document directly, without a success/payload wrapper.

The following shell example encodes an existing product's UPI and prints the response headers and body.

API_ORIGIN='https://api.carbontrail.net'
UPI='https://id.carbontrail.net/01/09506000134352'
ENCODED_UPI=$(python3 -c 'import sys, urllib.parse; print(urllib.parse.quote(sys.argv[1], safe=""))' "$UPI")
curl --include --get "$API_ORIGIN/dpp/v1/dppsByProductId/$ENCODED_UPI"

Compressed and full JSON​

The default representation=compressed returns the common header and named product facts:

{
"digitalProductPassportId": "https://id.carbontrail.net/dpp/01/09506000134352",
"uniqueProductIdentifier": "https://id.carbontrail.net/01/09506000134352",
"granularity": "model",
"dppSchemaVersion": "EN 18223:2026",
"dppStatus": "active",
"lastUpdated": "2026-10-02T00:00:00Z",
"economicOperatorId": "https://id.gs1.org/417/9506000134352",
"contentSpecificationIds": [],
"carbonTrail": {
"productName": "Example shirt",
"articleNumber": "ART-1",
"sku": "SKU-1"
}
}

These identifiers and facts are illustrative; the response uses the actual product, organization and source timestamps. The response can also include the optional public content sections below.

Add ?representation=full to receive the same header and facts in expanded element form:

{
"elements": [
{
"elementId": "carbonTrail",
"objectType": "DataElementCollection",
"dictionaryReference": "https://id.carbontrail.net/dpp/dictionary/v1.json#carbonTrail",
"elements": [
{
"elementId": "productName",
"objectType": "SingleValuedDataElement",
"dictionaryReference": "https://id.carbontrail.net/dpp/dictionary/v1.json#productName",
"valueDataType": "xsd:string",
"value": "Example shirt"
}
]
}
]
}

This snippet shows the element portion only; the full response also includes the same required header as the compressed response. Full output currently uses collections and typed string, numeric and boolean elements. Repeated values use MultiValuedDataElement with a value array.

The controlled extension dictionary is available at /dpp/dictionary/v1.json. Fragment identifiers select entries by their id. This is a Carbon Trail definition set, not an EU-issued product-group content specification. dppSchemaVersion identifies the horizontal standard, not a publication or product revision.

JSON is the supported media type. Unsupported representation values return 400; unsupported requested media types return 406. Representation selection does not mean HTTP gzip or compressed GS1 URLs.

Discover passport IDs​

Send a nonempty JSON array of one to 25 canonical UPIs. The body contains ordinary URI strings, without path percent encoding. Successful output is a bare JSON array of matching passport identifier strings. Duplicate input identifiers are deduplicated, and the result has deterministic identifier order. Missing or ineligible passports have no entry. An ambiguous assignment fails the request with 409.

curl --include --request POST \
"$API_ORIGIN/dpp/v1/dppsByProductIds?limit=1" \
--header 'Content-Type: application/json' \
--data '["https://id.carbontrail.net/01/09506000134352"]'

The maximum request body is 64 KiB. The limit query parameter is 1–25 and defaults to 25. Omit cursor on the first page; an explicitly empty cursor is invalid.

When another page exists, the response includes X-CarbonTrail-Next-Cursor. Repeat the same input set and limit with that cursor as a URL-encoded query value. Input order and duplicate entries can change without changing the normalized set. The last page omits the header. The response array stays unwrapped.

The cursor is protected, bound to the request set and limit, and expires after 30 minutes. Changed, expired or invalid cursors return 400. Pages use current data; they do not form an immutable snapshot, so changes between requests can affect results.

The cursor header and limit policy are Carbon Trail transport conventions. Do not treat their names as EN-defined JSON fields. Public CORS exposes the cursor header to browser clients. A rate-limited request returns 429. Do not run unbounded parallel discovery calls.

Errors and current-data limits​

Errors produced by the DPP controller use a Result with a message array. Entries include messageType, text, HTTP code, a correlation ID and message timestamp. Transport or proxy failures can have an empty or different body, particularly for size limits and 429 responses.

Example 404 Result (correlation ID and time vary per request):

{
"message": [
{
"messageType": "Error",
"text": "Resource not found",
"code": "404",
"correlationId": "example-request-id",
"timestamp": "2026-11-07T00:00:00Z"
}
]
}
StatusMeaning
400Malformed identifier, representation, body, limit or cursor
404Unknown or ineligible passport
406Unsupported response media type
409Ambiguous identifier assignment
413Request body exceeds the transport size limit
415Unsupported request content type; use application/json
429Public scan or discovery rate limit
500/503Unexpected failure or source timeout

Successful reads use Cache-Control: no-store and X-CarbonTrail-Data-Mode: live.

The stable DPP identifier URI has a direct read handler at /dpp/01/{gtin14}.

Optional public content​

These sections are under carbonTrail in both compressed and full responses:

SectionContent
productDetailsCategory/type, segment, size/demographic, recorded weight in grams, owning organization name/logo and image URLs.
compositionMaterial entries, mass basis/scope, allocation method. Material entries can include recycled share, certification labels, component associations and referenced supplier names/countries.
recycledContentWeighted recycled mass share of reported product materials and known recycled shares for every material. Packaging is separate.
packagingExplicit no-packaging flag and packaging material/component entries, with record ID, weight, composition, recycled share, recorded classifications/labels and supplier/country where present.
certificationLabelsRecorded labels
manufacturingRecorded processes, technologies, referenced supplier/facility names and country-level locations.
traceabilityComponent hierarchy, names/SKUs/types, materials, certifications, manufacturing processes and referenced supplier names/countries.
environmentalInformationRecorded recyclability and hazardous-substance labels. Omission is not an assertion of substance absence.
environmentalFootprintConservatively matched current PEF method footprint calculation: methodology, boundary, calculation version/time, declared unit, top-level impact categories/values/units and usable data quality rating.

All definitions are Carbon Trail content extensions in the EN 18223 structure. They are not an EU-issued sector content specification. contentSpecificationIds remains empty. Read the versioned definitions at /dpp/dictionary/v1.json.

For example, a compressed response can contain:

{
"composition": {
"materials": [
{ "name": "Cotton", "percentage": 60, "percentageScope": "product-materials" },
{ "name": "Polyester", "percentage": 40, "percentageScope": "product-materials" }
]
},
"certificationLabels": ["Recorded certificate"]
}

In full JSON, lists use objectType: MultiValuedDataElement and a value array of expanded DataElements. Primitive items are typed single values; object items are collections. Full item IDs such as item1 are metadata local to that response, not persistent identifiers. Compressed JSON does not use numbered property keys. This follows EN 18223 section 5.2.7 and the dedicated full example.

Unknown percentages are omitted rather than set to zero. The percentage scope is reported product materials under the source allocation rules. Supplier country is not proof of raw-material origin. countryIsProxy identifies source-default locations.