The official API for ev.energy, version 2.
- Charging sub-session ended
ev.energy v2 API (2.0)
Records when a Dispatch Command was sent to an EVSE or Vehicle.
The charging sub-session associated with this dispatch log.
The charging sub-session associated with this dispatch log.
The start of the validity period for the schedule that generated this dispatch command.
When the schedule that generated this dispatch command was created.
Internal identifier for tracking the dispatch command.
{ "logged_at": "2019-08-24T14:15:22Z", "charging_sub_session": "https://api.ev.energy/v2/charging_sub_sessions/csub01HSH04KDEWF6Z4DB2J77J74K5", "schedule_valid_period_start": "2019-08-24T14:15:22Z", "schedule_created_at": "2019-08-24T14:15:22Z", "internal_command_id": "12345678-1234-5678-1234-567812345678", "device_type": "EVSE", "reason_not_sent": "string" }
Return results from the page after this ID.
Return results from the page before this ID.
Specify the number of results to return per page.
Specify a url field to expand into a nested resource.
Filter to only resources related to the given EVSE.
Filter to only resources related to the given Vehicle.
Filters for values greater than or equal to a value.
Filters for values less than or equal to a value.
Filters sessions to only return sessions with this mode.
- Mock serverhttps://developers.ev.energy/_mock/ev.energy-api-v2/charging_sub_sessions
- Live API for both production and sandbox requests.https://api.ev.energy/v2/charging_sub_sessions
- Staging server for internal testing only.https://api-staging.ev.energy/v2/charging_sub_sessions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developers.ev.energy/_mock/ev.energy-api-v2/charging_sub_sessions?page_before=xmpl01HNFZM7Q8FXASZXYZ6XM3TQRR&page_after=xmpl01HNFZM7Q8FXASZXYZ6XM3TQRR&page_size=10&expand=evse&evse_id=evse01HSH04KDEWF6Z4DB2J77J74K5&vehicle_id=vhcl01HRFF3SEVSCRAV9B3CHVDFN0H&user_id=me&energy_delivered_watt_hours__gte=500&energy_delivered_watt_hours__lte=500&is_finished=false&mode=SMART&start__gt=2019-08-24T14%3A15%3A22Z&start__lt=2019-08-24T14%3A15%3A22Z&end__gt=2019-08-24T14%3A15%3A22Z&end__lt=2019-08-24T14%3A15%3A22Z' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'EvEnergy-Version: 2'Returns a list of charging sub sessions, sorted newest first.
Provides links to the previous and next pages of data, if they exist.
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.
The type of scheduling applied during this period.
smart: Actively optimised charging
boost: Charge immediately
unmanaged: No optimisation
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 session
Difference between the number of smart points earned in this session and the number that would have been earned by Smart charging
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 session (e.g., service territory, pricing period).
A link to more detailed information about energy usage during the charging sub-session. Can be expanded.
A link to more detailed information about energy usage during the charging sub-session. Can be expanded.
A link to schedule information for the charging sub-session. Can be expanded.
A link to schedule information for the charging sub-session. Can be expanded.
The electricity import tariff. Expandable with ?expand=tariff. Requires tariff:read scope.
The electricity import tariff. Expandable with ?expand=tariff. Requires tariff:read scope.
Use solar_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": { … }, "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": [ … ], "energy_usage": "https://api.ev.energy/v2/charging_sub_sessions/csub01HSH04KDEWF6Z4DB2J77J74K5/energy_usage", "schedules": "https://api.ev.energy/v2/charging_sub_sessions/csub01HSH04KDEWF6Z4DB2J77J74K5/schedules", "tariff": "https://api.ev.energy/v2/tariffs/tari01HN2NJ9NMRZBXT1H6FT9N7735", "grid_energy_delivered": "string", "solar_energy_delivered": "string" } ]
Request
Retrieve a specific charging sub-session, representing a period of charging in a single mode.
- 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
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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.
The type of scheduling applied during this period.
smart: Actively optimised charging
boost: Charge immediately
unmanaged: No optimisation
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 session
Difference between the number of smart points earned in this session and the number that would have been earned by Smart charging
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 session (e.g., service territory, pricing period).
A link to more detailed information about energy usage during the charging sub-session. Can be expanded.
A link to more detailed information about energy usage during the charging sub-session. Can be expanded.
A link to schedule information for the charging sub-session. Can be expanded.
A link to schedule information for the charging sub-session. Can be expanded.
The electricity import tariff. Expandable with ?expand=tariff. Requires tariff:read scope.
The electricity import tariff. Expandable with ?expand=tariff. Requires tariff:read scope.
{ "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", "tariff": "https://api.ev.energy/v2/tariffs/tari01HN2NJ9NMRZBXT1H6FT9N7735", "grid_energy_delivered": "string", "solar_energy_delivered": "string" }
Request
Retrieve periodic energy usage intervals for a specific charging sub-session.
If you are looking for intervals that cover the whole time energy is being delivered (which are therefore of irregular length) use the merge_consecutive_intervals query parameter.
- Mock serverhttps://developers.ev.energy/_mock/ev.energy-api-v2/charging_sub_sessions/{charging_sub_session_id}/energy_usage
- Live API for both production and sandbox requests.https://api.ev.energy/v2/charging_sub_sessions/{charging_sub_session_id}/energy_usage
- Staging server for internal testing only.https://api-staging.ev.energy/v2/charging_sub_sessions/{charging_sub_session_id}/energy_usage
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developers.ev.energy/_mock/ev.energy-api-v2/charging_sub_sessions/csub01HSH04KDEWF6Z4DB2J77J74K5/energy_usage?expand=charging_sub_session&energy_delivered_watt_hours__gt=0&merge_consecutive_intervals=true' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'EvEnergy-Version: 2'Returns information about a single charging sub-session's energy usage.
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.
The currency that prices for intervals are quoted in. Note that we always use the smallest unit of the currency.
A list of energy usage intervals for this charging sub-session.
{ "url": "https://api.ev.energy/v2/charging_sub_sessions/csub01HSH04KDEWF6Z4DB2J77J74K5/energy_usage", "currency": "GBP", "charging_sub_session": "https://api.ev.energy/v2/charging_sub_sessions/csub01HSH04KDEWF6Z4DB2J77J74K5", "intervals": [ { … } ], "last_updated_at": "2019-08-24T14:15:22Z" }
Request
Retrieve schedules for a specific charging sub-session.
Schedules represent charging instructions for a charging session. Each schedule specifies a current (in milliamps) and a time period during which that current should be applied.
Specify a url field to expand into a nested resource.
Filter schedules with started_at greater than or equal to this datetime.
Filter schedules with started_at less than or equal to this datetime.
Filter schedules generated from a specific schedule plan.
- Mock serverhttps://developers.ev.energy/_mock/ev.energy-api-v2/charging_sub_sessions/{charging_sub_session_id}/schedules
- Live API for both production and sandbox requests.https://api.ev.energy/v2/charging_sub_sessions/{charging_sub_session_id}/schedules
- Staging server for internal testing only.https://api-staging.ev.energy/v2/charging_sub_sessions/{charging_sub_session_id}/schedules
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developers.ev.energy/_mock/ev.energy-api-v2/charging_sub_sessions/csub01HSH04KDEWF6Z4DB2J77J74K5/schedules?expand=charging_sub_session&started_at__gte=2019-08-24T14%3A15%3A22Z&started_at__lte=2019-08-24T14%3A15%3A22Z&schedule_plan_id=scpl01HSH04KDEWF6Z4DB2J77J74K5&only_most_recently_created=true' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'EvEnergy-Version: 2'Returns information about a single charging sub-session's schedules.
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.
The charging sub-session these schedules belong to. Defaults to a url, but can be expanded to the full ChargingSubSession resource via the expand query parameter.
The charging sub-session these schedules belong to. Defaults to a url, but can be expanded to the full ChargingSubSession resource via the expand query parameter.
{ "url": "https://api.ev.energy/v2/charging_sub_sessions/csub01HSH04KDEWF6Z4DB2J77J74K5/schedules", "charging_sub_session": "https://api.ev.energy/v2/charging_sub_sessions/csub01HSH04KDEWF6Z4DB2J77J74K5", "schedules": [ { … } ] }
Request
Retrieve schedule plans for a specific charging sub-session.
Schedule plans represent the charging plan parameters used to generate schedules for a charging session. Each plan contains information about the ready-by time, charging requirements, and constraints that were used to create the charging schedule.
- Mock serverhttps://developers.ev.energy/_mock/ev.energy-api-v2/charging_sub_sessions/{charging_sub_session_id}/schedule_plans
- Live API for both production and sandbox requests.https://api.ev.energy/v2/charging_sub_sessions/{charging_sub_session_id}/schedule_plans
- Staging server for internal testing only.https://api-staging.ev.energy/v2/charging_sub_sessions/{charging_sub_session_id}/schedule_plans
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developers.ev.energy/_mock/ev.energy-api-v2/charging_sub_sessions/csub01HSH04KDEWF6Z4DB2J77J74K5/schedule_plans?expand=charging_sub_session&created_at__gte=2019-08-24T14%3A15%3A22Z&created_at__lte=2019-08-24T14%3A15%3A22Z' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'EvEnergy-Version: 2'Returns schedule plans for a 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.
The charging sub-session these schedule plans belong to. Defaults to a url, but can be expanded to the full ChargingSubSession resource via the expand query parameter.
The charging sub-session these schedule plans belong to. Defaults to a url, but can be expanded to the full ChargingSubSession resource via the expand query parameter.
{ "url": "https://api.ev.energy/v2/charging_sub_sessions/csub01HSH04KDEWF6Z4DB2J77J74K5/schedule_plans", "charging_sub_session": "https://api.ev.energy/v2/charging_sub_sessions/csub01HSH04KDEWF6Z4DB2J77J74K5", "schedule_plans": [ { … } ] }
Request
List all dispatcher logs for a charging session. These logs record Dispatch Command attempts to EVSEs or Vehicles.
- Mock serverhttps://developers.ev.energy/_mock/ev.energy-api-v2/dispatcher_logs
- Live API for both production and sandbox requests.https://api.ev.energy/v2/dispatcher_logs
- Staging server for internal testing only.https://api-staging.ev.energy/v2/dispatcher_logs
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developers.ev.energy/_mock/ev.energy-api-v2/dispatcher_logs?expand=charging_sub_session&charging_sub_session_id=csub01HSH04KDEWF6Z4DB2J77J74K5&logged_at__gte=2019-08-24T14%3A15%3A22Z&logged_at__lte=2019-08-24T14%3A15%3A22Z' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'EvEnergy-Version: 2'Returns a list of dispatcher logs, sorted newest first.
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.
The charging sub-session associated with this dispatch log.
The charging sub-session associated with this dispatch log.
The start of the validity period for the schedule that generated this dispatch command.
When the schedule that generated this dispatch command was created.
Internal identifier for tracking the dispatch command.
[ { "logged_at": "2019-08-24T14:15:22Z", "charging_sub_session": "https://api.ev.energy/v2/charging_sub_sessions/csub01HSH04KDEWF6Z4DB2J77J74K5", "schedule_valid_period_start": "2019-08-24T14:15:22Z", "schedule_created_at": "2019-08-24T14:15:22Z", "internal_command_id": "12345678-1234-5678-1234-567812345678", "device_type": "EVSE", "reason_not_sent": "string" } ]
Returns information about the charging sub-session that has been created.
- Mock serverhttps://developers.ev.energy/_mock/ev.energy-api-v2/charging_sub_session.created
- Live API for both production and sandbox requests.https://api.ev.energy/v2/charging_sub_session.created
- Staging server for internal testing only.https://api-staging.ev.energy/v2/charging_sub_session.created
{ "type": "charging_sub_session.created", "timestamp": "2022-11-03T20:26:10.344522Z", "data": { "id": "csub01HSH04KDEWF6Z4DB2J77J74K5", "url": "https://api.ev.energy/v2/charging_sub_sessions/csub01HSH04KDEWF6Z4DB2J77J74K5", "start": "2019-08-24T14:15:22Z", "end": null, "mode": "smart", "vehicle": "https://api.ev.energy/v2/vehicles/vhcl01HRFF3SEVSCRAV9B3CHVDFN0H", "evse": "https://api.ev.energy/v2/evses/evse01HSH04KDEWF6Z4DB2J77J74K5", "energy_delivered_watt_hours": 0, "cost": 0, "percentage_added": 0, "location": { … }, "currency": "GBP" } }
- Mock serverhttps://developers.ev.energy/_mock/ev.energy-api-v2/charging_sub_session.ended
- Live API for both production and sandbox requests.https://api.ev.energy/v2/charging_sub_session.ended
- Staging server for internal testing only.https://api-staging.ev.energy/v2/charging_sub_session.ended
{ "type": "charging_sub_session.ended", "timestamp": "2022-11-03T20:26:10.344522Z", "data": { "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, "percentage_added": 30, "location": { … }, "currency": "GBP" } }