Skip to main content

Session

Represents a charging session. A session captures all data related to a single charging event, from start to finish.

client_referencestring

Field for the caller (EMSP) to include an internal reference. Can be used for reconciling OMNI sessions with the EMSP's own database.

connector_idstring

Internal identifier for the connector used in this session.

connector_uidstring

Unique identifier of the connector used in this session.

country_codestring

ISO-3166 alpha-2 country code of the CPO that owns the location.

currencystring

ISO-4217 code of the currency used for this session.

end_date_timestring

The timestamp when the session ended. Format: RFC3339 in UTC timezone. Null if session is still active.

evse_uidstring

Unique identifier of the EVSE used in this session.

evse_idstring

The EVSE ID (Charge Box ID) from the CSMS.

uidstring

Unique identifier of the session. Format: UUID string.

kwhnumber<float>

Total energy consumed during the session in kWh.

last_updatedstring

Timestamp when this session was last updated. Format: RFC3339 in UTC timezone.

location_uidstring

Unique identifier of the location where the session took place.

meter_idstring

Identifier of the energy meter used during the session (if available).

start_date_timestring

The timestamp when the session was started. Format: RFC3339 in UTC timezone.

statusstring

The status of the session.

ValueDescription
PENDINGA request to begin a charging session with no definitive outcome yet
RESERVATIONA successful reservation of a particular EVSE/connector is in progress
ACTIVEAt least one active charging period in which a vehicle is drawing energy is in progress
STOPPEDEnergy consumption portion has stopped
COMPLETEDThe whole charging session including any post-charging period has been completed
RESERVATION_FAILUREReserving an EVSE/connector has failed
START_FAILUREStarting an EVSE/connector has definitively failed
total_cost Price
excl_vatnumber<double>
incl_vatnumber<double>
auth_methodstring

Method used to authenticate this session. Enum: AUTH_REQUEST, COMMAND, WHITELIST.

cdr_token CdrToken

Token information associated with a charging session. Identifies the user and their authorization method.

uidstring

Unique identifier of the token.

external_idstring

External identifier of the token from the EMSP system.

entity_codestring

Entity code of the EMSP that issued this token.

protocolstring

Protocol used for this token (e.g., VoltNow, VoltPOS, OCPI).

user_typestring

Type of user associated with this token.

contract_idstring

Contract ID associated with this token.

user_idstring

VoltNet tokenized user ID representation.

license_platestring

License plate of the vehicle associated with this token.

charging_periods ChargingPeriod[]

