CDRs
VoltBras is the Sender of CDRs. You receive the CDRs of the charges your platform started.
When a CDR is created
A CDR is created shortly after its Session becomes COMPLETED, and you receive the final Session first. An INVALID Session has no CDR. A free charge has a CDR with a total of zero.
- The first CDR of a charge has the same
idas its Session. tariffsholds the Tariff fixed when theSTART_SESSIONwas accepted.last_updatedis the creation time and does not change.
Example
The CDR of the COMPLETED Session:
Show the CDR
{
"country_code": "BR",
"party_id": "EXA",
"id": "8c2f4b6e-1d3a-4f57-a9b0-6e7d5c4b3a21",
"start_date_time": "2026-11-10T14:00:30.000Z",
"end_date_time": "2026-11-10T14:15:00.000Z",
"session_id": "8c2f4b6e-1d3a-4f57-a9b0-6e7d5c4b3a21",
"cdr_token": {
"country_code": "NL",
"party_id": "EMS",
"uid": "b5e1f0c2-44aa-4c11-9d7e-1f2a3b4c5d6e",
"type": "APP_USER",
"contract_id": "NL-EMS-C12345678-X"
},
"auth_method": "COMMAND",
"authorization_reference": "auth-20261110-0001",
"cdr_location": {
"id": "3f1c9a52-7b1e-4d0a-9c35-2a6e8f10b7d4",
"name": "Example Paulista",
"address": "Avenida Paulista, 1000",
"city": "São Paulo",
"postal_code": "01310-100",
"country": "BRA",
"coordinates": {
"latitude": "-23.561414",
"longitude": "-46.655881"
},
"evse_uid": "96f9a7dc-ee9f-5f48-825e-7bfd1fa9b596",
"evse_id": "BR*EXA*EA1B2C3*1",
"connector_id": "1",
"connector_standard": "IEC_62196_T2_COMBO",
"connector_format": "CABLE",
"connector_power_type": "DC"
},
"currency": "BRL",
"tariffs": [
{
"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"
}
],
"charging_periods": [
{
"start_date_time": "2026-11-10T14:00:30.000Z",
"dimensions": [
{
"type": "ENERGY",
"volume": 4.42
},
{
"type": "TIME",
"volume": 0.0833
}
],
"tariff_id": "cpc-87921a519b4c7d7e2f0b6e39ba76d6c4"
},
{
"start_date_time": "2026-11-10T14:05:30.000Z",
"dimensions": [
{
"type": "ENERGY",
"volume": 4.13
},
{
"type": "TIME",
"volume": 0.0834
}
],
"tariff_id": "cpc-87921a519b4c7d7e2f0b6e39ba76d6c4"
},
{
"start_date_time": "2026-11-10T14:10:30.000Z",
"dimensions": [
{
"type": "ENERGY",
"volume": 1.05
},
{
"type": "TIME",
"volume": 0.025
}
],
"tariff_id": "cpc-87921a519b4c7d7e2f0b6e39ba76d6c4"
},
{
"start_date_time": "2026-11-10T14:12:00.000Z",
"dimensions": [
{
"type": "ENERGY",
"volume": 0
},
{
"type": "PARKING_TIME",
"volume": 0.05
}
],
"tariff_id": "cpc-87921a519b4c7d7e2f0b6e39ba76d6c4"
}
],
"total_cost": {
"excl_vat": 23.1,
"incl_vat": 23.1
},
"total_fixed_cost": {
"excl_vat": 2.5,
"incl_vat": 2.5
},
"total_energy": 9.6,
"total_energy_cost": {
"excl_vat": 19.1,
"incl_vat": 19.1
},
"total_time": 0.2417,
"total_time_cost": {
"excl_vat": 0,
"incl_vat": 0
},
"total_parking_time": 0.05,
"total_parking_cost": {
"excl_vat": 1.5,
"incl_vat": 1.5
},
"last_updated": "2026-11-10T14:15:06.000Z"
}
Corrections
A CDR is never changed. If a finished charge is corrected, VoltBras sends, in this order:
- A Credit CDR: the original
idwith the suffix-C,credit: true,credit_reference_idwith the originalid, the original data, and a negativetotal_cost. - A new CDR, when the corrected charge is still billable: a new UUID as
id, with the samesession_id.
Only total_cost is negative in a Credit CDR. The other cost and volume fields keep the original values, as OCPI defines.
Correcting the example above to 8 kWh gives this Credit CDR and this new CDR:
Show the Credit CDR
{
"country_code": "BR",
"party_id": "EXA",
"id": "8c2f4b6e-1d3a-4f57-a9b0-6e7d5c4b3a21-C",
"start_date_time": "2026-11-10T14:00:30.000Z",
"end_date_time": "2026-11-10T14:15:00.000Z",
"session_id": "8c2f4b6e-1d3a-4f57-a9b0-6e7d5c4b3a21",
"cdr_token": {
"country_code": "NL",
"party_id": "EMS",
"uid": "b5e1f0c2-44aa-4c11-9d7e-1f2a3b4c5d6e",
"type": "APP_USER",
"contract_id": "NL-EMS-C12345678-X"
},
"auth_method": "COMMAND",
"authorization_reference": "auth-20261110-0001",
"cdr_location": {
"id": "3f1c9a52-7b1e-4d0a-9c35-2a6e8f10b7d4",
"name": "Example Paulista",
"address": "Avenida Paulista, 1000",
"city": "São Paulo",
"postal_code": "01310-100",
"country": "BRA",
"coordinates": {
"latitude": "-23.561414",
"longitude": "-46.655881"
},
"evse_uid": "96f9a7dc-ee9f-5f48-825e-7bfd1fa9b596",
"evse_id": "BR*EXA*EA1B2C3*1",
"connector_id": "1",
"connector_standard": "IEC_62196_T2_COMBO",
"connector_format": "CABLE",
"connector_power_type": "DC"
},
"currency": "BRL",
"tariffs": [
{
"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"
}
],
"charging_periods": [
{
"start_date_time": "2026-11-10T14:00:30.000Z",
"dimensions": [
{
"type": "ENERGY",
"volume": 4.42
},
{
"type": "TIME",
"volume": 0.0833
}
],
"tariff_id": "cpc-87921a519b4c7d7e2f0b6e39ba76d6c4"
},
{
"start_date_time": "2026-11-10T14:05:30.000Z",
"dimensions": [
{
"type": "ENERGY",
"volume": 4.13
},
{
"type": "TIME",
"volume": 0.0834
}
],
"tariff_id": "cpc-87921a519b4c7d7e2f0b6e39ba76d6c4"
},
{
"start_date_time": "2026-11-10T14:10:30.000Z",
"dimensions": [
{
"type": "ENERGY",
"volume": 1.05
},
{
"type": "TIME",
"volume": 0.025
}
],
"tariff_id": "cpc-87921a519b4c7d7e2f0b6e39ba76d6c4"
},
{
"start_date_time": "2026-11-10T14:12:00.000Z",
"dimensions": [
{
"type": "ENERGY",
"volume": 0
},
{
"type": "PARKING_TIME",
"volume": 0.05
}
],
"tariff_id": "cpc-87921a519b4c7d7e2f0b6e39ba76d6c4"
}
],
"total_cost": {
"excl_vat": -23.1,
"incl_vat": -23.1
},
"total_fixed_cost": {
"excl_vat": 2.5,
"incl_vat": 2.5
},
"total_energy": 9.6,
"total_energy_cost": {
"excl_vat": 19.1,
"incl_vat": 19.1
},
"total_time": 0.2417,
"total_time_cost": {
"excl_vat": 0,
"incl_vat": 0
},
"total_parking_time": 0.05,
"total_parking_cost": {
"excl_vat": 1.5,
"incl_vat": 1.5
},
"credit": true,
"credit_reference_id": "8c2f4b6e-1d3a-4f57-a9b0-6e7d5c4b3a21",
"last_updated": "2026-11-11T09:00:00.000Z"
}
Show the new CDR
{
"country_code": "BR",
"party_id": "EXA",
"id": "d41a7e90-52bc-4e6f-8a13-7c9b0e2f6a55",
"start_date_time": "2026-11-10T14:00:30.000Z",
"end_date_time": "2026-11-10T14:12:00.000Z",
"session_id": "8c2f4b6e-1d3a-4f57-a9b0-6e7d5c4b3a21",
"cdr_token": {
"country_code": "NL",
"party_id": "EMS",
"uid": "b5e1f0c2-44aa-4c11-9d7e-1f2a3b4c5d6e",
"type": "APP_USER",
"contract_id": "NL-EMS-C12345678-X"
},
"auth_method": "COMMAND",
"authorization_reference": "auth-20261110-0001",
"cdr_location": {
"id": "3f1c9a52-7b1e-4d0a-9c35-2a6e8f10b7d4",
"name": "Example Paulista",
"address": "Avenida Paulista, 1000",
"city": "São Paulo",
"postal_code": "01310-100",
"country": "BRA",
"coordinates": {
"latitude": "-23.561414",
"longitude": "-46.655881"
},
"evse_uid": "96f9a7dc-ee9f-5f48-825e-7bfd1fa9b596",
"evse_id": "BR*EXA*EA1B2C3*1",
"connector_id": "1",
"connector_standard": "IEC_62196_T2_COMBO",
"connector_format": "CABLE",
"connector_power_type": "DC"
},
"currency": "BRL",
"tariffs": [
{
"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"
}
],
"charging_periods": [
{
"start_date_time": "2026-11-10T14:00:30.000Z",
"dimensions": [
{
"type": "ENERGY",
"volume": 3.4783
},
{
"type": "TIME",
"volume": 0.0833
}
],
"tariff_id": "cpc-87921a519b4c7d7e2f0b6e39ba76d6c4"
},
{
"start_date_time": "2026-11-10T14:05:30.000Z",
"dimensions": [
{
"type": "ENERGY",
"volume": 3.4782
},
{
"type": "TIME",
"volume": 0.0834
}
],
"tariff_id": "cpc-87921a519b4c7d7e2f0b6e39ba76d6c4"
},
{
"start_date_time": "2026-11-10T14:10:30.000Z",
"dimensions": [
{
"type": "ENERGY",
"volume": 1.0435
},
{
"type": "TIME",
"volume": 0.025
}
],
"tariff_id": "cpc-87921a519b4c7d7e2f0b6e39ba76d6c4"
}
],
"total_cost": {
"excl_vat": 18.42,
"incl_vat": 18.42
},
"total_fixed_cost": {
"excl_vat": 2.5,
"incl_vat": 2.5
},
"total_energy": 8,
"total_energy_cost": {
"excl_vat": 15.92,
"incl_vat": 15.92
},
"total_time": 0.1917,
"total_time_cost": {
"excl_vat": 0,
"incl_vat": 0
},
"total_parking_time": 0,
"total_parking_cost": {
"excl_vat": 0,
"incl_vat": 0
},
"last_updated": "2026-11-11T09:00:00.001Z"
}
Pull
GET /2.2.1/cdrs lists your CDRs ordered by last_updated, 100 per page by default and at most 1000. You keep access to them even if you can no longer see the party.
CDRs sent to you
When your platform declares a cdrs endpoint with the role RECEIVER, VoltBras sends each CDR once:
POST {your cdrs endpoint}
Answer with HTTP 2xx, a status from 1000 to 1999, and the CDR's URL in the Location header.
The POST is not repeated, so a CDR you did not confirm can only be recovered by a pull. After an outage, pull with date_from from before it started. A Credit CDR is sent only after the CDR it credits was delivered, and a new CDR only after its Credit CDR was. If the earlier one was not delivered, the later one is available only through the pull.