OCPI 2.2 was not a normal point release. It changed the connection model, added two new modules, restructured authentication, and tightened the data contracts for several existing modules. If you treat it like a routine upgrade from 2.1.1 you will spend the migration debugging mysterious 401 errors and broken CDR transmissions.

This guide is the migration in the order I would actually do it.

Why OCPI 2.2 happened

OCPI 2.1.1 worked, but two things were holding the protocol back. (If you’re new to the protocol itself, start with what OCPI is before the migration mechanics below.)

First, the architecture quietly assumed hubs. Peer-to-peer roaming was technically possible in 2.1.1, but the Credentials flow made it awkward enough that connecting through a hub and letting the hub fan out was the path of least resistance. Hubs solve a real arithmetic problem: direct connections between every CPO and every eMSP grow as the product of the two populations, not their sum. What they also do is put a party in the middle of a protocol that did not yet have the vocabulary to describe one. The trade-off between the two shapes is worked through in hub versus peer-to-peer OCPI.

Second, the protocol’s data model was getting strained. Tariffs needed more structure to express modern pricing: minimum and maximum session prices, VAT stated per price component, reservation fees, and distinct tariff variants for the same connector (ad hoc payment versus a contract, or a cheaper rate for a driver who accepts smart charging). CDRs needed a defined place for cryptographically signed metering data, because some markets require a verifiable meter reading behind every billed kilowatt-hour rather than a number the back office asserts. Germany’s calibration law (Eichrecht) is the best-known example of that requirement. And smart-charging coordination needed a real module instead of glue code.

OCPI 2.2 addressed both, and the two changes behave differently in a project plan. The data-model changes announce themselves as schema diffs, so they get tickets and estimates. The architectural change produces no diff at all, which is exactly why it is worth writing onto the plan by hand.

The headline changes

A short list before the details.

  • Roles became explicit. OCPI 2.2 introduced a role field and abstracted roles from the connection itself. Your party declares which roles it operates, and the set of recognized roles expanded well beyond the CPO/eMSP pair of 2.1.1 to include Roaming Hub, NAP, NSP, SCSP, and others.
  • Hub vs peer-to-peer is a first-class choice. The Credentials handshake works the same way structurally for both; what changes is whether the other side of the handshake is the partner directly or a hub representing many partners.
  • HubClientInfo is a new module that lets hubs publish the list of parties they connect on behalf of, so the other side can discover available partners.
  • ChargingProfiles is a new module for smart charging, letting an eMSP request that a session charge at a specific power profile.
  • CDR signing is now a defined extension via the SignedData object, which matters for German and other regulated markets.
  • Tariffs got richer. A type field (the TariffType enum) distinguishes tariff variants for the same connector (ad hoc payment, RFID or contract, charging-preference profiles), min_price and max_price cap a session, every price component can carry its vat, and a reservation restriction prices reservations. PARKING_TIME is not new: it was already a tariff dimension in 2.1.1.
  • The Credentials object grew a roles list. business_details, party_id and country_code moved into a roles list (CredentialsRole), with clearer URL conventions. The token-rotation flow is more explicit.
  • Every object names its owner. Location, Tariff, Session, CDR and Token gained their own country_code and party_id fields, instead of relying on the URL alone.
  • Sessions and CDRs reference instead of embed. The embedded Location became IDs (Session) or a slimmer CdrLocation (CDR), and the bare auth_id became a cdr_token object.
  • Transport gained required headers. X-Request-ID and X-Correlation-ID on every request and response, plus OCPI-from-* and OCPI-to-* routing headers for traffic through a hub.

Side-by-side map of OCPI 2.1.1 and 2.2: the same eight modules plus the new HubClientInfo and ChargingProfiles in 2.2, and Credentials that carry a list of roles instead of one party

The Credentials handshake (start here)

If you fix nothing else first, fix Credentials. Every other module depends on the handshake working, and the failure mode is silent: you get 401s with no real explanation.

