get_document_payments
Retrieve all payments for a specific document across any fiscal year to enable cross-year payment audits, not limited to the active year.
Instructions
Get the payments registered against a specific document via the Holded API v2 GET endpoint. Returns { documentId, paymentsDetail } when the v2 response includes a paymentsDetail field; otherwise returns the whole document (v2 field name may differ from v1). Unlike list_payments — which is filtered to the ACTIVE fiscal year — this surfaces payments from ANY year, so use it for cross-year payment audits. Read-only.
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": {
"docType": "<docType>",
"documentId": "<documentId>"
},
"name": "get_document_payments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docType | Yes | Type of document | |
| documentId | Yes | Document ID |