eMSP · CDRs
No OAuth-enabled endpoints in this section. Turn off the OAuth filter in the sidebar to see all of its endpoints.
Road enables these for your connection on request.
- Remapped party identitycountry_code, party_id and EVSE ids on locations, tariffs and CDRs can differ from those of the party that created them. Road rewrites them according to rules set up for the connection.When not enabled: Objects keep the identity of the party that created them.
- CDR retrieval by originNon-standard eMSP endpoint returning a CDR by its OCPI natural key triple (country_code, party_id, external id), alongside the standard retrieval by id.Available on every connection.When not enabled: Not part of the OCPI specification.
Post a CDR
Submits a charge detail record to the eMSP. The Location response header carries the URL of the stored CDR.
Request bodyREQUIREDapplication/json
ISO 3166-1 alpha-2 country code of the party that owns the object. Road can rewrite it according to the rules set up for the connection.
OCPI party id of the party that owns the object. Road can rewrite it according to the rules set up for the connection.
cdr_tokenobject
cdr_locationobject
coordinatesobject
Identifier of the EVSE. Road can rewrite it according to the rules set up for the connection.
tariffsobject[]
tariff_alt_textobject[]
min_priceobject
max_priceobject
elementsobject[]
price_componentsobject[]
restrictionsobject
energy_mixobject
energy_sourcesobject[]
environ_impactobject[]
charging_periodsobject[]
dimensionsobject[]
signed_dataobject
signed_valuesobject[]
total_costobject
total_fixed_costobject
total_energy_costobject
total_time_costobject
total_parking_costobject
total_reservation_costobject
200OCPI response envelope application/json
dataobject
ISO 3166-1 alpha-2 country code of the party that owns the object. Road can rewrite it according to the rules set up for the connection.
OCPI party id of the party that owns the object. Road can rewrite it according to the rules set up for the connection.
cdr_tokenobject
cdr_locationobject
coordinatesobject
Identifier of the EVSE. Road can rewrite it according to the rules set up for the connection.
tariffsobject[]
tariff_alt_textobject[]
min_priceobject
max_priceobject
elementsobject[]
energy_mixobject
charging_periodsobject[]
dimensionsobject[]
signed_dataobject
signed_valuesobject[]
total_costobject
total_fixed_costobject
total_energy_costobject
total_time_costobject
total_parking_costobject
total_reservation_costobject
401Missing or invalid OCPI token
Get a CDR
Returns a single charge detail record by its id.
Path parameters1
200OCPI response envelope application/json
dataobject
ISO 3166-1 alpha-2 country code of the party that owns the object. Road can rewrite it according to the rules set up for the connection.
OCPI party id of the party that owns the object. Road can rewrite it according to the rules set up for the connection.
cdr_tokenobject
cdr_locationobject
coordinatesobject
Identifier of the EVSE. Road can rewrite it according to the rules set up for the connection.
tariffsobject[]
tariff_alt_textobject[]
min_priceobject
max_priceobject
elementsobject[]
energy_mixobject
charging_periodsobject[]
dimensionsobject[]
signed_dataobject
signed_valuesobject[]
total_costobject
total_fixed_costobject
total_energy_costobject
total_time_costobject
total_parking_costobject
total_reservation_costobject
401Missing or invalid OCPI token
Get a CDR by origin
Returns a single charge detail record by its originating party and external id.
Path parameters3
200OCPI response envelope application/json
dataobject
ISO 3166-1 alpha-2 country code of the party that owns the object. Road can rewrite it according to the rules set up for the connection.
OCPI party id of the party that owns the object. Road can rewrite it according to the rules set up for the connection.
cdr_tokenobject
cdr_locationobject
coordinatesobject
Identifier of the EVSE. Road can rewrite it according to the rules set up for the connection.