EN 18222 API
Orobo offers the EN 18222 lifecycle API at /api/en18222/v1, next to
/api/v2. It uses the same OAuth2 client_credentials tokens and scopes
(dpps:read, dpps:write) and only reaches your own organisation's DPPs.
/api/v2 is unchanged.
Methods
| EN 18222 method | Request | Scope | Success |
|---|---|---|---|
| ReadDPPById | GET v1/dpps/{dppId} |
dpps:read |
200 DPP |
| ReadDPPByProductId | GET v1/dppsByProductId/{productId} |
dpps:read |
200 DPP |
| ReadDPPVersionByIdAndDate | GET v1/dppsByIdAndDate/{dppId}?date={timestamp} |
dpps:read |
200 DPP as it was |
| ReadDPPIdsByProductIds | POST v1/dppsByProductIds |
dpps:read |
200 ids |
| ReadDataElement | GET v1/dpps/{dppId}/elements/{elementIdPath} |
dpps:read |
200 data element |
| CreateDPP | POST v1/dpps |
dpps:write |
201 {"digitalProductPassportId": "..."} |
| DeleteDPPById | DELETE v1/dpps/{dppId} |
dpps:write |
204, or 202 when deletion is scheduled by retention |
UpdateDPPById and UpdateDataElement are not offered (405): EN 18222 needs them
only when third parties may update a DPP. Update your own DPPs through
PATCH /api/v2/dpps/:id.
Identifiers in the path
{dppId}is thedigitalProductPassportId(https://{domain}/dpp/{uuid}), percent-encoded as one path segment. The DPP's UUID or shortcode are also accepted.{productId}is the EN 18219 product identifier, percent-encoded. It matches on the normalized identifier, so any domain spelling of the same GS1 identifier resolves.{elementIdPath}is an RFC 9535 JSONPath such as$.general.weight, percent-encoded.
GET /api/en18222/v1/dpps/https%3A%2F%2Fdpp.orobo.io%2Fdpp%2F0f8c2a6e-5b7d-4c1e-9a3f-6e2d1b4c8a70
Bodies
Successful responses are the payload itself. A DPP is the EN 18223 JSON:
compressed by default, the Annex A expanded form with ?representation=full.
ReadDPPIdsByProductIds:
{ "productIds": ["https://id.acme.example/01/09506000134352/21/A1"], "limit": 25, "cursor": "..." }
returns { "dppIds": ["https://dpp.orobo.io/dpp/0f8c2a6e-5b7d-4c1e-9a3f-6e2d1b4c8a70"], "nextCursor": null }.
An empty cursor is refused.
CreateDPP takes the EN 18223 compressed form plus the DPP Core Model fields
EN 18223 does not carry (your product template and the identifier types):
{
"productTemplateId": "01G...",
"name": "Acme Cell-Pack 4S",
"uniqueProductIdentifier": "https://id.acme.example/01/09506000134352/21/4S-000123",
"uniqueProductIdType": "GS1_DIGITAL_LINK_URL",
"granularity": "item",
"uniqueEconomicOperatorIdType": "SIREN", "uniqueEconomicOperatorId": "552100554",
"backupOperatorId": "0002:912345678",
"general": { "weight": 12.5 }
}
Optional: uniqueFacilityIdType / uniqueFacilityId, and
economicOperatorCredential / facilityCredential
({ "type", "issuer", "subjectId", "validity": { "validFrom", "validUntil" } })
for DID_ORG. Data elements are keyed sectionElementId → fieldElementId. A
multilingual field takes [{"value": "...", "language": "en-GB"}]; a document
field a RelatedResource {"resourceTitle", "contentType", "url", "language"}.
Keys Orobo generates or deduces (digitalProductPassportId, dppStatus,
economicOperatorId, schemes, ICDs, ...) are ignored; any other unknown key is
refused.
Errors
Failures return the EN 18222 Result object with a status code from EN 18222
Table 15 only (400, 401, 403, 404, 405, 409, 500, 501, 502).
Validation errors are 400, never 422.
{
"message": [
{ "messageType": "Error", "text": "DPP creation failed", "code": "Bad Request",
"correlationId": "...", "timestamp": "2026-11-16T10:00:00Z" },
{ "messageType": "Error", "text": "Identifier value must follow https://doi.org/10.{registrant}/{suffix}", "...": "..." }
]
}
Rate limiting is shared with /api/v2 and still answers 429 (not in Table 15)
with Retry-After headers.
Registry endpoint
When registering DPPs with the EU registry, Orobo sends this API's base address
(https://<host>/api/en18222) as dppApiEndpoint.