costOfCharge
Aggregated cost of charge for an EV device.
Deprecation
The 'costOfCharge' field is deprecated.Use `cost` field on `SmartFlexChargingSession` instead.
- Marked as deprecated on 2025-05-13.
- Scheduled for removal on or after 2026-01-16.
You can read more about this deprecation on:
https://announcements.kraken.tech/announcements/public/605/
Arguments
Frequency by day, week, month or year.
The date up to which data should be relative to.
Deprecation
The 'reportDate' field is deprecated.Please use startDate instead.
- Marked as deprecated on 2023-05-10.
- Scheduled for removal on or after 2024-01-01.
The start date of the results required. Overrides report date (end date) if provided.
Returns
[CostOfChargeType]Possible Errors
Allowed Viewers
Required Permissions
Can access customer queriesQuery Complexity
1Examples
The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.
query CostOfCharge(
$accountNumber: String!,
$frequency: DataFrequency!,
$startDate: Date
) {
costOfCharge(
accountNumber: $accountNumber,
frequency: $frequency,
startDate: $startDate
) {
costOfChargeId
isSmartCharge
krakenflexDeviceId
reportDate
totalConsumption
totalCostExclTax
totalCostInclTax
}
}
Variables
{
"accountNumber": "A-B8D7C410",
"frequency": "DAILY",
"startDate": "1990-11-07"
}
Response
{
"data": {
"costOfCharge": [
{
"costOfChargeId": "18518059",
"isSmartCharge": true,
"krakenflexDeviceId": "94655963",
"reportDate": "1983-12-16",
"totalConsumption": 809.33,
"totalCostExclTax": 772.5,
"totalCostInclTax": 563.36
}
]
}
}