In OCPI 2.1.1, your Credentials object looked roughly like this:

{
  "url": "https://your-server/ocpi/2.1.1/",
  "token": "abc123",
  "party_id": "ABC",
  "country_code": "US",
  "business_details": { "name": "Example CPO" }
}

In OCPI 2.2, the same object has more structure and is role-aware:

{
  "token": "abc123",
  "url": "https://your-server/ocpi/2.2/",
  "roles": [
    {
      "role": "CPO",
      "party_id": "ABC",
      "country_code": "US",
      "business_details": { "name": "Example CPO" }
    }
  ]
}

The roles array is what enables a single endpoint to operate as multiple roles (CPO + eMSP, or a Hub representing many parties). For a single-role implementation this looks like overhead, but the second time you need to add a role you’ll be glad it exists.

Token rotation also became explicit. OCPI 2.2 names three registration tokens: CREDENTIALS_TOKEN_A, CREDENTIALS_TOKEN_B, and CREDENTIALS_TOKEN_C. Take the perspective of the party initiating registration (the Sender). The flow is:

  1. The partner (Receiver) generates token A and gives it to you out-of-band (email, ticket, contract attachment). Token A only authorizes the registration itself.
  2. You POST your real credentials, including token B, to the partner’s /credentials endpoint, authenticated with token A.
  3. The partner stores your token B and returns their token C in the response.
  4. From now on, you call the partner with token C; the partner calls you with token B.
  5. Token A is thrown away and may no longer be used.
sequenceDiagram
    participant You
    participant Partner
    Note over You,Partner: Partner generates token A,<br/>sent to you out-of-band
    You->>Partner: POST /credentials with token B<br/>auth: token A
    Partner-->>You: Response with token C
    Note over You,Partner: token A discarded
    You->>Partner: Calls use token C
    Partner->>You: Calls use token B

OCPI 2.1.1 had the same flow conceptually, but 2.2 names the tokens explicitly and clarifies invalidation rules, which removes a lot of “wait, which token are you using” ambiguity in support tickets.

The Versions endpoint negotiation

GET /ocpi/versions returns the list of versions you support. In 2.2 you simply add 2.2 to the array; your existing 2.1.1 entry stays. Partners pick the highest version both sides support. The mechanics of version discovery and the handshake are covered in depth in our guide to OCPI credentials and versions.

A common mistake during migration: announcing 2.2 before the rest of your implementation is ready. If a partner does the version selection and picks 2.2, they expect every module to behave per the 2.2 spec. Stage the announcement.

Module-by-module changes

Locations

Mostly renames and newly required fields, but several of them break a 2.1.1 parser or produce invalid objects from a 2.1.1 sender:

  • country_code and party_id are now fields on the Location itself.
  • publish is new and required. Send false for sites that must not appear in apps; publish_allowed_to then lists the tokens that may still see it.
  • time_zone went from optional to required. A 2.1.1 sender that left it out now produces invalid Locations.
  • type was renamed parking_type and made optional. OTHER and UNKNOWN are gone from the enum; ON_DRIVEWAY and ALONG_MOTORWAY are new.
  • On the Connector, voltage and amperage became max_voltage and max_amperage, max_electric_power is new, and tariff_id (one string) became tariff_ids (an array). That last one breaks every eMSP that looked up exactly one tariff per connector.
  • Location id and EVSE uid shrank from 39 to 36 characters and became case-insensitive (CiString). If any of your IDs are longer than 36 characters, re-key them before you migrate, not during.
  • opening_times.twentyfourseven is now always required, with regular_hours required when it is false.

energy_mix, images and terms_and_conditions already existed in 2.1.1, so they are not migration work. Going straight to 2.2.1 also brings the AC_2_PHASE and AC_2_PHASE_SPLIT power types, the NEMA, GB/T and ChaoJi connector types, and the START_SESSION_CONNECTOR_REQUIRED capability.

Tariffs

