Skip to main content

Arguments

accountNumber : String! required

ID of the account.

after : String
before : String
energyQualification : ReadingQualification

The reading's energy qualification.

first : Int
last : Int
pceRef : String! required

ID of the PCE.

periodEndAt : Date

End period date (exclusive) of the reading.

periodStartAt : Date

Starting period date (inclusive) of the reading.

readingType : ReadingType

The type of the reading.

statusProcessed : ReadingStatus

The processing status of the reading.

Returns

GasReadingConnection

Pagination for gas 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 GasReading( $accountNumber: String!, $after: String, $before: String, $energyQualification: ReadingQualification, $first: Int, $last: Int, $pceRef: String!, $periodEndAt: Date, $periodStartAt: Date, $readingType: ReadingType, $statusProcessed: ReadingStatus ) { gasReading( accountNumber: $accountNumber, after: $after, before: $before, energyQualification: $energyQualification, first: $first, last: $last, pceRef: $pceRef, periodEndAt: $periodEndAt, periodStartAt: $periodStartAt, readingType: $readingType, statusProcessed: $statusProcessed ) { edgeCount edges { ...GasReadingEdgeFragment } pageInfo { ...PageInfoFragment } totalCount } }

Variables

{ "accountNumber": "A-0E8D5A3A", "after": "YXJyYXljb25uZWN0aW9uOjEw=", "before": "YXJyYXljb25uZWN0aW9uOjEw=", "energyQualification": "M", "first": 10, "last": 10, "pceRef": "thousand-civil-support-high-keep", "periodEndAt": "1976-09-02", "periodStartAt": "2004-01-05", "readingType": "A", "statusProcessed": "OK" }

Response

{ "data": { "gasReading": { "edgeCount": 35, "edges": [GasReadingEdge], "pageInfo": PageInfo, "totalCount": 38 } } }