List of charging periods that make up this session. Each period has its own tariff_element applied.

  • Array [
  • uidstring

    Unique identifier of the charging period.

    session_uidstring

    UID of the session this charging period belongs to.

    start_date_timestring

    Timestamp when this period started. Format: RFC3339 in UTC timezone.

    dimensions CdrDimension[]

    List of dimensions that describe the volume charged during this period.

  • Array [
  • charging_period_uidstring
    typestring

    Type of CDR dimension. Based on OCPI 2.2.1 CdrDimensionType.

    ValueDescriptionUnit
    CURRENTAverage charging current (Session only)A
    ENERGYTotal energy charged/dischargedkWh
    ENERGY_EXPORTEnergy fed back to grid (Session only)kWh
    ENERGY_IMPORTEnergy charged (Session only)kWh
    MAX_CURRENTMaximum current over all phasesA
    MIN_CURRENTMinimum current over all phasesA
    MAX_POWERMaximum power reachedkW
    MIN_POWERMinimum power reachedkW
    PARKING_TIMETime not charginghours
    POWERAverage power (Session only)kW
    RESERVATION_TIMETime reserved but not in usehours
    STATE_OF_CHARGEEV state of charge (Session only)%
    TIMETime charginghours
    OVERTIMETime exceeding timebelt reservationhours
    OVERTIME_GRACEGrace period before overtimehours
    OVERTIME_FLATFlat penalty for exceeding timebelt-
    RESERVATION_FLATFlat fee for reservation-
    VOLTAGEVoltage at point in timeV
    volumenumber<double>
    session_stagestring
  • ]
  • tariff_uidstring

    UID of the tariff applied during this period.

  • ]
  • entity_codestring

    Entity code of the EMSP that owns this session.

    meter_value_start_kwhnumber<float>

    Meter reading at the start of the session in kWh.

    meter_value_end_kwhnumber<float>

    Meter reading at the end of the session in kWh.

    volumes Volumes

    for now we only store volumes that were charged by non-free prices. Can be extended.

    total_time_charged_hrnumber<double>
    total_reservation_time_charged_hrnumber<double>
    total_energy_charged_kwhnumber<double>
    total_parking_time_charged_hrnumber<double>
    costs_by_type CostsByType
    energy Price
    excl_vatnumber<double>
    incl_vatnumber<double>
    time Price
    excl_vatnumber<double>
    incl_vatnumber<double>
    flat Price
    excl_vatnumber<double>
    incl_vatnumber<double>
    parking_time Price
    excl_vatnumber<double>
    incl_vatnumber<double>
    reservation_time Price
    excl_vatnumber<double>
    incl_vatnumber<double>
    reservation_flat Price
    excl_vatnumber<double>
    incl_vatnumber<double>
    platform_flat Price
    excl_vatnumber<double>
    incl_vatnumber<double>
    reservation_overtime Price
    excl_vatnumber<double>
    incl_vatnumber<double>
    reservation ReservationSummary
    uidstring
    cpo_reservation_idstring
    emsp_reservation_idstring
    statusstring
    starts_atstring
    expires_atstring
    updated_atstring
    stop_reasonstring

    Reason the session was stopped.

    tariffs Tariff[]

    List of tariffs applied to this session.

  • Array [
  • country_codestring

    ISO-3166 alpha-2 country code where this tariff applies.

    currencystring

    ISO-4217 currency code for this tariff.

    uidstring

    Unique identifier for the tariff.

    start_date_timestring

    Start date/time when this tariff becomes active. Format: RFC3339 in UTC timezone.

    end_date_timestring

    End date/time when this tariff expires. Format: RFC3339 in UTC timezone.

    min_price Price
    excl_vatnumber<double>
    incl_vatnumber<double>
    max_price Price
    excl_vatnumber<double>
    incl_vatnumber<double>
    typestring

    Type of tariff (e.g., AD_HOC_PAYMENT, REGULAR).

    price_per_kwh Price
    excl_vatnumber<double>
    incl_vatnumber<double>
    price_per_min Price
    excl_vatnumber<double>
    incl_vatnumber<double>
    price_flat Price
    excl_vatnumber<double>
    incl_vatnumber<double>
    price_per_min_parked Price
    excl_vatnumber<double>
    incl_vatnumber<double>
    max_price_per_min_parkednumber<double>

    Maximum price per minute for idle time.

    grace_period_secondsstring<int64>

    Grace period in seconds before idle charges begin.

    idle_blackout_period IdleBlackoutPeriod
    day_of_weekstring[]
    start_time_of_daystring
    end_time_of_daystring
    price_modifiers OMNIPriceModifier[]

    List of price modifiers that can adjust the base tariff.

  • Array [
  • uidstring
    valuenumber<double>
    typestring
    vatnumber<double>
    tariff_dimension_typesstring[]
  • ]
  • grace_period_notification_secondsinteger<int32>

    Seconds before grace period ends to send notification.

    elements TariffElement[]

    List of tariff elements with time/power restrictions.

  • Array [
  • uidstring
    price_components PriceComponent[]
  • Array [
  • typestring
    pricenumber<double>
    vatnumber<double>
    step_sizestring<int64>
  • ]
  • restrictions TariffRestrictions
    start_timestring
    end_timestring
    start_datestring
    end_datestring
    min_kwhnumber<double>
    max_kwhnumber<double>
    min_currentnumber<double>
    max_currentnumber<double>
    min_powernumber<double>
    max_powernumber<double>
    min_durationstring<int64>
    max_durationstring<int64>
    day_of_weekstring[]
    reservationstring
    max_average_powernumber<double>
    reservation_min_kwhnumber<double>
    reservation_max_kwhnumber<double>
    advance_booking_days_minstring<int64>
    advance_booking_days_maxstring<int64>
    session_stagestring
  • ]
  • tariff_alt_text DisplayText[]

    Human-readable tariff description with i18n support.

  • Array [
  • languagestring

    ISO 639-1 language code (e.g., "en", "nl", "de").

    textstring

    The localized text content.

  • ]
  • tariff_alt_urlstring

    URL to a web page with more tariff information.

    max_price_thresholdnumber<double>

    Maximum price threshold before stopping the session.

    min_delta_wh_thresholdinteger<int32>

    Minimum energy delta threshold for auto-stop.

    consecutive_delta_below_threshold_to_stopinteger<int32>

    Number of consecutive readings below threshold to trigger stop.

    time_threshold_to_stop_secondsinteger<int32>

    Time threshold in seconds to trigger auto-stop.

    price_platform_flat Price
    excl_vatnumber<double>
    incl_vatnumber<double>
    entity_codestring

    Entity code of the CPO that owns this tariff.

    last_updatedstring

    Timestamp when this tariff was last updated. Format: RFC3339 in UTC timezone.

  • ]
  • connector_physical_referencestring

    Human-readable string identifying the connector gun. Usually a short name such as "Gun A" or "Connector 1".

    min_price_typestring

    Indicates how min_price was handled for this session. Enum: TARIFF_MIN, MIN, IGNORE, CLIFF.

    min_pricenumber<double>

    The minimum price applied to this session, if applicable.

    external_idstring

    External ID for this session (e.g., from CPO system).

    start_methodstring

    Indicates the mechanism the user used to start the session. Enum: UNKNOWN_START_METHOD, OTHER_START_METHOD, APP_START, RFID_START, TRANSIENT_WEB, TRANSIENT_POS, ROAMING.

    Session
    {
    "client_reference": "string",
    "connector_id": "string",
    "connector_uid": "string",
    "country_code": "string",
    "currency": "string",
    "end_date_time": "string",
    "evse_uid": "string",
    "evse_id": "string",
    "uid": "string",
    "kwh": 0,
    "last_updated": "string",
    "location_uid": "string",
    "meter_id": "string",
    "start_date_time": "string",
    "status": "string",
    "total_cost": {
    "excl_vat": 0,
    "incl_vat": 0
    },
    "auth_method": "string",
    "cdr_token": {
    "uid": "string",
    "external_id": "string",
    "entity_code": "string",
    "protocol": "string",
    "user_type": "string",
    "contract_id": "string",
    "user_id": "string",
    "license_plate": "string"
    },
    "charging_periods": [
    {
    "uid": "string",
    "session_uid": "string",
    "start_date_time": "string",
    "dimensions": [
    {
    "charging_period_uid": "string",
    "type": "string",
    "volume": 0,
    "session_stage": "string"
    }
    ],
    "tariff_uid": "string"
    }
    ],
    "entity_code": "string",
    "meter_value_start_kwh": 0,
    "meter_value_end_kwh": 0,
    "volumes": {
    "total_time_charged_hr": 0,
    "total_reservation_time_charged_hr": 0,
    "total_energy_charged_kwh": 0,
    "total_parking_time_charged_hr": 0
    },
    "costs_by_type": {
    "energy": {
    "excl_vat": 0,
    "incl_vat": 0
    },
    "time": {
    "excl_vat": 0,
    "incl_vat": 0
    },
    "flat": {
    "excl_vat": 0,
    "incl_vat": 0
    },
    "parking_time": {
    "excl_vat": 0,
    "incl_vat": 0
    },
    "reservation_time": {
    "excl_vat": 0,
    "incl_vat": 0
    },
    "reservation_flat": {
    "excl_vat": 0,
    "incl_vat": 0
    },
    "platform_flat": {
    "excl_vat": 0,
    "incl_vat": 0
    },
    "reservation_overtime": {
    "excl_vat": 0,
    "incl_vat": 0
    }
    },
    "reservation": {
    "uid": "string",
    "cpo_reservation_id": "string",
    "emsp_reservation_id": "string",
    "status": "string",
    "starts_at": "string",
    "expires_at": "string",
    "updated_at": "string"
    },
    "stop_reason": "string",
    "tariffs": [
    {
    "country_code": "string",
    "currency": "string",
    "uid": "string",
    "start_date_time": "string",
    "end_date_time": "string",
    "min_price": {
    "excl_vat": 0,
    "incl_vat": 0
    },
    "max_price": {
    "excl_vat": 0,
    "incl_vat": 0
    },
    "type": "string",
    "price_per_kwh": {
    "excl_vat": 0,
    "incl_vat": 0
    },
    "price_per_min": {
    "excl_vat": 0,
    "incl_vat": 0
    },
    "price_flat": {
    "excl_vat": 0,
    "incl_vat": 0
    },
    "price_per_min_parked": {
    "excl_vat": 0,
    "incl_vat": 0
    },
    "max_price_per_min_parked": 0,
    "grace_period_seconds": "string",
    "idle_blackout_period": {
    "day_of_week": [
    "string"
    ],
    "start_time_of_day": "string",
    "end_time_of_day": "string"
    },
    "price_modifiers": [
    {
    "uid": "string",
    "value": 0,
    "type": "string",
    "vat": 0,
    "tariff_dimension_types": [
    "string"
    ]
    }
    ],
    "grace_period_notification_seconds": 0,
    "elements": [
    {
    "uid": "string",
    "price_components": [
    {
    "type": "string",
    "price": 0,
    "vat": 0,
    "step_size": "string"
    }
    ],
    "restrictions": {
    "start_time": "string",
    "end_time": "string",
    "start_date": "string",
    "end_date": "string",
    "min_kwh": 0,
    "max_kwh": 0,
    "min_current": 0,
    "max_current": 0,
    "min_power": 0,
    "max_power": 0,
    "min_duration": "string",
    "max_duration": "string",
    "day_of_week": [
    "string"
    ],
    "reservation": "string",
    "max_average_power": 0,
    "reservation_min_kwh": 0,
    "reservation_max_kwh": 0,
    "advance_booking_days_min": "string",
    "advance_booking_days_max": "string"
    },
    "session_stage": "string"
    }
    ],
    "tariff_alt_text": [
    {
    "language": "string",
    "text": "string"
    }
    ],
    "tariff_alt_url": "string",
    "max_price_threshold": 0,
    "min_delta_wh_threshold": 0,
    "consecutive_delta_below_threshold_to_stop": 0,
    "time_threshold_to_stop_seconds": 0,
    "price_platform_flat": {
    "excl_vat": 0,
    "incl_vat": 0
    },
    "entity_code": "string",
    "last_updated": "string"
    }
    ],
    "connector_physical_reference": "string",
    "min_price_type": "string",
    "min_price": 0,
    "external_id": "string",
    "start_method": "string"
    }