Skip to main content

Arguments

accountNumber : String! required

The account number.

after : String
before : String
documentId : ID

Optional document id used to get a specific billing document. This parameter take precedence over the dates parameters.

first : Int
fromDate : Date

Optional date representing the beginning of the search results. This date value is inclusive.

last : Int
propertyId : ID

Filter bills related to this property.

supplyContractNumber : String

Filter bills related to this supply contract.

supplyPointId : ID

The ID of the supply point.

toDate : Date

Optional date representing the end of the search results. This date value is exclusive.

Returns

FraBillsConnection

Pagination for bills.

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 Bills( $accountNumber: String!, $after: String, $before: String, $documentId: ID, $first: Int, $fromDate: Date, $last: Int, $propertyId: ID, $supplyContractNumber: String, $supplyPointId: ID, $toDate: Date ) { bills( accountNumber: $accountNumber, after: $after, before: $before, documentId: $documentId, first: $first, fromDate: $fromDate, last: $last, propertyId: $propertyId, supplyContractNumber: $supplyContractNumber, supplyPointId: $supplyPointId, toDate: $toDate ) { edgeCount edges { ...FraBillsEdgeFragment } pageInfo { ...PageInfoFragment } totalCount } }

Variables

{ "accountNumber": "A-E5AAD8E5", "after": "YXJyYXljb25uZWN0aW9uOjEw=", "before": "YXJyYXljb25uZWN0aW9uOjEw=", "documentId": "23925561", "first": 10, "fromDate": "2012-02-27", "last": 10, "propertyId": "19271060", "supplyContractNumber": "pressure-name-name-such-rich", "supplyPointId": "87956716", "toDate": "1971-09-21" }

Response

{ "data": { "bills": { "edgeCount": 40, "edges": [FraBillsEdge], "pageInfo": PageInfo, "totalCount": 58 } } }