Get customer payment statistics
get_contact_statsRetrieves invoice payment statistics for a contact, including invoice counts, total invoiced amounts, paid and unpaid invoices, and late payments.
Instructions
How a customer pays: number of invoices, total invoiced, how many are paid, unpaid and were paid after the due date.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contactId": "<contactId>"
},
"name": "get_contact_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contactId | Yes | Contact ID (see list_contacts). |