CancelDocuments
Cancel accounting documents by ID, creating the corresponding cancelled document. Only documents with status "Complete" can be cancelled. Supported document types are cash entry (c2g__codaCashEntry__c) and journal (c2g__codaJournal__c). Returns, per document, the cancelled document ID on success or the error message if it could not be cancelled.
| Property | Value |
| Label | Cancel Documents |
| Category | Accounting |
| Since | Summer 2026 |
| Read-only | No |
| Supports Agents | Yes |
| Supports Flows | No |
| Async Action | No |
| Keywords | cancel, cancellation, void, journal, cash, document |
Request Parameters
| Field | Type | Label | Description | Required |
documentId | ID | Document to Cancel | ID of the accounting document to cancel. Supported document types are cash entry (c2g__codaCashEntry__c) and journal (c2g__codaJournal__c). | Yes |
Response Parameters
| Field | Type | Label | Description | Required |
cancelingDocumentId | ID | Cancelling Document ID | ID of the cancelling document created when the document was cancelled successfully. Empty if the document was not cancelled. | No |
errorMessage | String | Error Message | Populated if the document could not be cancelled; contains the error detail. Empty on success. | No |
hasErrors | Boolean | Has Errors | 'True' if the document could not be cancelled; 'False' if it was cancelled successfully. | No |
|