ReverseDocuments
Reverse accounting documents by ID, creating the corresponding reverse document. Supported document type is journal (c2g__codaJournal__c). Returns, per document, the reversed document ID on success or the error message if it could not be reversed.
| Property | Value |
| Label | Reverse Documents |
| Category | Accounting |
| Since | Summer 2026 |
| Read-only | No |
| Supports Agents | Yes |
| Supports Flows | No |
| Async Action | No |
| Keywords | reverse, reversal, undo, journal, transaction |
Request Parameters
| Field | Type | Label | Description | Required |
documentId | ID | Document to Reverse | ID of the accounting document to reverse. Supported document type is journal (c2g__codaJournal__c). | Yes |
Response Parameters
| Field | Type | Label | Description | Required |
reversingDocumentId | ID | Reversing Document ID | ID of the reversing document created when the document was reversed successfully. Empty if the document was not reversed. | No |
errorMessage | String | Error Message | Populated if the document could not be reversed; contains the error detail. Empty on success. | No |
hasErrors | Boolean | Has Errors | 'True' if the document could not be reversed; 'False' if it was reversed successfully. | No |
|