The core of the tariff model kept its shape. Elements, price components, restrictions and the four dimensions ENERGY, FLAT, PARKING_TIME and TIME are all 2.1.1 concepts, so a 2.1.1 price calculator mostly still works. What 2.2 added sits around that core:

  • country_code and party_id on the Tariff.
  • type, with the TariffType values REGULAR (RFID, no charging preference), AD_HOC_PAYMENT (drive-by payment), PROFILE_CHEAP, PROFILE_FAST and PROFILE_GREEN. Together with tariff_ids on the Connector, this is how one connector advertises different prices to different kinds of driver, instead of the eMSP guessing from the price alone.
  • min_price and max_price, both Price objects, which cap what a session can cost in either direction.
  • vat on every PriceComponent.
  • start_datetime and end_datetime renamed to start_date_time and end_date_time.
  • New restrictions: min_current, max_current, and reservation (RESERVATION or RESERVATION_EXPIRES), which is how a reservation fee is priced. On the CDR side the matching charging-period dimension is RESERVATION_TIME, and the total lands in total_reservation_cost.
  • PATCH is gone from the Tariffs Receiver interface. Partners replace a tariff with PUT.

If your billing logic assumed one tariff per connector and no price caps, you’ll touch the most code here. For a field-by-field walk through the module itself, see the OCPI Tariffs module deep-dive.

Sessions

Not stable, despite the module name being unchanged. The Session object was restructured, and a 2.1.1 Session sent to a 2.2.1 receiver fails validation:

  • auth_id was replaced by cdr_token, a small object with country_code, party_id, uid, type and contract_id. A bare auth_id could not identify a token uniquely; uid plus type within a given eMSP can.
  • The embedded location object was replaced by three references: location_id, evse_uid and connector_id.
  • start_datetime and end_datetime became start_date_time and end_date_time.
  • total_cost changed from a number (excluding VAT) to a Price object with excl_vat and an optional incl_vat.
  • country_code, party_id and authorization_reference are new.
  • Every PATCH must now carry last_updated, and a PATCH containing charging_periods appends them to the existing list. To replace or remove periods you PUT the whole Session.

That append rule is the one 2.1.1 code most often gets wrong. A sender that PATCHes the full list of periods every minute doubles them on a 2.2.1 receiver. The side-by-side JSON further down shows the object change.

CDRs

Two things matter.

The SignedData object is the defined way to attach cryptographically signed metering data to a CDR or to an individual charging period. Whether you need it is a jurisdictional question rather than a technical one, so the check is specific: ask what the metrology or weights-and-measures authority in each country you operate in requires of a public charging invoice, and whether a signed meter reading is part of that. Germany’s calibration law (Eichrecht) is the best-known driver of the field’s existence. If none of your markets require it today, defer the implementation, but leave the signed blob somewhere to live in your data model.

The CDR totals were extended to match the richer tariff model. total_energy, total_time and total_parking_time already existed in 2.1.1; what is new are the cost breakdowns total_fixed_cost, total_energy_cost, total_time_cost, total_parking_cost and total_reservation_cost, which let you itemize a bill by dimension. If you charge parking or reservation fees, your CDR has to break them out so the eMSP can reconcile the invoice line by line.

The structural changes mirror Sessions: auth_id became cdr_token, the embedded location became cdr_location (a dedicated CdrLocation object holding only the EVSE and connector that were used), stop_date_time became end_date_time, and total_cost became a Price. New fields worth wiring up on day one: country_code and party_id, session_id (finally a defined link from the CDR to its Session), authorization_reference, and credit with credit_reference_id for credit CDRs. The CDR id grew from 36 to 39 characters so a credit CDR can append a suffix to the original ID. FLAT was removed from CdrDimensionType and RESERVATION_TIME added.

2.2.1 then made country_code and party_id mandatory inside cdr_token, which is the one 2.2 to 2.2.1 change most likely to break a working 2.2 integration. The CDRs module deep-dive walks the object field by field.

Tokens

