This reference provides a comprehensive overview of the Enode API endpoints for accessing and controlling its hardware and features. The API follows REST principles, and uses OAuth 2.0.
This page features detailed documentation for each of our endpoints. You can also explore our API through our updated OpenAPI specifications or Postman collection.
The API is versioned, and all documentation on this page, including the links to the OpenAPI specifications and Postman collection is specific to the selected version.
Environments
We provide multiple environments, each with unique data access policies, and live/mocked vendors.
Environments are isolated from each other. Client credentials are tied to a specific environment and cannot be reused across environments.
Enode API access begins with a client and its corresponding client ID and client secret. Clients organize data, are separate, and relate to a specific environmentAPI.
After requesting the token URL, you'll receive an access token in the response. Cache this token on your server until it expires and needs refreshingAPI. Keep the access token secret.
For resources specific to a user, include an additional header with the user ID along with the general authorization header. For versions newer than 2023-08-01, this is no longer required.
Enode resources like Schedules and Locations have response times of <200ms. However, vehicle interactions involve various delays and timing characteristics.
Understanding the range of possible timings without diving into vendor-specific causes, helps you account for these factors in your UX design.
Get Vehicles and List Vehicles are fast operations since all data is prefetched by Enode and shared from a cache.
On API versions prior to 2023-08-01 it is possible to request a synchronous update where data is fetched directly from the vendor. Such requests have longer response times, sometimes 30 seconds or more, depending on the characteristics of the underlying vendor APIs. From 2023-08-01 onwards this has been replaced by the refresh hintAPI mechanism.
The Login step usually takes <2 seconds, but can rarely take up to 30 seconds due to background negotiations, retries, and initial vehicle data fetching.
The final Accept step experiences similar delays as List Vehicles.
Charging commands show significant timing variability among vendors. Initiating the action is instant, but the updated charging state typically takes 20 seconds to appear. Occasionally the action may take 5 minutes or more to confirm.
Webhooks typically involve polling and dynamically adjust the polling rate based on various factors to balance prompt updates with avoiding unnecessary load on the vehicle.
The maximum baseline delay between a real-world change (e.g., a vehicle being plugged in) and the resulting webhook notification is typically 7 minutes. However, actual delays can vary depending on factors such as vehicle activity and network conditions. Below is a general guide for typical webhook delays:
Vehicle context
Typical delay
default
~7 minutes
charging
~2-5 minutes
smartcharge PLAN:*
~2 minutes
sleeping
~20 minutes
If you'd like to request a faster refresh, you can call the various /refresh-hint endpoints found on devices to queue an accelerated data refresh.
Scopes
Access to the data and controls of a device are scoped by an inclusive scopes structure. The scopes are requested in the Link user endpoint via the scopes parameter. Scopes are presented to your user in Link UI, and explained through example data and examples of features enabled by each scope. Your user is not able to de-select or configure scopes themselves in Link UI.
Data scopes include all data and states we fetch from the device, excluding location data, and is always required (e.g vehicle:read:data)
Location scopes include the location coordinates of the device (e.g. vehicle:read:location)
Control scopes are always explicit to the type of control that is requested (e.g. vehicle:control:charging)
The applied scopes are surfaced through the scopes object in device responses (see example below).
Copy linkThe relationship between scopes and capabilities
If a device is missing a scope, e.g. a charger that does not have the charger:control:charging scope set, will always have the charging related capabilities will always be set as isCapable: false with no intervention specified.
Some part of the request was malformed. See associated detail message for more information.
Enode Controlled Entity
This entity is currently managed by Smart Charging or Schedules and cannot accept manual commands. Either disable the feature controlling the target, or force charging to start through our External Start APIAPI.
Entity Not Found
The requested entity was not found on the user's account.
Forbidden
The current context is not allowed to access the requested resource.
Not Found
The requested entity was not found on the user's account. If requesting vendor entities, ensure you're using the top level id field and not information.id. information.id is the ID the vendor uses to refer to the entity and changes over time.
Server Error
A critical error has occurred. An employee has been alerted and will work to remedy the situation
Service Unavailable
The service is currently unavailable. Most likely the service was slow to respond, might be overloaded or down for maintenance. Other endpoints might still be available.
You may want to retry the request using a randomized backoff delay.
Check the Enode Status page if this problem persists.
Timeout
A request timed out. If this problem was returned by a route that tried to communicate with vendor APIs, remove the fields query parameter to fetch the Enode hosted cache. This cache is updated every 10 minutes.
Unauthorized
The request contained an invalid or expired token.
Validation Error
The response we prepared failed to pass outgoing validation. An employee has been alerted and will work to remedy the situation.
Versioning
Enode's REST API is versioned. A dated version is released when breaking changes occur, while new features and bug fixes (additive changes) are available in all supported API versions.
You can view all available versions and updates in the changelog.
API clients are pinned to the latest API version upon creation, affecting all API requests and webhook events. API responses include an Enode-Version header, and webhook events have a version field.
You can override the API version on a specific request by sending an Enode-Version in the request header.
Breaking changes will be released as a new version. When a new version is released, the previous version is supported for six months before deactivation. Enode staff will notify you in advance. Each API version comes with a migration guide explaining changes and upgrade suggestions.
We consider the following breaking changes
Changing a request’s authorization or authentication requirements
Adding a new required input parameter
Changing input validation
Removing an HTTP route or method
Removing or renaming a response parameter
All other additive changes are considered backwards compatible.
This is the latest API version, recommended for all customers.
It is the default version for new clients and the default version documented in our API Reference.
There is only ever one Current API version.
Deprecated
This version has been superseded by a newer version. Multiple Deprecated versions can exist.
Customers can still choose this version for new clients or webhook subscriptions at developers.enode.com.
Documentation will be marked as Deprecated.
New functionality may not be released to Deprecated versions and supported exclusively on the Current API version.
We recommend you to upgrade to the Current version as soon as possible.
Legacy
This version has been deprecated for 6 months. Multiple Legacy versions can exist.
Customers cannot select this version for new clients or webhook subscriptions.
Documentation will not be accessible from the API Reference. You can review Legacy documentation by logging in to your organization dashboard and selecting a client with a Legacy version.
Functionality may be degraded, and no new features will be added.
4 weeks after entering Legacy status, we will begin preparations for automatically upgrading clients on this version. Enode will conduct API brownouts for clients still using Legacy versions at this time. During these brownouts, we will randomly reject API requests using the Legacy API version.
8 weeks after entering Legacy status, clients and webhooks using this version will be automatically upgraded to the Current API version.
This product or endpoint is now feature complete and the implementation will not change. There may be bugs or stability issues but they are actively being worked on. We are still open to receiving feedback before delivering a stable release.
This product or endpoint is being released in an early stage to get feedback. There are likely bugs or other issues that may not necessarily be prioritized. The whole implementation may be completely changed or removed.
Individual features, endpoints, or fields tagged as Deprecated will be removed in a future version of the API. If you are using deprecated functionality you should update your application to use alternative features or methods we provide.
Pagination
Enode endpoints returning collections of a specific type of resource, such as GET /vehicles, will return a paginated response. Each response will consist of a subset of the resources, called a page. To retrieve the entire collection, subsequent pages need to be fetched.
Each response includes two properties: data and pagination. The data property contains the records of the current page and the pagination property contains cursors that can be used to fetch additional pages. These cursors, before and after, are unique identifiers for specific records in the dataset that help you keep track of your position and navigate through the pages.
All of these pagination query parameters are optional. If pageSize is not provided, the default page size of 50 is used. If neither before nor after are provided, the returned page will contain the first set of resources in the collection.
The before and after parameters are mutually exclusive. If both are supplied, the API will return an error.
Responses from most paginated endpoints are sorted in descending order according to when the resource was created. Hence, for a request like GET /vehicles, the most recently linked vehicles appear on the first page.
Copy linkHow to navigate through paginated API responses
The pagination property in a paginated response typically looks like this:
In this example, the data array includes the resource records for the current page. The pagination object provides the cursors for navigating to adjacent pages.
Flex shape
The Flex Shape API is the highest abstraction in the Enode flex architecture, and exposes an aggregated controllable energy load. It outputs projections of future load, and allows control/alteration of that load.
Get flex shape
GET /flex/shape
Read a window of time from the forecast load curves.
Each chunk has a standard control parameter, unset by default, that guides the shape of the load.
The size of the window available into the future is variable based on data availability and prediction confidence, typically 24-36 hours.
Chunk size is a static deployment-level configuration, but is typically ~15 minutes.
Although the shape structure (and many primitives under the hood) are quantized to the chunk size, execution is continuous/realtime.
A chunk will be re-computed/updated many times as its distance from the present moment decreases. Once it becomes the present, it will not change any further.
You can monitor execution by monitoring the shape’s expected load for the present moment’s chunk
Request
Query parameters
startAtstring<date-time>Optional
Start of shape window (inclusive). Optional, defaults to start of most recent chunk. RFC3339 timestamp
endAtstring<date-time>Optional
End of shape window (exclusive). Optional, defaults to maximum available date. RFC3339 timestamp
Response 200
Shape retrieved
Attributes
startAtstring<date-time>
The timestamp of the start of the first chunk in the shape.
endAtstring<date-time>
The timestamp of the start of the last chunk in the shape.
chunkSizeMinutesnumber
The size of the chunks in minutes.
computedAtstring<date-time>
The timestamp at which the shape was computed.
assetCountinteger
The number of assets included in the shape.
chunksarray of object
The chunks of the flex shape, with the expected, minimum and maximum consumption for each chunk.
Show child attributes
chunks[].timestampstring<date-time>
The start timestamp of the chunk.
chunks[].forecastobject
A collection of forecast attributes for a specific chunk, with a confidence score.
Show child attributes
chunks[].forecast.expectedKwnumber
The expected mean load in kW.
chunks[].forecast.minimumKwnumber
The achievable minimum mean load in kW.
chunks[].forecast.maximumKwnumber
The achievable maximum mean load in kW.
chunks[].forecast.confidencenumber
Probability that the expectedKw forecast is within a small (configurable) margin of the realized load (0.0-1.0)
chunks[].relativeSetpointnumber
The setpoint of the chunk in kW, relative to the forecast expectedKw.
revisionIdstring
The revision ID of the flex shape.
Update flex shape
PATCH /flex/shape
Performs a partial update of the Flex Shape by setting control parameters such as relativeSetpoint
Explicitly submitting a null control parameter unsets that parameter for the chunk. Chunks not included in the update remain unchanged.
Control parameter can naturally only affect the future, and can thus only be submitted for future chunks.
It is expected that control inputs are, allowing uncontrolled chunks to freely follow the globally optimized behavior of the system.
Request
Attributes
chunksarray of objectRequired
The chunks to update in the flex shape. Any chunks may be updated, there is no requirement to update chunks sequentially.
Show child attributes
chunks[].timestampstring<date-time>Required
The timestamp of the chunk at which the setpoint will be applied.
chunks[].relativeSetpointnumber or nullRequired
The relative adjustment to the expectedKw setpoint of the chunk in kW.
Response 204
Shape updated
Preview flex shape update
POST /flex/shape/preview
Before committing a shape update, preview it to:
Check the validity of the update
Evaluate the cost of the update
Evaluate the resultant shape
The cost components are a collection of costing metadata such as solar "wastage" or user interruption risk, for use in calculating a marginal cost delta. The exact metadata available is deployment-specific.
Request
Attributes
chunksarray of objectRequired
The chunks to update in the flex shape. Any chunks may be updated, there is no requirement to update chunks sequentially.
Show child attributes
chunks[].timestampstring<date-time>Required
The timestamp of the chunk at which the setpoint will be applied.
chunks[].relativeSetpointnumber or nullRequired
The relative adjustment to the expectedKw setpoint of the chunk in kW.
Response 200
Preview updated
Attributes
isValidboolean
Whether the resulting shape is valid.
errorsarray of string
The errors that occurred while previewing the update.
resultantShapeobject
The preview of the resulting flex shape after applying the update.
Show child attributes
resultantShape.startAtstring<date-time>
The timestamp of the start of the first chunk in the shape.
resultantShape.endAtstring<date-time>
The timestamp of the start of the last chunk in the shape.
resultantShape.chunkSizeMinutesnumber
The size of the chunks in minutes.
resultantShape.computedAtstring<date-time>
The timestamp at which the shape was computed.
resultantShape.assetCountinteger
The number of assets included in the shape.
resultantShape.chunksarray of object
The chunks of the flex shape, with the expected, minimum and maximum consumption for each chunk.
A collection of forecast attributes for a specific chunk, with a confidence score.
Show child attributes
resultantShape.chunks[].forecast.expectedKwnumber
The expected mean load in kW.
resultantShape.chunks[].forecast.minimumKwnumber
The achievable minimum mean load in kW.
resultantShape.chunks[].forecast.maximumKwnumber
The achievable maximum mean load in kW.
resultantShape.chunks[].forecast.confidencenumber
Probability that the expectedKw forecast is within a small (configurable) margin of the realized load (0.0-1.0)
resultantShape.chunks[].relativeSetpointnumber
The setpoint of the chunk in kW, relative to the forecast expectedKw.
costComponentsarray of object
The cost components that would be incurred by committing the shape update.
Show child attributes
costComponents[].denominationstring
The denomination of the cost components.
costComponents[].amountnumber
The amount of the cost component.
Get flex status
GET /flex/status
Configurable built-in alarms and status properties give leading indicators that the system is headed into unusual or unpredictable behavior. Particularly in algorithmic trading cases, the values are useful to trip circuit-breakers or activate alternate operating modes.
Response 200
Status retrieved
Attributes
computedAtstring<date-time>
The timestamp at which the Flex Status was computed.
isForecastStableboolean
Indicates whether the forecast revision variance of near-term horizons is within configured bounds (ie. accurate and stable).
isSolventboolean
The execution engine has sufficient inventory of asset flexibility to fulfill its plans
isControlNominalboolean
Success rate of individual asset control actions within a rolling window of 1 chunk size is within typical expectations.
statusMessagestring
A message describing the status of the flex shape.
Flexible ev charging
Flexible EV Charging allows you to setup constraints for local optimization for your EVs, while providing flexibility to the Flex Shape API.
Create policy
POST /flex/vehicle-policies
Create a new Flexible EV Charging Policy, associated with one location and vehicle pair. Only one policy can be created per unique pair of location and vehicle. A Flex Policy cannot be enabled on a vehicle controlled by other Enode features, like Schedules or Smart Charging.
The ID of the location at which this policy is applied.
vehicleIdstringRequired
The ID of the vehicle for which this policy applies.
batteryReservenumberRequired
Upon arrival at the location, the vehicle will immediately charge to this battery level without regard to prices or flexibility demands. This charging is reflected in the Policy Status State as SCHEDULE:BATTERY_RESERVE. Must be between 0% and 20%. Note: For Mercedes-Benz vehicles, batteryReserve must be set to 50, as these vehicles always charge to 50% SOC upon plug-in.
scheduleobjectRequired
The weekly schedule of Policy settings. The upcoming schedule settings should be read from the Policy Status object, under settings.regularSchedule.
Show child attributes
schedule.mondayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
schedule.monday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.monday.minimumChargeTargetnumberRequired
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.tuesdayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
schedule.tuesday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.wednesdayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
schedule.wednesday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.thursdayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
schedule.thursday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.fridayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
schedule.friday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.friday.minimumChargeTargetnumberRequired
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.saturdayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
schedule.saturday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.sundayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
schedule.sunday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.sunday.minimumChargeTargetnumberRequired
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
Response 200
Policy created
Attributes
idstring
The ID of the flex policy.
vehicleIdstring
The ID of the vehicle for which this policy applies.
locationIdstring
The ID of the location at which this policy is applied. When the vehicle is not at this location, the Policy Status State will be UNAVAILABLE.
batteryReservenumber
Upon arrival at the location, the vehicle will immediately charge to this battery level without regard to prices or flexibility demands. This charging is reflected in the Policy Status State as SCHEDULE:BATTERY_RESERVE. Must be between 0% and 20%. Note: For Mercedes-Benz vehicles, batteryReserve must be set to 50, as these vehicles always charge to 50% SOC upon plug-in.
scheduleobject
The weekly schedule of Policy settings. The upcoming schedule settings should be read from the Policy Status object, under settings.regularSchedule.
Show child attributes
schedule.mondayobject
The schedule settings for a particular day of the week.
Show child attributes
schedule.monday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.monday.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.tuesdayobject
The schedule settings for a particular day of the week.
Show child attributes
schedule.tuesday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.tuesday.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.wednesdayobject
The schedule settings for a particular day of the week.
Show child attributes
schedule.wednesday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.wednesday.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.thursdayobject
The schedule settings for a particular day of the week.
Show child attributes
schedule.thursday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.thursday.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.fridayobject
The schedule settings for a particular day of the week.
Show child attributes
schedule.friday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.friday.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.saturdayobject
The schedule settings for a particular day of the week.
Show child attributes
schedule.saturday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.saturday.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.sundayobject
The schedule settings for a particular day of the week.
Show child attributes
schedule.sunday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.sunday.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
Response 400
Invalid policy configuration
List policies
GET /flex/vehicle-policies
Lists all Flexible EV Charging Policies, optionally filtered by location and/or vehicle. See our Pagination documentationAPI for information on how to paginate the results.
Request
Query parameters
afterstringOptional
beforestringOptional
pageSizeintegerOptional
locationIdstringOptional
userIdstringOptional
Response 200
Policies retrieved
Attributes
dataarray of object
Show child attributes
data[].idstring
The ID of the flex policy.
data[].vehicleIdstring
The ID of the vehicle for which this policy applies.
data[].locationIdstring
The ID of the location at which this policy is applied. When the vehicle is not at this location, the Policy Status State will be UNAVAILABLE.
data[].batteryReservenumber
Upon arrival at the location, the vehicle will immediately charge to this battery level without regard to prices or flexibility demands. This charging is reflected in the Policy Status State as SCHEDULE:BATTERY_RESERVE. Must be between 0% and 20%. Note: For Mercedes-Benz vehicles, batteryReserve must be set to 50, as these vehicles always charge to 50% SOC upon plug-in.
data[].scheduleobject
The weekly schedule of Policy settings. The upcoming schedule settings should be read from the Policy Status object, under settings.regularSchedule.
Show child attributes
data[].schedule.mondayobject
The schedule settings for a particular day of the week.
Show child attributes
data[].schedule.monday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
data[].schedule.monday.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
data[].schedule.tuesdayobject
The schedule settings for a particular day of the week.
Show child attributes
data[].schedule.tuesday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
data[].schedule.tuesday.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
data[].schedule.wednesdayobject
The schedule settings for a particular day of the week.
Show child attributes
data[].schedule.wednesday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
data[].schedule.thursdayobject
The schedule settings for a particular day of the week.
Show child attributes
data[].schedule.thursday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
data[].schedule.fridayobject
The schedule settings for a particular day of the week.
Show child attributes
data[].schedule.friday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
data[].schedule.friday.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
data[].schedule.saturdayobject
The schedule settings for a particular day of the week.
Show child attributes
data[].schedule.saturday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
data[].schedule.sundayobject
The schedule settings for a particular day of the week.
Show child attributes
data[].schedule.sunday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
data[].schedule.sunday.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
paginationobject
Cursors to the pages before and after current page. See the PaginationAPI section for reference.
Show child attributes
pagination.afterstring or null
pagination.beforestring or null
Get policy
GET /flex/vehicle-policies/{policyId}
Get a Flexible EV Charging Policy
Request
Path parameters
policyIdstring<uuid>Required
The ID of the flex policy.
Response 200
Policy retrieved
Attributes
idstring
The ID of the flex policy.
vehicleIdstring
The ID of the vehicle for which this policy applies.
locationIdstring
The ID of the location at which this policy is applied. When the vehicle is not at this location, the Policy Status State will be UNAVAILABLE.
batteryReservenumber
Upon arrival at the location, the vehicle will immediately charge to this battery level without regard to prices or flexibility demands. This charging is reflected in the Policy Status State as SCHEDULE:BATTERY_RESERVE. Must be between 0% and 20%. Note: For Mercedes-Benz vehicles, batteryReserve must be set to 50, as these vehicles always charge to 50% SOC upon plug-in.
scheduleobject
The weekly schedule of Policy settings. The upcoming schedule settings should be read from the Policy Status object, under settings.regularSchedule.
Show child attributes
schedule.mondayobject
The schedule settings for a particular day of the week.
Show child attributes
schedule.monday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.monday.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.tuesdayobject
The schedule settings for a particular day of the week.
Show child attributes
schedule.tuesday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.tuesday.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.wednesdayobject
The schedule settings for a particular day of the week.
Show child attributes
schedule.wednesday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.wednesday.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.thursdayobject
The schedule settings for a particular day of the week.
Show child attributes
schedule.thursday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.thursday.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.fridayobject
The schedule settings for a particular day of the week.
Show child attributes
schedule.friday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.friday.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.saturdayobject
The schedule settings for a particular day of the week.
Show child attributes
schedule.saturday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.saturday.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.sundayobject
The schedule settings for a particular day of the week.
Show child attributes
schedule.sunday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.sunday.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
Response 404
Policy not found
Update policy
PATCH /flex/vehicle-policies/{policyId}
Performs a partial update of a Flexible EV Charging Policy. The update will first emit a Flex Policy UpdatedAPI event, then a Flex Policy StatusAPI event as the Policy Status gets re-calculated.
Request
Path parameters
policyIdstring<uuid>Required
The ID of the flex policy.
Attributes
idstringOptional
The ID of the flex policy.
vehicleIdstringOptional
The ID of the vehicle for which this policy applies.
locationIdstringOptional
The ID of the location at which this policy is applied. When the vehicle is not at this location, the Policy Status State will be UNAVAILABLE.
batteryReservenumberOptional
Upon arrival at the location, the vehicle will immediately charge to this battery level without regard to prices or flexibility demands. This charging is reflected in the Policy Status State as SCHEDULE:BATTERY_RESERVE. Must be between 0% and 20%. Note: For Mercedes-Benz vehicles, batteryReserve must be set to 50, as these vehicles always charge to 50% SOC upon plug-in.
scheduleobjectOptional
The weekly schedule of Policy settings. The upcoming schedule settings should be read from the Policy Status object, under settings.regularSchedule.
Show child attributes
schedule.mondayobjectOptional
The schedule settings for a particular day of the week.
Show child attributes
schedule.monday.deadlinestringOptional
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.monday.minimumChargeTargetnumberOptional
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.tuesdayobjectOptional
The schedule settings for a particular day of the week.
Show child attributes
schedule.tuesday.deadlinestringOptional
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.wednesdayobjectOptional
The schedule settings for a particular day of the week.
Show child attributes
schedule.wednesday.deadlinestringOptional
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.thursdayobjectOptional
The schedule settings for a particular day of the week.
Show child attributes
schedule.thursday.deadlinestringOptional
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.fridayobjectOptional
The schedule settings for a particular day of the week.
Show child attributes
schedule.friday.deadlinestringOptional
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.friday.minimumChargeTargetnumberOptional
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.saturdayobjectOptional
The schedule settings for a particular day of the week.
Show child attributes
schedule.saturday.deadlinestringOptional
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.sundayobjectOptional
The schedule settings for a particular day of the week.
Show child attributes
schedule.sunday.deadlinestringOptional
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.sunday.minimumChargeTargetnumberOptional
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
Response 200
Policy updated
Attributes
idstring
The ID of the flex policy.
vehicleIdstring
The ID of the vehicle for which this policy applies.
locationIdstring
The ID of the location at which this policy is applied. When the vehicle is not at this location, the Policy Status State will be UNAVAILABLE.
batteryReservenumber
Upon arrival at the location, the vehicle will immediately charge to this battery level without regard to prices or flexibility demands. This charging is reflected in the Policy Status State as SCHEDULE:BATTERY_RESERVE. Must be between 0% and 20%. Note: For Mercedes-Benz vehicles, batteryReserve must be set to 50, as these vehicles always charge to 50% SOC upon plug-in.
scheduleobject
The weekly schedule of Policy settings. The upcoming schedule settings should be read from the Policy Status object, under settings.regularSchedule.
Show child attributes
schedule.mondayobject
The schedule settings for a particular day of the week.
Show child attributes
schedule.monday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.monday.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.tuesdayobject
The schedule settings for a particular day of the week.
Show child attributes
schedule.tuesday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.tuesday.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.wednesdayobject
The schedule settings for a particular day of the week.
Show child attributes
schedule.wednesday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.wednesday.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.thursdayobject
The schedule settings for a particular day of the week.
Show child attributes
schedule.thursday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.thursday.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.fridayobject
The schedule settings for a particular day of the week.
Show child attributes
schedule.friday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.friday.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.saturdayobject
The schedule settings for a particular day of the week.
Show child attributes
schedule.saturday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.saturday.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
schedule.sundayobject
The schedule settings for a particular day of the week.
Show child attributes
schedule.sunday.deadlinestring
The time of day the user wants their vehicle to be charged by on a specific day of the week.
schedule.sunday.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
Response 404
Policy not found
Delete policy
DELETE /flex/vehicle-policies/{policyId}
Deletes a Flexible EV Charging Policy. The deletion will first emit a Flex Policy DeletedAPI event, then a Flex Policy StatusAPI event as the Policy Status gets re-calculated.
Request
Path parameters
policyIdstring<uuid>Required
The ID of the flex policy.
Response 204
Policy deleted
Attributes
Response 404
Policy not found
Get policy status
GET /flex/vehicle-policies/{policyId}/status
Read the latest status of a Policy. The Policy Status object is a realtime representation of a Policy and the associated vehicle's state. Flex Policy StatusAPI events are emitted when the status changes, which can happen at any time.
Request
Path parameters
policyIdstring<uuid>Required
The ID of the flex policy.
Response 200
Status retrieved
Attributes
updatedAtstring<date-time>
The timestamp of the last update to the flex policy.
policyIdstring
The ID of the policy.
locationIdstring
The ID of the location.
vehicleIdstring
The ID of the vehicle.
statestring
The state of the flex policy.
UNAVAILABLE: The vehicle is unavailable for Flexible EV Charging for some reason, for example, because it is not plugged in, or not the Policy's location.
IMMEDIATE:OVERRIDE: The vehicle is charging to some target battery level because of a temporary override.
SCHEDULE:BATTERY_RESERVE: The vehicle is charging to a battery reserve level, and will stop after reaching that level.
SCHEDULE:REGULAR: The vehicle is following the regular schedule and actively participating in Flexible EV Charging.
SCHEDULE:OVERRIDE: The vehicle is following a schedule override, and is still actively participating in Flexible EV Charging.
SCHEDULE:INFLEXIBLE: The vehicle doesn't have enough time to charge to the target battery level, so there isn't any opportunity to flex the charging.
Upon arrival at the location, the vehicle will immediately charge to this battery level without regard to prices or flexibility demands. This charging is reflected in the Policy Status State as SCHEDULE:BATTERY_RESERVE. Must be between 0% and 20%. Note: For Mercedes-Benz vehicles, batteryReserve must be set to 50, as these vehicles always charge to 50% SOC upon plug-in.
settingsobject
Show child attributes
settings.regularScheduleobject
Today's schedule settings, resolved from the weekly schedule.
Show child attributes
settings.regularSchedule.deadlinestring or null
The time of day the user wants their vehicle to be charged by on a specific day of the week.
settings.regularSchedule.readyBystring<date-time>
The upcoming deadline represented as a RFC3339 UTC timestamp.
settings.regularSchedule.minimumChargeTargetnumber or null
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
settings.override
An override applied to a Flex Policy, shown as a part of the Flex Status entity. The override is either a next-day schedule override or an immediate start override.
Show child attributes
settings.override.typestring
Possible enum values:
UPCOMING_SCHEDULE
settings.override.readyBystring<date-time>
The timestamp at which the user wants their vehicle to be charged by. Overrides the upcoming deadline set in the Flex Policy. Must be in the future.
settings.override.minimumChargeTargetnumber
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
sessionobject
An object containing information about the vehicle's current plug session.
Show child attributes
session.blocksarray of object
Show child attributes
session.blocks[].statusStatestring
The state of the Policy Status during this charging block.
Overrides are temporary, and automatically expire when the vehicle reaches the target battery level.
An immediate start override forces a car to immediately start charging to the specified target battery level.
An upcoming schedule override allows the user to set a custom ready-by time and/or target for the upcoming session. Either one or both of the fields (readyBy and minimumChargeTarget) must be set.
The target batteryLevel to immediately charge up to. Must be less than or equal to the vehicle's chargeLimit. Charging sessions resulting from this override are reflected in the Policy Status State as IMMEDIATE:OVERRIDE.
Deletes a Policy Override. The deletion will emit a Flex Policy StatusAPI event as the Policy Status gets re-calculated.
Request
Path parameters
policyIdstring<uuid>Required
The ID of the flex policy.
Response 204
Override deleted
Response 404
Override not found
Get charging report
GET /flex/vehicle-policies/charging-report
Generates a report of kWh charged per Policy Status State, intended to be used for end-user invoice creation. Includes all charging sessions for policies specified by the filters.
Request
Query parameters
startDatestring<date-time>Required
Start day of the report in local time, inclusive. RFC3339 timestamp. Hour, minute, and second components are ignored.
endDatestring<date-time>Required
End day of the report in local time, exclusive. RFC3339 timestamp. Hour, minute, and second components are ignored.
resolutionstringOptional
The resolution of the report. Default is 'DAY'.
Default value: DAY
Possible enum values:
DAYMONTH
locationIdstring<uuid>Required
The locationId of the policies to be included in the report.
vehicleIdstringRequired
The vehicleId to generate the report for.
Response 200
Charging report retrieved
Attributes (list of object)
datestring<date-time>
Day or month (depending on the report resolution) in local time. RFC3339 timestamp.
statesobject
An object describing the amount of energy consumed in each state for this day.
Show child attributes
states.UNAVAILABLEnumber
states.IMMEDIATE:OVERRIDEnumber
states.SCHEDULE:BATTERY_RESERVEnumber
states.SCHEDULE:REGULARnumber
states.SCHEDULE:OVERRIDEnumber
states.SCHEDULE:INFLEXIBLEnumber
Response 400
Invalid report parameters
Get policy charging report
GET /flex/vehicle-policies/{policyId}/charging-report
Generates a report of kWh charged per Policy Status State, intended to be used for end-user invoice creation. Includes all charging sessions for the specified policy.
Request
Path parameters
policyIdstring<uuid>Required
The ID of the flex policy.
Query parameters
startDatestring<date-time>Required
Start day of the report in local time, inclusive. RFC3339 timestamp. Hour, minute, and second components are ignored.
endDatestring<date-time>Required
End day of the report in local time, exclusive. RFC3339 timestamp. Hour, minute, and second components are ignored.
resolutionstringOptional
The resolution of the report. Default is 'DAY'.
Default value: DAY
Possible enum values:
DAYMONTH
Response 200
Charging report retrieved
Attributes (list of object)
datestring<date-time>
Day or month (depending on the report resolution) in local time. RFC3339 timestamp.
statesobject
An object describing the amount of energy consumed in each state for this day.
Show child attributes
states.UNAVAILABLEnumber
states.IMMEDIATE:OVERRIDEnumber
states.SCHEDULE:BATTERY_RESERVEnumber
states.SCHEDULE:REGULARnumber
states.SCHEDULE:OVERRIDEnumber
states.SCHEDULE:INFLEXIBLEnumber
Response 400
Invalid report parameters
Response 404
Policy not found
Webhook events
flex:vehicle-policy:created
Occurs whenever a Flex vehicle policy is created.
Request
Attributes
createdAtstring<date-time>Required
ISO8601 UTC timestamp
versionstringRequired
API version of the payload
userobjectRequired
Show child attributes
user.idstringRequired
User ID
eventstringRequired
Possible enum values:
flex:vehicle-policy:created
policyobjectRequired
Flex Policy
Show child attributes
policy.idstringRequired
The ID of the flex policy.
policy.vehicleIdstringRequired
The ID of the vehicle for which this policy applies.
policy.locationIdstringRequired
The ID of the location at which this policy is applied. When the vehicle is not at this location, the Policy Status State will be UNAVAILABLE.
policy.batteryReservenumberRequired
Upon arrival at the location, the vehicle will immediately charge to this battery level without regard to prices or flexibility demands. This charging is reflected in the Policy Status State as SCHEDULE:BATTERY_RESERVE. Must be between 0% and 20%. Note: For Mercedes-Benz vehicles, batteryReserve must be set to 50, as these vehicles always charge to 50% SOC upon plug-in.
policy.scheduleobjectRequired
The weekly schedule of Policy settings. The upcoming schedule settings should be read from the Policy Status object, under settings.regularSchedule.
Show child attributes
policy.schedule.mondayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
policy.schedule.monday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
policy.schedule.tuesdayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
policy.schedule.tuesday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
policy.schedule.wednesdayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
policy.schedule.wednesday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
policy.schedule.thursdayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
policy.schedule.thursday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
policy.schedule.fridayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
policy.schedule.friday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
policy.schedule.saturdayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
policy.schedule.saturday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
policy.schedule.sundayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
policy.schedule.sunday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
Response 200
The subscriber should return 200 OK to acknowledge the webhook has been received
flex:vehicle-policy:updated
Occurs whenever a Flex vehicle policy is updated.
Request
Attributes
createdAtstring<date-time>Required
ISO8601 UTC timestamp
versionstringRequired
API version of the payload
userobjectRequired
Show child attributes
user.idstringRequired
User ID
eventstringRequired
Possible enum values:
flex:vehicle-policy:updated
policyobjectRequired
Flex Policy
Show child attributes
policy.idstringRequired
The ID of the flex policy.
policy.vehicleIdstringRequired
The ID of the vehicle for which this policy applies.
policy.locationIdstringRequired
The ID of the location at which this policy is applied. When the vehicle is not at this location, the Policy Status State will be UNAVAILABLE.
policy.batteryReservenumberRequired
Upon arrival at the location, the vehicle will immediately charge to this battery level without regard to prices or flexibility demands. This charging is reflected in the Policy Status State as SCHEDULE:BATTERY_RESERVE. Must be between 0% and 20%. Note: For Mercedes-Benz vehicles, batteryReserve must be set to 50, as these vehicles always charge to 50% SOC upon plug-in.
policy.scheduleobjectRequired
The weekly schedule of Policy settings. The upcoming schedule settings should be read from the Policy Status object, under settings.regularSchedule.
Show child attributes
policy.schedule.mondayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
policy.schedule.monday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
policy.schedule.tuesdayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
policy.schedule.tuesday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
policy.schedule.wednesdayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
policy.schedule.wednesday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
policy.schedule.thursdayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
policy.schedule.thursday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
policy.schedule.fridayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
policy.schedule.friday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
policy.schedule.saturdayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
policy.schedule.saturday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
policy.schedule.sundayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
policy.schedule.sunday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
updatedFieldsarray of stringRequired
Response 200
The subscriber should return 200 OK to acknowledge the webhook has been received
flex:vehicle-policy:deleted
Occurs whenever a Flex vehicle policy is deleted.
Request
Attributes
createdAtstring<date-time>Required
ISO8601 UTC timestamp
versionstringRequired
API version of the payload
userobjectRequired
Show child attributes
user.idstringRequired
User ID
eventstringRequired
Possible enum values:
flex:vehicle-policy:deleted
policyobjectRequired
Flex Policy
Show child attributes
policy.idstringRequired
The ID of the flex policy.
policy.vehicleIdstringRequired
The ID of the vehicle for which this policy applies.
policy.locationIdstringRequired
The ID of the location at which this policy is applied. When the vehicle is not at this location, the Policy Status State will be UNAVAILABLE.
policy.batteryReservenumberRequired
Upon arrival at the location, the vehicle will immediately charge to this battery level without regard to prices or flexibility demands. This charging is reflected in the Policy Status State as SCHEDULE:BATTERY_RESERVE. Must be between 0% and 20%. Note: For Mercedes-Benz vehicles, batteryReserve must be set to 50, as these vehicles always charge to 50% SOC upon plug-in.
policy.scheduleobjectRequired
The weekly schedule of Policy settings. The upcoming schedule settings should be read from the Policy Status object, under settings.regularSchedule.
Show child attributes
policy.schedule.mondayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
policy.schedule.monday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
policy.schedule.tuesdayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
policy.schedule.tuesday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
policy.schedule.wednesdayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
policy.schedule.wednesday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
policy.schedule.thursdayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
policy.schedule.thursday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
policy.schedule.fridayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
policy.schedule.friday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
policy.schedule.saturdayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
policy.schedule.saturday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
policy.schedule.sundayobjectRequired
The schedule settings for a particular day of the week.
Show child attributes
policy.schedule.sunday.deadlinestringRequired
The time of day the user wants their vehicle to be charged by on a specific day of the week.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
Response 200
The subscriber should return 200 OK to acknowledge the webhook has been received
flex:vehicle-policy:status
Occurs whenever a Flex vehicle policy's status is updated.
Request
Attributes
createdAtstring<date-time>Required
ISO8601 UTC timestamp
versionstringRequired
API version of the payload
userobjectRequired
Show child attributes
user.idstringRequired
User ID
eventstringRequired
Possible enum values:
flex:vehicle-policy:status
policyStatusobjectRequired
A view of the current flex policy settings, including any active overrides.
Show child attributes
policyStatus.updatedAtstring<date-time>Required
The timestamp of the last update to the flex policy.
policyStatus.policyIdstringRequired
The ID of the policy.
policyStatus.locationIdstringRequired
The ID of the location.
policyStatus.vehicleIdstringRequired
The ID of the vehicle.
policyStatus.statestringRequired
The state of the flex policy.
UNAVAILABLE: The vehicle is unavailable for Flexible EV Charging for some reason, for example, because it is not plugged in, or not the Policy's location.
IMMEDIATE:OVERRIDE: The vehicle is charging to some target battery level because of a temporary override.
SCHEDULE:BATTERY_RESERVE: The vehicle is charging to a battery reserve level, and will stop after reaching that level.
SCHEDULE:REGULAR: The vehicle is following the regular schedule and actively participating in Flexible EV Charging.
SCHEDULE:OVERRIDE: The vehicle is following a schedule override, and is still actively participating in Flexible EV Charging.
SCHEDULE:INFLEXIBLE: The vehicle doesn't have enough time to charge to the target battery level, so there isn't any opportunity to flex the charging.
Upon arrival at the location, the vehicle will immediately charge to this battery level without regard to prices or flexibility demands. This charging is reflected in the Policy Status State as SCHEDULE:BATTERY_RESERVE. Must be between 0% and 20%. Note: For Mercedes-Benz vehicles, batteryReserve must be set to 50, as these vehicles always charge to 50% SOC upon plug-in.
The upcoming deadline represented as a RFC3339 UTC timestamp.
policyStatus.settings.regularSchedule.minimumChargeTargetnumber or nullRequired
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
policyStatus.settings.overrideRequired
An override applied to a Flex Policy, shown as a part of the Flex Status entity. The override is either a next-day schedule override or an immediate start override.
The minimum acceptable battery level the user needs to reach by their deadline on a specific day of the week. The vehicle may, under some circumstances, charge to a higher battery level than the minimumChargeTarget. If the minimumChargeTarget is higher than the vehicle's chargeLimit, the vehicle will charge to the chargeLimit instead. Must be greater than or equal to the batteryReserve. For Mercedes-Benz vehicles, the minimumChargeTarget minimum is 50%, see batteryReserve for more details.
policyStatus.sessionobjectRequired
An object containing information about the vehicle's current plug session.
Show child attributes
policyStatus.session.blocksarray of objectRequired
curl https://enode-api.{YOUR_CLIENT_ENVIRONMENT}.enode.io/me \-X GET \-H"Authorization: Bearer {YOUR_ACCESS_TOKEN}"\-H"Enode-User-Id: {USER_ID}"\
{"id":"2211e263-0362-4235-83f4-887bdf3ee414","userId":"17d9f847-8a1c-4158-adaa-4911a7acd5f9","vendor":"ZAPTEC","lastSeen":"2023-03-21T21:08:27.596Z","isReachable":true,"locationId":"2211e263-d6d4-d6d4-d6d4-dbdd77ec82b6","scopes":["charger:read:data"],// Scopes applied to the device"chargeState":{ ... },"information":{ ... },"capabilities":{"information":{"isCapable":true,// Capable via the charger:read:data scope"interventionIds":[]},"chargeState":{"isCapable":true,// Capable via the charger:read:data scope"interventionIds":[]},"startCharging":{"isCapable":false,// Missing charger:control:charging scope"interventionIds":[]},"stopCharging":{"isCapable":false,// Missing charger:control:charging scope"interventionIds":[]},"setMaxCurrent":{"isCapable":false,// Missing charger:control:charging scope"interventionIds":[]}}}
HTTP/1.1400Bad RequestContent-Type:application/problem+json{"type":"https://developers.enode.com/problems/bad-request","title":"Payload validation failed","detail":"\"authorizationRequest.scope\" is required",}