paymentsAndRepayments
Fetch the payments and repayments for an account.
Arguments
ID of the account.
Optional date representing the beginning of the search results. This date value is inclusive.
Filter for payments that were taken for a particular reason.
Filter on the payments status.
Filter payments and repayments related to this property.
Only return repayments whose status matches one of these statuses.
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 PaymentsAndRepayments(
$accountNumber: String!,
$after: String,
$before: String,
$first: Int,
$fromDate: Date,
$last: Int,
$paymentReason: PaymentReasonOptions,
$paymentStatus: AccountPaymentStatusOptions,
$propertyId: ID,
$repaymentStatuses: [AccountRepaymentStatusOptions],
$supplyContractNumber: String,
$supplyPointId: ID,
$toDate: Date
) {
paymentsAndRepayments(
accountNumber: $accountNumber,
after: $after,
before: $before,
first: $first,
fromDate: $fromDate,
last: $last,
paymentReason: $paymentReason,
paymentStatus: $paymentStatus,
propertyId: $propertyId,
repaymentStatuses: $repaymentStatuses,
supplyContractNumber: $supplyContractNumber,
supplyPointId: $supplyPointId,
toDate: $toDate
) {
edgeCount
edges {
...FraAccountPaymentConnectionTypeEdgeFragment
}
pageInfo {
...PageInfoFragment
}
totalCount
}
}
Variables
{
"accountNumber": "A-3AC53379",
"after": "YXJyYXljb25uZWN0aW9uOjEw=",
"before": "YXJyYXljb25uZWN0aW9uOjEw=",
"first": 10,
"fromDate": "1976-06-11",
"last": 10,
"paymentReason": "BALANCE_THRESHOLD_CROSSED",
"paymentStatus": "SCHEDULED",
"propertyId": "19699736",
"repaymentStatuses": "REQUESTED",
"supplyContractNumber": "significant-job-everybody-fight-will",
"supplyPointId": "54968050",
"toDate": "2012-09-17"
}
Response
{
"data": {
"paymentsAndRepayments": {
"edgeCount": 48,
"edges": [FraAccountPaymentConnectionTypeEdge],
"pageInfo": PageInfo,
"totalCount": 53
}
}
}