get_customer_charges
Retrieves a customer's charges for a date range and summarizes paid, expired, open, average ticket, and payment rate, combining customer lookup and charge listing in one call.
Instructions
Find a customer, then all their charges in a period, with totals (paid, expired, open, average ticket, payment rate). Composes get_customer + list_charges, so you do not have to.
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": {
"customer_id": "<customer_id>"
},
"name": "get_customer_charges"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | YYYY-MM-DD or ISO 8601 date-time. | |
| start | No | YYYY-MM-DD or ISO 8601 date-time. | |
| account | No | Configured account name; omit for the default account. | |
| customer_id | Yes | Customer correlationID or CPF/CNPJ. | |
| max_charges | No | How many charges to scan at most. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||