More than a rename pass:

  • auth_id was renamed contract_id. Any code keyed on auth_id breaks.
  • country_code and party_id are new on the Token.
  • TokenType gained AD_HOC_USER and APP_USER next to RFID and OTHER. Since the same uid can now exist with two types, the Receiver GET, PUT and PATCH endpoints take a type parameter, and your token cache has to be keyed on uid plus type, not uid alone.
  • group_id, default_profile_type and energy_contract are new and optional.
  • The real-time authorization response (AuthorizationInfo) now includes the full token and an optional authorization_reference, which the CPO must copy into the Session and the CDR.
  • AuthMethod (defined in the CDRs module) gained COMMAND, for sessions started by START_SESSION or RESERVE_NOW.

Commands

The commands themselves are familiar (START_SESSION, STOP_SESSION, RESERVE_NOW, UNLOCK_CONNECTOR, plus CANCEL_RESERVATION, which is new in 2.2), but the response pattern changed:

  • The synchronous answer is still a CommandResponse, now with a required timeout in seconds and an optional message. TIMEOUT is no longer one of its result values.
  • The asynchronous answer the CPO POSTs to response_url is now a separate CommandResult object, with the result values ACCEPTED, CANCELED_RESERVATION, EVSE_OCCUPIED, EVSE_INOPERATIVE, FAILED, NOT_SUPPORTED, REJECTED, TIMEOUT and UNKNOWN_RESERVATION. In 2.1.1 the CPO posted another CommandResponse.
  • reservation_id changed from an integer to a string of up to 36 characters, so UUIDs work.
  • StartSession and ReserveNow gained authorization_reference. 2.2.1 adds an optional connector_id on StartSession for OCPP 1.x stations with several connectors per EVSE.

An eMSP that keeps parsing the async callback as a 2.1.1 CommandResponse sees an object without the fields it expects and leaves the driver’s app spinning until its own timeout.

Transport and Versions

Two changes that sit underneath every module, and that a schema diff of the modules will not show you:

  • Endpoints now carry a role. Each entry in the version details endpoints list gained a required role of SENDER or RECEIVER. A platform that is both CPO and eMSP lists the same module twice, once per role, and a 2.1.1 client that picks the first locations entry it finds can end up pushing to its own partner’s Sender interface.
  • Request and correlation IDs are required. Every request and response carries X-Request-ID and X-Correlation-ID. Through a hub, add the four OCPI-from-country-code, OCPI-from-party-id, OCPI-to-country-code and OCPI-to-party-id headers on functional modules.

A 2.2.1 version details response for a CPO looks like this:

{
  "data": {
    "version": "2.2.1",
    "endpoints": [
      { "identifier": "credentials", "role": "SENDER", "url": "https://cpo.example.com/ocpi/2.2.1/credentials" },
      { "identifier": "locations", "role": "SENDER", "url": "https://cpo.example.com/ocpi/2.2.1/locations" },
      { "identifier": "tariffs", "role": "SENDER", "url": "https://cpo.example.com/ocpi/2.2.1/tariffs" },
      { "identifier": "sessions", "role": "SENDER", "url": "https://cpo.example.com/ocpi/2.2.1/sessions" },
      { "identifier": "cdrs", "role": "SENDER", "url": "https://cpo.example.com/ocpi/2.2.1/cdrs" },
      { "identifier": "tokens", "role": "RECEIVER", "url": "https://cpo.example.com/ocpi/2.2.1/tokens" },
      { "identifier": "commands", "role": "RECEIVER", "url": "https://cpo.example.com/ocpi/2.2.1/commands" }
    ]
  },
  "status_code": 1000,
  "timestamp": "2026-11-28T09:00:00Z"
}

In 2.1.1 the same list had only identifier and url. For credentials the role carries no meaning, because the module is the same for every role. 2.2.1’s example uses SENDER, and 2.3.0 explicitly advises it.

Credentials (already covered above)

HubClientInfo (new in 2.2)

