Open invoices
open_invoicesThe unpaid (or part-paid) invoices for one customer, oldest first, found by customer name. Each invoice's outstanding is what it still owes, net of payments and of the live credit notes raised against it (a refunded note no longer counts). grossOutstanding is the invoice before those notes: a payment may be allocated up to it (a customer who paid the whole invoice), and anything above outstanding then stays on the credit note as the customer's refundable credit. An invoice its credit notes fully cover is not listed. outstandingBalance is the customer's net balance (these invoices less any payment received but not yet matched to one), so it can be lower than the invoices add up to (see balanceNote).
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": "<customer>"
},
"name": "open_invoices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer | Yes |