gasMeterReadings
Fetch gas meter readings for a given account and supply point.
Arguments
The account number.
Start date for the readings.
End date for the readings.
The unique gas supply point identifier.
The sources of the readings.
The types of the readings.
Returns
GasMeterReadingConnectionTypeConnection!This field is a connection type. Connections are used to implement cursor based pagination.
Possible Errors
Allowed Viewers
Required Permissions
Can submit meter readingsQuery Complexity
2Examples
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 GasMeterReadings(
$accountNumber: String!,
$after: String,
$before: String,
$dateFrom: Date,
$dateTo: Date,
$first: Int,
$last: Int,
$pdr: String!,
$readingSources: [GasReadingSource],
$readingTypes: [GasReadingType]
) {
gasMeterReadings(
accountNumber: $accountNumber,
after: $after,
before: $before,
dateFrom: $dateFrom,
dateTo: $dateTo,
first: $first,
last: $last,
pdr: $pdr,
readingSources: $readingSources,
readingTypes: $readingTypes
) {
edgeCount
edges {
...GasMeterReadingConnectionTypeEdgeFragment
}
pageInfo {
...PageInfoFragment
}
totalCount
}
}
Variables
{
"accountNumber": "A-D791CD46",
"after": "YXJyYXljb25uZWN0aW9uOjEw=",
"before": "YXJyYXljb25uZWN0aW9uOjEw=",
"dateFrom": "1998-01-29",
"dateTo": "1977-09-28",
"first": 10,
"last": 10,
"pdr": "rest-well-yourself-technology-agreement",
"readingSources": "AUTOMATICALLY_GENERATED_BY_KRAKEN",
"readingTypes": "ACTUAL"
}
Response
{
"data": {
"gasMeterReadings": {
"edgeCount": 77,
"edges": [GasMeterReadingConnectionTypeEdge],
"pageInfo": PageInfo,
"totalCount": 30
}
}
}