Skip to main content

Arguments

accountNumber : String! required

ID of the account.

after : String
before : String
calendarType : CalendarType

The calendar type of the reading.

first : Int
last : Int
periodEndAt : Date

End period date (exclusive) of the reading.

periodStartAt : Date

Starting period date (inclusive) of the reading.

prmId : String! required

ID of the PRM.

statusProcessed : ReadingStatus

The processing status of the reading.

Returns

ElectricityReadingConnection

Pagination for energy readings.

Allowed Viewers

Customer Partner User Third party

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 ElectricityReading( $accountNumber: String!, $after: String, $before: String, $calendarType: CalendarType, $first: Int, $last: Int, $periodEndAt: Date, $periodStartAt: Date, $prmId: String!, $statusProcessed: ReadingStatus ) { electricityReading( accountNumber: $accountNumber, after: $after, before: $before, calendarType: $calendarType, first: $first, last: $last, periodEndAt: $periodEndAt, periodStartAt: $periodStartAt, prmId: $prmId, statusProcessed: $statusProcessed ) { edgeCount edges { ...ElectricityReadingEdgeFragment } pageInfo { ...PageInfoFragment } totalCount } }

Variables

{ "accountNumber": "A-91529378", "after": "YXJyYXljb25uZWN0aW9uOjEw=", "before": "YXJyYXljb25uZWN0aW9uOjEw=", "calendarType": "PROVIDER", "first": 10, "last": 10, "periodEndAt": "1991-07-04", "periodStartAt": "2007-01-20", "prmId": "34013025", "statusProcessed": "OK" }

Response

{ "data": { "electricityReading": { "edgeCount": 80, "edges": [ElectricityReadingEdge], "pageInfo": PageInfo, "totalCount": 57 } } }