Pular para o conteúdo principal

Migrating from the current OCPI service

This page is for platforms that already read VoltBras data through the current OCPI service. The new service runs at a different address and has its own registration, so the two do not share tokens. Both implement OCPI 2.2.1, but some identifiers and values change.

What to do​

  1. Get the new versions URL and registration token from VoltBras.
  2. Register. Only a credentials endpoint is required on your side.
  3. Read your VoltBras parties from the roles in the Credentials answer. Do not assume they match the identifiers you hold today.
  4. Pull all Locations and Tariffs without date_from, and replace what you hold for VoltBras. EVSE and Tariff identifiers change, so do not merge them with the old ones.
  5. Then keep up to date by pulling changes, by exposing Receiver endpoints, or both.

What changes​

Connection​

TopicCurrent serviceNew service
AuthorizationToken in Base64Token in Base64. The token without Base64 is also accepted.
TokensYour current tokensNew tokens from a Credentials exchange, renewed after 30 days with a PUT.
UpdatesPull only, for Locations and TariffsPull, plus PUT to your Receiver endpoints when you declare them. No PATCH.

Locations​

FieldCurrent serviceNew service
idThe station's idUnchanged.
country_code, party_idLowercase; the country comes from the station's addressUppercase; the values of the publishing party.
evses[]One EVSE can hold several connectorsOne EVSE per connector.
evses[].uidThe EVSE's internal idA new UUID for each connector.
evses[].evse_idThe EVSE's number{country_code}*{party_id}*E{station code}*{connector id}.
evses[].capabilitiesEmpty, or from the charger modelREMOTE_START_STOP_CAPABLE.
connectors[].formatAlways CABLECABLE, or SOCKET for wall outlets.
connectors[].power_typeAC_1_PHASE for every AC connectorAC_1_PHASE or AC_3_PHASE.
connectors[].max_voltageAs configured on the chargerLine to neutral on three-phase connectors.
connectors[].tariff_idsEmptyThe connector's Tariff.
operator, ownerOnly operatorBoth, with the same name.

EVSE status​

A connector in Preparing was reported as CHARGING and is now AVAILABLE. The new service also reports an offline station as UNKNOWN, a connector in maintenance as OUTOFORDER, and a connector that is no longer published as REMOVED. See EVSE status.

Tariffs​

FieldCurrent serviceNew service
idStation id (up to 34 characters), -, connector idcpc-… from the content, shared by connectors with the same price.
elementsOne element per price componentOne element with all the components.
vat0Not sent.
step_size of TIME and PARKING_TIME601.
PARKING_TIME priceThe idle fee per minutePer hour, including the time price.
Free chargeFLAT of 0 with step_size 0FLAT of 0 with step_size 1.

See Tariffs for how to read each component.

The same charger in both services​

Fictional data, produced by running each service's mapping code. It is a station with a 22 kW three-phase AC connector, a price of 0.50 per minute, and an idle fee of 0.20 per minute. Fields that do not matter for the comparison are left out.

Location fields​

Current service

{
"country_code": "br",
"party_id": "exa",
"id": "3f1c9a52-7b1e-4d0a-9c35-2a6e8f10b7d4",
"name": "Example Paulista",
"country": "BRA",
"operator": {
"name": "Example CPO",
"website": null,
"logo": null
}
}

New service

{
"country_code": "BR",
"party_id": "EXA",
"id": "3f1c9a52-7b1e-4d0a-9c35-2a6e8f10b7d4",
"name": "Example Paulista",
"country": "BRA",
"operator": {
"name": "Example CPO"
},
"owner": {
"name": "Example CPO"
},
"facilities": [
"MALL"
],
"opening_times": {
"twentyfourseven": true
}
}

EVSE​

Current service

{
"uid": "evse-0002",
"evse_id": "2",
"status": "CHARGING",
"capabilities": [],
"connectors": [
{
"id": "2",
"standard": "IEC_62196_T2",
"format": "CABLE",
"power_type": "AC_1_PHASE",
"max_voltage": 380,
"max_amperage": 32,
"max_electric_power": 22000,
"tariff_ids": [],
"last_updated": "2026-11-10T12:00:00.000Z"
}
],
"last_updated": "2026-11-10T12:00:00.000Z"
}

New service

{
"uid": "81eb3264-0001-585d-9a4d-62d96f3ce01e",
"evse_id": "BR*EXA*EA1B2C3*2",
"status": "CHARGING",
"capabilities": [
"REMOTE_START_STOP_CAPABLE"
],
"connectors": [
{
"id": "2",
"standard": "IEC_62196_T2",
"format": "CABLE",
"power_type": "AC_3_PHASE",
"max_voltage": 219,
"max_amperage": 32,
"max_electric_power": 22000,
"tariff_ids": [
"cpc-9bf1d9d838711240126f9570f4647958"
],
"last_updated": "2026-11-10T12:00:00.000Z"
}
],
"last_updated": "2026-11-10T12:00:00.000Z"
}

Tariff​

Current service

{
"country_code": "BR",
"party_id": "EXA",
"id": "3f1c9a52-7b1e-4d0a-9c35-2a6e8f10b7-2",
"currency": "BRL",
"elements": [
{
"price_components": [
{
"type": "TIME",
"price": 30,
"vat": 0,
"step_size": 60
}
]
},
{
"price_components": [
{
"type": "PARKING_TIME",
"price": 0.2,
"vat": 0,
"step_size": 60
}
]
}
],
"last_updated": "2026-11-10T12:00:00.000Z"
}

New service

{
"country_code": "BR",
"party_id": "EXA",
"id": "cpc-9bf1d9d838711240126f9570f4647958",
"currency": "BRL",
"elements": [
{
"price_components": [
{
"type": "TIME",
"price": 30,
"step_size": 1
},
{
"type": "PARKING_TIME",
"price": 42,
"step_size": 1
}
]
}
],
"last_updated": "2026-11-10T12:00:00.000Z"
}

New modules​

The new service also offers Commands, Sessions, and CDRs as a CPO.