get_customer_invoices
Retrieve invoices for a customer with filters by status, date, and subscription. Supports pagination and optional details.
Instructions
List invoices for a customer. GET /customers/{customerId}/invoices. Supports pagination (pageNo, itemPerPage), include (e.g. detail, transactions), status (authorized|posted|canceled|partialPaid|paid|voided|refund|partialRefund), dateFrom, dateTo, and subscriptionId.
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": {
"customerId": "<customerId>"
},
"name": "get_customer_invoices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customerId | Yes | Customer ID (required) | |
| pageNo | No | Page number (default: 1) | |
| itemPerPage | No | Items per page (default: 25) | |
| include | No | Comma-separated: detail, transactions, billruns, externalInvoices | |
| status | No | Filter by invoice status | |
| dateFrom | No | Filter invoices from date (YYYY-MM-DD) | |
| dateTo | No | Filter invoices to date (YYYY-MM-DD) | |
| subscriptionId | No | Filter by subscription ID |