Developers · Core concepts

Versioning and stability

How the Battery Passport API is versioned: /v1 in the path, additive changes only within a version, breaking changes in a new version with advance notice.

Version
v1.0.0
Base URL
https://dppapi-production.up.railway.app/v1
Format
JSON · OpenAPI 3.1
FeedbackLast updated

Cet article n'est pas encore disponible en français ; il est affiché ci-dessous en anglais.

On this pageThe version is in the path

A battery passport has to stay available for years, and so do the integrations that feed it. An ERP job written against v1 should keep working without anyone touching it.

The version is in the path

Every endpoint is under /v1. There is no version to request in a header and no date-pinned behaviour to manage: the path you call is the contract you get. Every response names the exact version that answered in X-DPP-Api-Version (currently 1.0.0), and GET /me returns it as apiVersion.

What may change within v1

Within a version, changes are additive only:

ChangeWithin v1?
New endpointsYes
New optional request propertiesYes
New properties in responsesYes
Removing or renaming an endpoint or propertyNo — new version
Making an optional request property requiredNo — new version
Changing the type or meaning of a propertyNo — new version

Breaking changes

Anything that could break a working integration goes into a new version, /v2, announced in advance — never into v1.

Writing tolerant clients

  • Ignore response properties you do not recognise instead of failing on them.
  • Do not depend on the order of properties in a JSON object.
  • Treat the error codes you handle explicitly as a known set and fall back to the HTTP status for the rest.
  • Read obligations from the field catalogue at runtime rather than copying today’s list into code.

The specification

The OpenAPI 3.1 document is public and is the source of truth for request and response schemas. Generate a client from it, diff it in CI, or load it into your API tool of choice:

https://dppapi-production.up.railway.app/v1/openapi.json

Préférences en matière de cookies

Vous choisissez les cookies utilisés. Vous pouvez modifier votre choix à tout moment via « Paramètres des cookies » en bas de page. Politique de confidentialité

Nécessaires

Toujours actifs

Indispensables au fonctionnement du site : votre thème clair/sombre et ce choix de cookies sont enregistrés dans votre navigateur. Ils ne servent pas à vous suivre.

Analyse

Google Analytics 4 mesure l’utilisation des pages au moyen de statistiques, ce qui nous aide à améliorer le site. Si vous acceptez, il dépose des cookies et mesure votre visite en détail. Si vous refusez, il ne dépose aucun cookie, mais Google peut tout de même recevoir des données techniques, comme la page consultée, le type de navigateur et l’adresse IP.

_ga, _ga_* · jusqu’à 2 ans · Google