Void document
void_documentVoid a document (invoice, quote, credit note, bill or any other kind) by id, or un-void it with void false. A void document keeps its number but leaves the books and the contact's balance. Without confirm true it changes nothing and answers reason confirm-required with what it would do; ask the user, then call again with confirm true. A missing or another business's id is not-found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Contract or legacy invoice id to void or un-void. | |
| void | No | true (the default) voids the document; false un-voids it. | |
| confirm | No | Send true only after the user has agreed to the change the refusal described. |