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.
type | Price | step_size |
|---|---|---|
FLAT | Fee per session. | 1 |
ENERGY | Per kWh. | 1 |
TIME | Per hour of charging. | 1 |
PARKING_TIME | Per 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
FLATcomponent of0means the charge is free. idiscpc-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 newid.- 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}
PUTcarries the whole Tariff.- A new Tariff is sent before the Locations that use it. A
DELETEis 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.