- Retrieve a charging sub-session
Retrieve a specific charging sub-session, representing a period of a plug-in episode during which a single charging mode was active. Its start/end mark when the mode started and stopped being active — not plug-in/plug-out times, and not when energy was actually flowing. See Understanding charging data.
- Mock serverhttps://developers.ev.energy/_mock/ev.energy-api-v2/charging_sub_sessions/{charging_sub_session_id}
- Live API for both production and sandbox requests.https://api.ev.energy/v2/charging_sub_sessions/{charging_sub_session_id}
- Staging server for internal testing only.https://api-staging.ev.energy/v2/charging_sub_sessions/{charging_sub_session_id}
curl -i -X GET \
'https://developers.ev.energy/_mock/ev.energy-api-v2/charging_sub_sessions/csub01HSH04KDEWF6Z4DB2J77J74K5?expand=evse' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'EvEnergy-Version: 2'Returns information about a single charging sub-session.
Indicates the version of the API that generated this response. If EvEnergy-Version was not specified in the request, this will be your OAuth application's default version.
The maximum number of requests that can be made to this endpoint per hour. Defaults to 1000 but may vary per client.
The number of requests remaining until this client's rate limit is reached.
Unique identifier for the given Charging sub-session.
When this sub-session began — either when the vehicle was plugged in, or when the charging mode changed (e.g. the user activated boost). Not necessarily when energy started flowing; see the energy_usage endpoint for actual delivery intervals.
When this sub-session ended — either when the vehicle was unplugged, or when the charging mode changed again. Null while the sub-session is ongoing. Energy delivery often finishes well before this time (e.g. once the target charge level is reached).
The type of scheduling applied during this period.
SMART: Actively optimised charging
BOOST: Charge immediately
UNMANAGED_HOME: No optimisation, at a home location
UNMANAGED_OTG: No optimisation, at an on-the-go (public) location
MANAGED_OTG: Optimised charging at an on-the-go (public) location
Net energy delivered to the vehicle during this sub-session in Wh.
Estimated CO2 emissions per unit of electricity in grams per kilowatt hour
Classification of the estimated CO2 intensity value. Can be null.
Average cost per kilowatt hour of energy delivered during this charging sub-session
Difference between the number of smart points earned in this sub-session and the number that would have been earned by Smart charging
How long the vehicle was actively charging for, to the nearest minute. This can be much shorter than the gap between start and end, and does not tell you when within the sub-session energy was delivered — use the energy_usage endpoint for that.
Grid energy delivered during this charging sub-session in watt hours (Wh).
Solar energy delivered during this charging sub-session in watt hours (Wh).
Labels categorizing this charging sub-session (e.g., service territory, pricing period).
A link to more detailed information about energy usage during the charging sub-session, including the intervals in which energy was actually delivered to the vehicle. Can be expanded.
A link to schedule information for the charging sub-session. Can be expanded.
A link to the performance assessment for this charging sub-session. Can be expanded. Requires debug:read scope.
A link to flags associated with this charging sub-session. Can be expanded.
A link to debug metadata for this charging sub-session. Can be expanded. Requires debug:read scope.
The electricity import tariff. Expandable with ?expand=tariff. Requires tariff:read scope.
The carbon feed used to calculate carbon intensity for this sub-session. Expandable with ?expand=carbon_feed. Requires carbon:read scope.
Grid feeds applied to this sub-session. Expandable with ?expand=grid_feeds. Requires grid:read scope.
The solar charging mode active for this sub-session. Null when solar charging is not configured.
Use grid_energy_delivered_watt_hours instead
{ "id": "csub01HSH04KDEWF6Z4DB2J77J74K5", "url": "https://api.ev.energy/v2/charging_sub_sessions/csub01HSH04KDEWF6Z4DB2J77J74K5", "start": "2019-08-24T14:15:22Z", "end": "2019-08-24T14:15:22Z", "mode": "SMART", "vehicle": "https://api.ev.energy/v2/vehicles/vhcl01HRFF3SEVSCRAV9B3CHVDFN0H", "evse": "https://api.ev.energy/v2/evses/evse01HSH04KDEWF6Z4DB2J77J74K5", "energy_delivered_watt_hours": 2300, "cost": 634, "location": { "name": "Home", "coordinates": { … }, "postal_code": "string", "address_1": "string", "timezone": "Europe/London" }, "percentage_added": 30, "currency": "GBP", "savings_cost": 0, "savings_co2_grams": 0, "incentive_earned": 99, "total_co2_grams": 0, "co2_intensity_grams_per_kilowatt_hour": 0, "co2_intensity_classification": "very low", "cost_per_kilowatt_hour": 0, "total_points": 0, "total_points_missed": 0, "duration_minutes": 0, "grid_energy_delivered_watt_hours": 0, "solar_energy_delivered_watt_hours": 0, "labels": [ "OUTSIDE" ], "energy_usage": "https://api.ev.energy/v2/charging_sub_sessions/csub01HSH04KDEWF6Z4DB2J77J74K5/energy_usage", "schedules": "https://api.ev.energy/v2/charging_sub_sessions/csub01HSH04KDEWF6Z4DB2J77J74K5/schedules", "assessment": "https://api.ev.energy/v2/charging_sub_sessions/csub01HSH04KDEWF6Z4DB2J77J74K5/assessment", "flags": "https://api.ev.energy/v2/charging_sub_sessions/csub01HSH04KDEWF6Z4DB2J77J74K5/flags", "debug_metadata": "https://api.ev.energy/v2/charging_sub_sessions/csub01HSH04KDEWF6Z4DB2J77J74K5/debug_metadata", "tariff": "https://api.ev.energy/v2/tariffs/tari01HN2NJ9NMRZBXT1H6FT9N7735", "carbon_feed": "https://api.ev.energy/v2/carbon_feeds/cabf01HN2NJ9NMRZBXT1H6FT9N7735", "grid_feeds": [ "https://api.ev.energy/v2/grid_feeds/grfd01HN2NJ9NMRZBXT1H6FT9N7735" ], "solar_mode_type": "OFF", "grid_energy_delivered": "string", "solar_energy_delivered": "string" }