A session is a core asset that encapsulates the attempts of the user (driver or admin) to affect a charging transaction. All metrics in a session are based on data reported by the chargestation sensors and meters.


Session Creation:
When a new session is created (via a POST API request or via the dashboard), eDRV sends a remote start request to the chargestation (status = created)

Charging Start:
If the chargestation starts charging the status changes to (status = started).

Charging Stop:
When the chargestation sends a successful stop charging message, (status = ended)

Session Cancelled:
If the chargestation does not report that charging has start within 120 seconds of a session start attempt the session is cancelled (status = cancelled). E.g. when the driver did not insert his charging cable in time. In this scenario please create a new session to attempt a new charging session.

  "ok": true,
  "message": "string",
  "result": {
    "_id": "60e7116e15f9305d44e9d4d5",
    "user": "60e7116e15f9305d44e9d4d5",
    "chargestation": "60e7116e15f9305d44e9d4d5",
    "connector": "60e7116e15f9305d44e9d4d5",
    "status": "created",
    "rate": "603763d392204c0c840578be",
    "target": {
      "time": 175,
      "cost": 17.5,
      "energy": 100,
      "energy_start_time": "2022-02-07T12:00:00.000Z",
      "energy_stop_time": "2022-02-07T18:30:00.000Z"
    "cost": {
      "amount": 17.5,
      "currency": "eur",
      "cost_breakdown": [
          "type": "ENERGY",
          "quantity": 48.6,
          "unit": "kWh",
          "unitPrice": 0.3,
          "beforeTax": 14.58,
          "tax": 20,
          "totalTax": 2.92,
          "totalCost": 17.5
    "metrics": {
      "chargingStart": "2021-07-08T14:56:47.528Z",
      "chargingStop": "2021-07-08T14:55:55.000Z",
      "energyPeriod": 2476,
      "energyConsumed": 4406
    "energy_report": {
      "timestamp": "2021-07-08T14:55:33Z",
      "current": {
        "value": 31.16,
        "unit": "A"
      "power": {
        "value": 7.018,
        "unit": "kW"
      "energy_meter": {
        "value": 15.83,
        "unit": "kWh"
    "meta_data": {
      "sample_key1": "some text",
      "sample_key2": 1234.56
    "createdAt": "2021-07-21T12:50:36.660Z",
    "updatedAt": "2021-07-21T12:50:36.660Z"


_id string

The Id of this transaction

user string

The Id of the user

chargestation string

The Id of the chargestation where this charging transaction took place

connector string

The Id of the connector where this charging transaction took place

status string

The live current transaction status
Expected values are [created, started,ended, cancelled]

rate string

The rate Id applied for this charging session

target object Targets for this session. See Charging with Session Targets

time: float Max session time in Minutes
cost: float Max session cost in the currency of the rate applied to this connector
energy: float Max session energy in kWh
energy_start_time: date-time string UTC time for session to start delivering energy to a connected EV
energy_stop_time: date-time string UTC time for session to stop delivering energy to a connected EV

cost object The running estimate or final cost for this session

amount: float
currency: string Three digit currency code based on the Rate for this session
cost.cost_breakdown: array with breakdowns of the cost amount

  • type: string Rate type applied. One of [FLAT, ENERGY,TIME]
  • quantity: float Consumption e.g. 22.5kWh or 6.5h
  • unit: string Unit of quantity. One of [Wh, kWh,h]
  • unitPrice: float Price per unit e.g. $0.30 per kWh
  • unitPrice: float Cost before tax
  • tax: integer Tax as a %age
  • totalTax: float Tax amount
  • totalCost: float Total with tax

metrics object As reported directly by the chargestation. Final when session.status = ended

energyConsumed: float As reported by the chargestation meter in Wh
energyPeriod: integer Energy consumption time period in Seconds
chargingStart: datetime Energy consumption start timestamp
chargingStop: datetime Charging session end timestamp

energy_report object Instantaneous session energy information

timestamp: datetime report timestamp in UTC

current: object Instantaneous current flow to the EV

  • current.value: float
  • current.unit: string Expected values are [A] for Amperes

power: object Instantaneous active power imported by the EV.

  • power.value: float
  • power.unit: string Expected values are [W,kW]

energy_meter: object Chargestation's Meter register. Reports total lifetime energy imported from the grid supply by this chargestation.

  • energy_meter.value: float
  • energy_meter.unit: string Expected values are [Wh,kWh]

meta_data object

Any session specific data the developer would like to include

createdAt datetime

Creation time of this Session record

updatedAt datetime

Last update time of this Session record