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.
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) |