Pular para o conteúdo principal

Tariffs

VoltBras is the Sender of Tariffs. You can pull them, and if your platform has a tariffs Receiver endpoint, VoltBras also sends you each change. A connector points to its Tariff in tariff_ids.

Standard tariffs​

Most connectors use a tariff built from the connector's price. It has one element, with one price component per charged dimension.

typePricestep_size
FLATFee per session.1
ENERGYPer kWh.1
TIMEPer hour of charging.1
PARKING_TIMEPer hour after charging stops: the time price plus any idle fee.1
  • Only components with a price above zero are sent.
  • A tariff with a single FLAT component of 0 means the charge is free.
  • id is cpc- followed by 32 hexadecimal characters. It comes from the tariff's content, so connectors with the same price in the same party share one Tariff, and a price change produces a new id.
  • These tariffs do not carry type, vat, restrictions, or alternative texts.

Examples​

A session fee, a price per kWh, and an idle fee of 0.50 per minute, sent as 30.00 per hour:

{
"country_code": "BR",
"party_id": "EXA",
"id": "cpc-87921a519b4c7d7e2f0b6e39ba76d6c4",
"currency": "BRL",
"elements": [
{
"price_components": [
{
"type": "FLAT",
"price": 2.5,
"step_size": 1
},
{
"type": "ENERGY",
"price": 1.99,
"step_size": 1
},
{
"type": "PARKING_TIME",
"price": 30,
"step_size": 1
}
]
}
],
"last_updated": "2026-11-10T12:00:00.000Z"
}

A price of 0.50 per minute of charging, sent as 30.00 per hour, plus an idle fee of 0.20 per minute. After charging stops, both apply, so PARKING_TIME is 42.00 per hour:

{
"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"
}

A free charge:

{
"country_code": "BR",
"party_id": "EXA",
"id": "cpc-5e587d2ec3e802d8da11deb449bad286",
"currency": "BRL",
"elements": [
{
"price_components": [
{
"type": "FLAT",
"price": 0,
"step_size": 1
}
]
}
],
"last_updated": "2026-11-10T12:00:00.000Z"
}

Roaming tariffs​

A tariff configured specifically for roaming can use more of the OCPI object: several elements, restrictions, vat, type, min_price, max_price, start_date_time, and end_date_time. Its id is a UUID. Read these fields as OCPI defines them.

Pull​

GET /2.2.1/tariffs lists the Tariffs of the parties you can see, 100 per page by default and at most 1000. Follow Pulling changes to choose the next date_from.

Updates sent to you​

When your platform declares a tariffs endpoint with the role RECEIVER, VoltBras checks for changes every 60 seconds and sends:

PUT {your tariffs endpoint}/{country_code}/{party_id}/{tariff_id}
DELETE {your tariffs endpoint}/{country_code}/{party_id}/{tariff_id}
  • PUT carries the whole Tariff.
  • A new Tariff is sent before the Locations that use it. A DELETE is sent after the Locations stop using the Tariff.
  • A send is not repeated.

The tariff of a charge is fixed when VoltBras accepts the START_SESSION: later changes do not affect that charge.