bills
Fetch the bills for an account and requested parameters.
Arguments
The account number.
Optional document id used to get a specific billing document. This parameter take precedence over the dates parameters.
Optional date representing the beginning of the search results. This date value is inclusive.
Filter bills related to this property.
Filter bills related to this supply contract.
The ID of the supply point.
Optional date representing the end of the search results. This date value is exclusive.
Possible Errors
Allowed Viewers
Query Complexity
1Examples
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 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
}
}
}