# Charging sub-session ended A charging sub-session has ended, representing a period of charging in a single mode. Endpoint: POST charging_sub_session.ended Version: 2.0 Security: oauth2 ## Request fields (application/json): - `type` (string) Enum: "charging_sub_session.ended" - `timestamp` (string) The timestamp of the event described by this webhook - `data` (object) The charging sub session being created - `data.url` (string) Example: "https://api.ev.energy/v2/charging_sub_sessions/csub01HSH04KDEWF6Z4DB2J77J74K5" - `data.vehicle` (any) - `data.evse` (any) - `data.location` (object) - `data.location.coordinates` (object) Can be null - `data.location.coordinates.latitude` (number, required) Example: 51.52576576674041 - `data.location.coordinates.longitude` (number, required) Example: -0.08366433371722264 - `data.location.postal_code` (string,null) - `data.location.address_1` (string,null) - `data.location.timezone` (string,null) IANA timezone name for the charging location. Example: "Europe/London" - `data.total_co2_grams` (integer,null) Estimated total CO2 emissions of this session in grams - `data.co2_intensity_grams_per_kilowatt_hour` (integer,null) Estimated CO2 emissions per unit of electricity in grams per kilowatt hour - `data.cost_per_kilowatt_hour` (integer,null) Average cost per kilowatt hour of energy delivered during this charging session - `data.total_points` (integer) Number of smart points earning during this charging session - `data.total_points_missed` (integer,null) Difference between the number of smart points earned in this session and the number that would have been earned by Smart charging - `data.duration_minutes` (integer) How long the vehicle was actively charging for, to the nearest minute - `data.energy_usage` (any) A link to more detailed information about energy usage during the charging sub-session. Can be expanded. ## Response 200 fields