get_document
Retrieve full details for an invoice, bill, voucher, or credit note, including line items, quantities, prices, totals, and current status.
Instructions
Get full details for a customer invoice, vendor bill, employee voucher, or credit note, including line items.
Returns all entries with quantities, prices, and totals;
the response's type field names the document kind.
Status vocabulary: open = editable, not yet booked; posted =
on the books, payable; paid = remaining balance zero. The
full definitions live on list_documents; the unpaid list
is get_outstanding_documents.
Args: id: Document ID (e.g., "000001"). This is the human-readable ID, not the internal GUID. document_type: "invoice", "bill", "voucher", or "credit_note" — disambiguates when IDs collide across per-type counters. party_type: Owner side ("customer"/"vendor") — needed only for credit notes, which exist on both sides.
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": {
"id": "<id>"
},
"name": "get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| party_type | No | ||
| document_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |