eMSP · Data sharing
No OAuth-enabled endpoints in this section. Turn off the OAuth filter in the sidebar to see all of its endpoints.
List data sharing counterparties
Road extension. Returns the parties the calling CPO holds a live agreement with and may share sessions with: loyalty schemes, smart charging providers, navigation providers. The OCPI-from headers select the owner party when the connection carries several.
200OCPI response envelope application/json
dataobject[]
401Missing or invalid OCPI token
List data sharing permissions
Road extension. Returns the calling CPO's active permissions; include_revoked=true adds revoked ones.
200OCPI response envelope application/json
dataobject[]
ownerobject
counterpartyobject
scopeobject
entriesobject[]
sourceobject
adminobject
apiobject
offerobject
revoked_byobject
adminobject
apiobject
offerobject
401Missing or invalid OCPI token
Create a data sharing permission
Road extension. Grants a counterparty the calling CPO's sessions in scope. kind is OBSERVE_SESSIONS or SMART_CHARGING; identity_policy is FULL, PSEUDONYMISED (default) or PARTY_ONLY; scope is all or a list of location and EVSE entries. A smart charging scope already delegated to another counterparty is refused with HTTP 409.
Request bodyREQUIREDapplication/json
counterpartyobject
scopeobject
entriesobject[]
200OCPI response envelope application/json
dataobject
ownerobject
counterpartyobject
scopeobject
entriesobject[]
sourceobject
adminobject
apiobject
offerobject
revoked_byobject
adminobject
apiobject
offerobject
401Missing or invalid OCPI token
Get a data sharing permission
Road extension. Returns one of the calling CPO's permissions.
Path parameters1
200OCPI response envelope application/json
dataobject
ownerobject
counterpartyobject
scopeobject
entriesobject[]
sourceobject
adminobject
apiobject
offerobject
revoked_byobject
adminobject
apiobject
offerobject
401Missing or invalid OCPI token
Update a data sharing permission's scope
Road extension. Adds entries to and removes entries from an entries scope. An all-locations scope cannot be edited.
Path parameters1
Request bodyREQUIREDapplication/json
addobject[]
removeobject[]
200OCPI response envelope application/json
dataobject
ownerobject
counterpartyobject
scopeobject
entriesobject[]
sourceobject
adminobject
apiobject
offerobject
revoked_byobject
adminobject
apiobject
offerobject
401Missing or invalid OCPI token
Revoke a data sharing permission
Road extension. Revokes the permission and returns its final record. Sessions created afterwards no longer carry it; sessions in flight finish as stamped.