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
rolefield 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
typefield (theTariffTypeenum) distinguishes tariff variants for the same connector (ad hoc payment, RFID or contract, charging-preference profiles),min_priceandmax_pricecap a session, every price component can carry itsvat, and areservationrestriction prices reservations.PARKING_TIMEis not new: it was already a tariff dimension in 2.1.1. - The Credentials object grew a roles list.
business_details,party_idandcountry_codemoved 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_codeandparty_idfields, 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 bareauth_idbecame acdr_tokenobject. - Transport gained required headers.
X-Request-IDandX-Correlation-IDon every request and response, plusOCPI-from-*andOCPI-to-*routing headers for traffic through a hub.
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:
- 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.
- You POST your real credentials, including token B, to the partner’s
/credentialsendpoint, authenticated with token A. - The partner stores your token B and returns their token C in the response.
- From now on, you call the partner with token C; the partner calls you with token B.
- 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_codeandparty_idare now fields on the Location itself.publishis new and required. Sendfalsefor sites that must not appear in apps;publish_allowed_tothen lists the tokens that may still see it.time_zonewent from optional to required. A 2.1.1 sender that left it out now produces invalid Locations.typewas renamedparking_typeand made optional.OTHERandUNKNOWNare gone from the enum;ON_DRIVEWAYandALONG_MOTORWAYare new.- On the Connector,
voltageandamperagebecamemax_voltageandmax_amperage,max_electric_poweris new, andtariff_id(one string) becametariff_ids(an array). That last one breaks every eMSP that looked up exactly one tariff per connector. - Location
idand EVSEuidshrank 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.twentyfoursevenis now always required, withregular_hoursrequired when it isfalse.
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_codeandparty_idon the Tariff.type, with theTariffTypevaluesREGULAR(RFID, no charging preference),AD_HOC_PAYMENT(drive-by payment),PROFILE_CHEAP,PROFILE_FASTandPROFILE_GREEN. Together withtariff_idson 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_priceandmax_price, bothPriceobjects, which cap what a session can cost in either direction.vaton every PriceComponent.start_datetimeandend_datetimerenamed tostart_date_timeandend_date_time.- New restrictions:
min_current,max_current, andreservation(RESERVATIONorRESERVATION_EXPIRES), which is how a reservation fee is priced. On the CDR side the matching charging-period dimension isRESERVATION_TIME, and the total lands intotal_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_idwas replaced bycdr_token, a small object withcountry_code,party_id,uid,typeandcontract_id. A bareauth_idcould not identify a token uniquely;uidplustypewithin a given eMSP can.- The embedded
locationobject was replaced by three references:location_id,evse_uidandconnector_id. start_datetimeandend_datetimebecamestart_date_timeandend_date_time.total_costchanged from a number (excluding VAT) to aPriceobject withexcl_vatand an optionalincl_vat.country_code,party_idandauthorization_referenceare new.- Every PATCH must now carry
last_updated, and a PATCH containingcharging_periodsappends 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_idwas renamedcontract_id. Any code keyed onauth_idbreaks.country_codeandparty_idare new on the Token.TokenTypegainedAD_HOC_USERandAPP_USERnext toRFIDandOTHER. Since the sameuidcan now exist with two types, the Receiver GET, PUT and PATCH endpoints take atypeparameter, and your token cache has to be keyed onuidplustype, notuidalone.group_id,default_profile_typeandenergy_contractare new and optional.- The real-time authorization response (
AuthorizationInfo) now includes the fulltokenand an optionalauthorization_reference, which the CPO must copy into the Session and the CDR. AuthMethod(defined in the CDRs module) gainedCOMMAND, for sessions started bySTART_SESSIONorRESERVE_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 requiredtimeoutin seconds and an optionalmessage.TIMEOUTis no longer one of its result values. - The asynchronous answer the CPO POSTs to
response_urlis now a separateCommandResultobject, with the result valuesACCEPTED,CANCELED_RESERVATION,EVSE_OCCUPIED,EVSE_INOPERATIVE,FAILED,NOT_SUPPORTED,REJECTED,TIMEOUTandUNKNOWN_RESERVATION. In 2.1.1 the CPO posted anotherCommandResponse. reservation_idchanged from an integer to a string of up to 36 characters, so UUIDs work.StartSessionandReserveNowgainedauthorization_reference. 2.2.1 adds an optionalconnector_idonStartSessionfor 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
endpointslist gained a requiredroleofSENDERorRECEIVER. 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 firstlocationsentry 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-IDandX-Correlation-ID. Through a hub, add the fourOCPI-from-country-code,OCPI-from-party-id,OCPI-to-country-codeandOCPI-to-party-idheaders 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.1 | 2.2.1 | What happens if one side still sends the old form |
|---|---|---|
Session and CDR auth_id | cdr_token object | The 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_id | Required fields missing; the session is rejected or shown at no location |
CDR location | cdr_location (CdrLocation) | Same, on the billing record |
Session start_datetime, CDR stop_date_time | start_date_time, end_date_time on both | Required start time missing; sessions with no end time never close |
total_cost: 2.50 | total_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_id | Token contract_id | Tokens arrive without a contract ID; real-time authorization lookups fail |
Token cache keyed on uid | Keyed on uid plus type | An APP_USER and an RFID token with the same uid overwrite each other |
Connector tariff_id | tariff_ids (array) | The eMSP finds no tariff and shows no price |
Connector voltage, amperage | max_voltage, max_amperage | Power shown as unknown, or rejected as missing required fields |
Location type | parking_type (optional) | Unknown field ignored, or rejected by a strict schema |
Tariff start_datetime, end_datetime | start_date_time, end_date_time | Validity window lost; a seasonal tariff looks valid forever |
| Tariff PATCH | Tariff PUT only | The partner answers PATCH with an error; the price update never lands |
Async command result as CommandResponse | CommandResult | The eMSP cannot parse the callback; the app waits for a result that already arrived |
| IDs up to 39 characters | Location id and EVSE uid up to 36 | Strict receivers reject the object outright |
| No request headers | X-Request-ID, X-Correlation-ID | Strict 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.
- Engineer the new Credentials handshake with token A/B/C and roles, the
rolefield on every endpoint, and theX-Request-IDandX-Correlation-IDheaders. Don’t expose it yet. - 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_idand tokentypeeverywhere you stored a bare ID. Every later step depends on this. - 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. - Migrate Sessions and CDRs together, because they share
cdr_token, the location references, the renamed date fields and thePricetype. Respect the PATCH append rule forcharging_periods. - Migrate Commands to the
CommandResponsewithtimeoutplus asyncCommandResultpattern, and storeauthorization_referenceagainst each OCPP transaction. - 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). - 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.
- 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.
- 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.
- Engineer the new Credentials handshake (same).
- Add the ChargingProfiles client side if you intend to use smart charging. Otherwise skip.
- Update your tariff consumer to handle
tariff_ids, the tarifftype,min_priceandmax_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. - Update your CDR ingestion to handle new optional fields and SignedData if you operate in a regulated market.
- 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_idand ignoresmin_price,max_priceand 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_periodslist 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
publishboolean on Location was clarified. Locations withpublish: falseare still sent; the eMSP must hide them from everyone except tokens matchingpublish_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.