If you’re a hub, you publish a list of the parties you connect on behalf of, so other partners can see who’s reachable through you. If you’re a CPO or eMSP working with a hub, you may not implement this at all.

We have a separate deep-dive on HubClientInfo.

ChargingProfiles (new in 2.2)

Smart-charging instruction module: the eMSP can request that an ongoing session charge to a specific power profile (max amps, schedule, and so on). It is optional in the spec, so treat a given partner’s support for it as something you confirm during onboarding rather than something you assume. Note also that ChargingProfiles only carries the roaming-side request. Execution happens on the charger over OCPP, and any vehicle-side negotiation over ISO 15118, a division of labour set out in how the three protocols fit together. Detailed in our ChargingProfiles guide.

The same Session, before and after

The quickest way to see how much changed is one object in both versions. Here is a just-started session as a 2.1.1 CPO sends it (the location is trimmed to its required fields):

{
  "id": "101",
  "start_datetime": "2026-11-28T09:14:09Z",
  "kwh": 0.0,
  "auth_id": "DE8ACC12E46L89",
  "auth_method": "WHITELIST",
  "location": {
    "id": "LOC1",
    "type": "ON_STREET",
    "address": "Example Street 1",
    "city": "Utrecht",
    "postal_code": "3511 AA",
    "country": "NLD",
    "coordinates": { "latitude": "52.090737", "longitude": "5.121420" },
    "evses": [{
      "uid": "3256",
      "status": "CHARGING",
      "connectors": [{
        "id": "1",
        "standard": "IEC_62196_T2",
        "format": "SOCKET",
        "power_type": "AC_3_PHASE",
        "voltage": 230,
        "amperage": 32,
        "tariff_id": "11",
        "last_updated": "2026-11-28T09:14:09Z"
      }],
      "last_updated": "2026-11-28T09:14:09Z"
    }],
    "last_updated": "2026-11-28T09:14:09Z"
  },
  "currency": "EUR",
  "total_cost": 0.00,
  "status": "ACTIVE",
  "last_updated": "2026-11-28T09:14:09Z"
}

And the same session in 2.2.1:

{
  "country_code": "NL",
  "party_id": "CPX",
  "id": "101",
  "start_date_time": "2026-11-28T09:14:09Z",
  "kwh": 0.0,
  "cdr_token": {
    "country_code": "DE",
    "party_id": "8AC",
    "uid": "FA54320",
    "type": "RFID",
    "contract_id": "DE8ACC12E46L89"
  },
  "auth_method": "WHITELIST",
  "location_id": "LOC1",
  "evse_uid": "3256",
  "connector_id": "1",
  "currency": "EUR",
  "total_cost": { "excl_vat": 0.00, "incl_vat": 0.00 },
  "status": "ACTIVE",
  "last_updated": "2026-11-28T09:14:09Z"
}

Note what moved. The value that 2.1.1 sent as auth_id was the contract ID; 2.2.1 puts it in cdr_token.contract_id and adds the uid and type of the token the station actually read, plus the country_code and party_id of the eMSP that owns it. A 2.1.1 Token object has no country_code or party_id at all, so a CPO whose session records hold only auth_id cannot fill cdr_token from its own history unless it stored the country_code and party_id from the 2.1.1 push URL. Otherwise, refill the token cache from a fresh 2.2.1 Tokens pull before the first 2.2.1 Session goes out.

What breaks, field by field

