Skip to main content

paymentSummary

Requires the permissions payments:invoice:list and payments:payment:list.

Returns the headline payment figures for the whole organization, the same numbers as paymentsDashboard. The filter argument is not used.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query PaymentSummary {
paymentSummary {
collectionsCount
overdueAmount
overdueCount
paymentsCount
pendingInvoicesAmount
pendingInvoicesCount
}
}

Response:

{
"data": {
"paymentSummary": {
"collectionsCount": 0,
"overdueAmount": 0,
"overdueCount": 0,
"paymentsCount": 0,
"pendingInvoicesAmount": 0,
"pendingInvoicesCount": 0
}
}
}
paymentSummary(
supplierId: ID
): PaymentSummary!

Arguments​

paymentSummary.supplierId ● ID scalar​

Not used: the summary always covers all payments.

Type​

PaymentSummary object​

Headline payment figures for the payments dashboard, in the organization's base currency.