Skip to main content

Arguments

accountNumber : String! required
frequency : DataFrequency! required

Frequency by day, week, month or year.

reportDate : Date

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.
startDate : Date

The start date of the results required. Overrides report date (end date) if provided.

Allowed Viewers

Customer Partner User Third party

Required Permissions

Can access customer queries

Query Complexity

1

Examples

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

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 } ] } }