Partner API

Changelog

We follow SemVer at the URL major-version level: v2.x is
fully backward-compatible within the v2 namespace; breaking changes ship in v3.

Within a major, additive changes (new endpoints, new optional request fields,
new optional response fields, new event types, new scopes) are not breaking
and may land at any time.

v2.1.0 — current

  • GET /api/v2/organization/usage no longer fails for organisations with a subscription; usage now reports staff, DPP and gas use against the limits.
  • New: the EN 18222 API at /api/en18222/v1 (same tokens and scopes). See EN 18222 API.
  • GET /api/v2/dpps/:id/en18223?representation=full now returns the EN 18223 Annex A expanded form (an elements tree with elementId, objectType, dictionaryReference, valueDataType, value) instead of dataElements. The compressed form now sends numbers as JSON numbers, multilingual fields as [{value, language}] and documents as RelatedResource objects. Its header is exactly the published DPP Core Model fields: digitalProductPassportId, uniqueProductIdentifier, granularity, dppSchemaVersion, dppStatus, lastUpdated, economicOperatorId, facilityId, contentSpecificationIds, backupOperatorId (the earlier dppIdentifier and *Scheme keys are gone).
  • The public DPP URL also answers Accept: application/ld+json (EN 18223 JSON with an @context) and Accept: application/xml (EN 18223 Annex B XML), public fields only.
  • Identifiers follow the DPP Core Model: DPP create/update accept unique_product_id_type, unique_product_id, granularity, unique_economic_operator_id_type / unique_economic_operator_id, unique_facility_id_type / unique_facility_id, the two *_credential objects and backup_operator_id; responses carry the same names plus the deduced schemes and ICDs, economic_operator_id, facility_id, dpp_status, last_updated, content_specification_ids, eu_registration_status and registration_id. See DPPs. Publishing now requires a valid product identifier, an economic operator identifier, a back-up operator (except batteries) and a value in at least one language for every multilingual field (422 lists what is missing). The old gs1_gtin / iso_15459 / internal schemes can no longer be set; existing DPPs keep them until their next publish. by_product_id / ids_by_product_ids take unique_product_id and unique_product_id_scheme.
  • digital_product_passport_id is now https://{domain}/dpp/{uuid}; it serves
    the same page and formats as /p/{shortcode}, which QR codes keep using.

  • New: GET /api/v2/dpps/:id/blockchain_verification (dpps:read) checks a
    DPP's on-chain hash. See DPPs.

  • POST /api/v2/dpps/:id/publication now starts the blockchain write and
    answers 202 Accepted (status: "publication_pending"); the DPP becomes
    public once the write succeeds. Previously publish was visibility-only and
    answered 200. See DPPs.

  • Template imports: re-importing an existing template with
    POST /api/v2/imports/templates/json now updates it and returns 200 with
    "operation": "updated" (previously 422). Both template imports return
    operation; the undocumented created_sections / created_fields counts
    were removed. schema may now be an uploaded .json file. Template imports
    need only imports:write, as documented (they also demanded
    templates:write). Imports are still behind a flag (see below).

  • The legacy v1 API is switched off (see below and v1 vs v2).

  • Removed: the anonymous list GET /api/v2/public/dpps. Published passports
    are not publicly browsable; open one by shortcode with
    GET /api/v2/public/dpps/:shortcode. See Public DPPs.

v2.0.0

Initial public release of the Orobo partner API.

  • OAuth2 client_credentials with fine-grained scopes (see Authentication). bcrypt-hashed application secrets, with rotate / revoke flows.
  • Generally available resource endpoints under /api/v2:
    • Product Templates (CRUD, clone, datamapping, nested templatesections)
    • DPPs (CRUD via POST/PATCH /api/v2/dpps, publish/unpublish via POST/DELETE /api/v2/dpps/:id/publication; OpenAPI documents the write operations. Publish is visibility-only, not a blockchain write.)
  • Built but not yet generally available (answer 404 until released after UAT):
    • Journey Steps (nested under DPP)
    • Compliance requirements + documents (nested under DPP)
    • Contacts (CRUD)
    • Organization (read-only show, usage, staff)
    • Imports (templates spreadsheet/JSON, DPPs CSV/analyze/field_mappings/Google Drive)
  • Anonymous public reads at /api/v2/public/dpps[/:shortcode] with field-level filtering on Field#publicly_accessible?.
  • Outbound webhooks: register/list/show/update/delete/test/rotate_secret, HMAC-SHA256 signing, exponential-backoff retries, dead-letter after 6 attempts.
  • IP allowlist per application (CIDR, IPv4 + IPv6).
  • Idempotency-Key support on all mutating endpoints (24h cache; conflict on body mismatch).
  • RFC 7807 problem-details on every non-2xx; RFC 9331-style RateLimit-* headers + 429 problem-details on throttle.
  • Audit log (api_audit_logs) for every authenticated /api/v2/* request.
  • OpenAPI 3 at /api-docs/v2/swagger.yaml + Swagger UI at /api-docs.

Migration from v1 (informational)

The legacy v1 API (/api/v1/*) is switched off. Every v1 endpoint answers
410 Gone (an RFC 7807 problem document) with a Link: <…/documents/external-api>; rel="successor-version"
header. v1 was not the v2 namespace minus features: it had different auth,
error shapes, pagination and response shapes, so port integrations against
the v2 documentation rather than mapping v1 calls one-to-one.

Future / not yet implemented

  • mTLS for high-trust partners.
  • Streaming (Server-Sent Events) endpoints for live DPP state.
  • Bulk export endpoints (currently you must paginate).
  • Webhook auto-disable after sustained dead-lettering.