MSP · Sessions
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.
- Additional fieldsAdds fields OCPI 2.1.1 does not define: the owning party (country_code and party_id) on every object, and extra location data such as a publish flag, charging accessibility, parking places and the details needed for national access point reporting. Sessions and CDRs also carry VAT-inclusive totals.When not enabled: Objects carry only the fields the OCPI specification defines.
Get a session
Returns a single session the CPO pushed to the MSP.
Path parameters3
200OCPI response envelope application/json
dataobject
locationobject
coordinatesobject
related_locationsobject[]
evsesobject[]
directionsobject[]
operatorobject
suboperatorobject
ownerobject
opening_timesobject
imagesobject[]
energy_mixobject
cdr_charge_rulesobject[]
parking_placesobject[]
registry_infoobject
charging_periodsobject[]
dimensionsobject[]
Last known status of the EVSE the session took place on.
ISO 3166-1 alpha-2 country code of the party that owns the object.
OCPI party id of the party that owns the object.
Total cost including VAT, alongside the VAT-exclusive total_cost.
401Missing or invalid OCPI token
Put a session
Creates or replaces a session in the MSP's system.
Path parameters3
Request bodyREQUIREDapplication/json
locationobject
coordinatesobject
nameobject
related_locationsobject[]
nameobject
evsesobject[]
status_scheduleobject[]
connectorsobject[]
coordinatesobject
directionsobject[]
imagesobject[]
parkingobject[]
registry_infoobject
directionsobject[]
operatorobject
logoobject
suboperatorobject
logoobject
ownerobject
logoobject
opening_timesobject
regular_hoursobject[]
exceptional_openingsobject[]
exceptional_closingsobject[]
imagesobject[]
energy_mixobject
energy_sourcesobject[]
environ_impactobject[]
cdr_charge_rulesobject[]
tariff_elementsobject[]
parking_placesobject[]
imagesobject[]
registry_infoobject
operator_contactobject
owner_contactobject
charging_periodsobject[]
dimensionsobject[]
Last known status of the EVSE the session took place on.
ISO 3166-1 alpha-2 country code of the party that owns the object.
OCPI party id of the party that owns the object.
Total cost including VAT, alongside the VAT-exclusive total_cost.
200OCPI response envelope application/json
dataobject
locationobject
coordinatesobject
related_locationsobject[]
evsesobject[]
directionsobject[]
operatorobject
suboperatorobject
ownerobject
opening_timesobject
imagesobject[]
energy_mixobject
cdr_charge_rulesobject[]
parking_placesobject[]
registry_infoobject
charging_periodsobject[]
dimensionsobject[]
Last known status of the EVSE the session took place on.
ISO 3166-1 alpha-2 country code of the party that owns the object.
OCPI party id of the party that owns the object.
Total cost including VAT, alongside the VAT-exclusive total_cost.
401Missing or invalid OCPI token
Patch a session
Partially updates a session in the MSP's system.
Path parameters3
Request bodyREQUIREDapplication/json
locationobject
coordinatesobject
nameobject
related_locationsobject[]
nameobject
evsesobject[]
status_scheduleobject[]
connectorsobject[]
coordinatesobject
directionsobject[]
imagesobject[]
parkingobject[]
registry_infoobject
directionsobject[]
operatorobject
logoobject
suboperatorobject
logoobject
ownerobject
logoobject
opening_timesobject
regular_hoursobject[]
exceptional_openingsobject[]
exceptional_closingsobject[]
imagesobject[]
energy_mixobject
energy_sourcesobject[]
environ_impactobject[]
cdr_charge_rulesobject[]
tariff_elementsobject[]
parking_placesobject[]
imagesobject[]
registry_infoobject
operator_contactobject
owner_contactobject
charging_periodsobject[]
dimensionsobject[]
Last known status of the EVSE the session took place on.
ISO 3166-1 alpha-2 country code of the party that owns the object.
OCPI party id of the party that owns the object.
Total cost including VAT, alongside the VAT-exclusive total_cost.
200OCPI response envelope application/json
dataobject
locationobject
coordinatesobject
related_locationsobject[]
evsesobject[]
directionsobject[]
operatorobject
suboperatorobject
ownerobject
opening_timesobject
imagesobject[]
energy_mixobject
cdr_charge_rulesobject[]
parking_placesobject[]
registry_infoobject
charging_periodsobject[]
dimensionsobject[]
Last known status of the EVSE the session took place on.
ISO 3166-1 alpha-2 country code of the party that owns the object.
OCPI party id of the party that owns the object.
Total cost including VAT, alongside the VAT-exclusive total_cost.