get_document_payments
Retrieve payments registered against a specific document from any fiscal year, enabling cross-year payment audits for invoices, sales receipts, and more.
Instructions
Get the payments registered against a specific document, read directly from the document's paymentsDetail. 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 (e.g. an invoice dated last year that was paid this year). Returns { documentId, paymentsDetail }. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docType | Yes | Type of document | |
| documentId | Yes | Document ID |