Cancel document
icount_cancel_documentCancel an existing iCount document to void it permanently. Use when a document must be reversed; confirm the document number first because this action is irreversible.
Instructions
Cancel an existing document (iCount has no hard delete — this is the only way to void one). Irreversible: confirm the document number with the user before calling.
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_cancel_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docnum | Yes | The document number as shown in iCount | |
| reason | No | Cancellation reason, stored on the record | |
| doctype | Yes | ||
| refundCc | No | Also reverse the credit-card charge, if any (fails if there wasn't one) |