Get document
icount_get_documentRetrieve complete details of any iCount document by type and number, with options to include line items, payment breakdown, and PDF link.
Instructions
Fetch full details of a single existing document by type and number.
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>",
"docnum": "<docnum>"
},
"name": "icount_get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docnum | Yes | The document number as shown in iCount | |
| doctype | Yes | ||
| getItems | No | Include line items (default true) | |
| getPdfLink | No | Include a direct PDF link (default false) | |
| getPayments | No | Include payment breakdown (default true) |