2.1.12.2.1What happens if one side still sends the old form
Session and CDR auth_idcdr_token objectThe receiver cannot match the session to a driver; a 2.2.1 receiver rejects a CdrToken without country_code and party_id
Session location (embedded Location)location_id, evse_uid, connector_idRequired fields missing; the session is rejected or shown at no location
CDR locationcdr_location (CdrLocation)Same, on the billing record
Session start_datetime, CDR stop_date_timestart_date_time, end_date_time on bothRequired start time missing; sessions with no end time never close
total_cost: 2.50total_cost: { "excl_vat": 2.50, "incl_vat": 3.03 }Type error at best; at worst code that expected a number reads nothing and bills zero
Token auth_idToken contract_idTokens arrive without a contract ID; real-time authorization lookups fail
Token cache keyed on uidKeyed on uid plus typeAn APP_USER and an RFID token with the same uid overwrite each other
Connector tariff_idtariff_ids (array)The eMSP finds no tariff and shows no price
Connector voltage, amperagemax_voltage, max_amperagePower shown as unknown, or rejected as missing required fields
Location typeparking_type (optional)Unknown field ignored, or rejected by a strict schema
Tariff start_datetime, end_datetimestart_date_time, end_date_timeValidity window lost; a seasonal tariff looks valid forever
Tariff PATCHTariff PUT onlyThe partner answers PATCH with an error; the price update never lands
Async command result as CommandResponseCommandResultThe eMSP cannot parse the callback; the app waits for a result that already arrived
IDs up to 39 charactersLocation id and EVSE uid up to 36Strict receivers reject the object outright
No request headersX-Request-ID, X-Correlation-IDStrict partners reject the call; nobody can trace a lost message across both logs

Migration order (CPO perspective)

If you’re operating a CPO and rolling out 2.2, this is the order I would use.

  1. Engineer the new Credentials handshake with token A/B/C and roles, the role field on every endpoint, and the X-Request-ID and X-Correlation-ID headers. Don’t expose it yet.
  2. Fix identity in your data model first. Re-key any Location or EVSE ID longer than 36 characters, compare IDs case-insensitively, and store country_code, party_id and token type everywhere you stored a bare ID. Every later step depends on this.
  3. Migrate Locations and Tokens. These are mostly renames and new required fields (publish, time_zone, tariff_ids, contract_id), so they are the safe first wins. Refill your token cache from a fresh 2.2.1 pull.
  4. Migrate Sessions and CDRs together, because they share cdr_token, the location references, the renamed date fields and the Price type. Respect the PATCH append rule for charging_periods.
  5. Migrate Commands to the CommandResponse with timeout plus async CommandResult pattern, and store authorization_reference against each OCPP transaction.
  6. Migrate Tariffs to the new fields (type, min_price, max_price, vat). Test against your own billing engine to confirm nothing changes for existing tariffs (parity test).
  7. Announce 2.2 on your Versions endpoint to one trusted partner first. Don’t announce broadly until you’ve completed at least one real partner integration.
  8. Roll out to additional partners one by one. Assume each one surfaces at least one integration-specific bug, and don’t promise a “big bang” cut-over date.
  9. Plan deprecation of 2.1.1, but don’t rush. The date that matters is the one on which no partner still negotiates 2.1.1 against your Versions endpoint, so log what version each partner selects and let that traffic tell you when dropping it is free.

Migration order (eMSP perspective)

For an eMSP the flow is slightly different.

  1. Engineer the new Credentials handshake (same).
  2. Add the ChargingProfiles client side if you intend to use smart charging. Otherwise skip.
  3. Update your tariff consumer to handle tariff_ids, the tariff type, min_price and max_price, and reservation restrictions. A partner CPO can publish any of these even if you never price that way yourself, and a tariff you only half understand is a mis-priced session.
  4. Update your CDR ingestion to handle new optional fields and SignedData if you operate in a regulated market.
  5. Negotiate 2.2 upgrade with each CPO partner.

Common pitfalls

A list of things that have broken real migrations.

  • Token type confusion during the handshake. If your 2.1.1 code calls partners with what it thinks is “the token” but 2.2 expects token C specifically, you get 401s. Be explicit in your code about which token type you’re using.
  • Ignoring the new tariff fields. If your billing pipeline reads one tariff_id and ignores min_price, max_price and the reservation restriction, those parts of a partner’s price disappear silently into your DB. Catch them at ingestion or you’ll have mis-billed sessions.
  • Double-counted charging periods. A 2.1.1 sender that PATCHes the full charging_periods list on every update doubles the periods on a 2.2.1 receiver, which appends. PATCH only the new periods, or PUT the whole Session.
  • Versions endpoint advertising 2.2 too early. As noted above, stage the announcement.
  • Different country_code / party_id formats across partners. OCPI expects an ISO 3166 alpha-2 country code and a three-character party ID. In 2.2 and later both are CiString, so comparisons must be case-insensitive, while you store the partner’s value exactly as sent. Validate on the way in as well as on the way out.
  • Forgetting Locations.publish. The publish boolean on Location was clarified. Locations with publish: false are still sent; the eMSP must hide them from everyone except tokens matching publish_allowed_to. Only private home or business chargers SHALL NOT be published via OCPI. Apply that exclusion in the query that builds the payload, not in the serialiser, or the next endpoint someone adds will leak private sites without anyone noticing.

More failure modes, with the symptoms they produce, are collected in common OCPI integration pitfalls.

Testing

You need partner-style fixtures, not just your own. Tools and approaches:

  • Mock partner: stand up a fake CPO and fake eMSP that you control, exchange Credentials, and round-trip every module.
  • Schema validation: run every outgoing payload through an OCPI JSON Schema in CI, so a malformed object fails your build instead of your partner’s parser. OCPI testing tools covers what is available.
  • Pre-prod with one real partner: there is no substitute for one cooperative partner who is also willing to be on the 2.2 beta with you.
  • Production smoke tests: after each partner goes live on 2.2, do one real session and one real CDR end-to-end before declaring it done.

When NOT to migrate

If your business depends on one partner and that partner is on 2.1.1 indefinitely, you don’t need to move. OCPI 2.1.1 still works.

You should move when:

  • A meaningful number of your partners have moved or are moving.
  • You need a 2.2-only feature (ChargingProfiles for smart charging, signed CDRs for compliance, hub-via-HubClientInfo for discovery).
  • You are rewriting the integration layer anyway. Targeting 2.2 while you are already inside that code costs far less than a dedicated migration project later.

A pragmatic baseline: OCPI 2.3.0 was published in February 2025, and every release assumes the one before it. Treat 2.2 and its 2.2.1 clarifications as the floor you build from rather than a rung you can skip.

What about 2.2.1 and 2.3?

OCPI 2.2 was published in September 2019 and OCPI 2.2.1 in October 2021. They are distinct releases, and you will still meet implementations that speak plain 2.2, so the version string a partner advertises is worth reading precisely. 2.2.1 adds no modules, so a correct 2.2 implementation already satisfies most of it, but it is not cosmetic: some changes are breaking, such as the mandatory country_code and party_id on CdrToken. The field-level differences are laid out in OCPI 2.2 versus 2.2.1, and the full release timeline in the OCPI version history.

Aim the migration at 2.2.1 rather than at 2.2. It is the current mainstream release, and the delta from 2.2 is small enough that hitting it while you are already in the code costs close to nothing.

OCPI 2.3.0 was published in February 2025 and is a larger evolution than 2.2.1. We cover it separately in what is new in OCPI 2.3, and any field-level detail is worth confirming against the official OCPI repository before you plan against it. The sequencing advice does not change: get 2.2.1 right first.

The honest summary

OCPI 2.2 is worth doing, and the reason is not really the feature list. What changed is where the ambiguity lives. In 2.1.1, the token flow, the position of a hub, and the shape of a tariff were settled partly by convention between two specific parties; 2.2 wrote those conventions into the spec. The practical effect is that a whole class of bug moves from “email the partner and find out what they meant” to “read the document”.

Which is also the trap, and it is worth being blunt about it. The instinct during migration is to validate the new implementation against the old one, because the old one demonstrably works in production. But your 2.1.1 code encodes exactly the private conventions 2.2 replaced, so every place it agrees with itself is a place you have not tested. Validate against the spec, start with Credentials, and stage the Versions announcement until one real partner has run a real session end to end.