Accounting Apex API Developer Reference

c2g.CancelDocuments

global with sharing class CancelDocuments

@category Accounting @since Summer 2026 @supportsAgents @keywords cancel, cancellation, void, journal, cash, document Cancels 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).

Methods

cancelDocuments

global static List<c2g.CancelDocuments.Response> cancelDocuments(List<c2g.CancelDocuments.Request> requests)

c2g.CancelDocuments.Request

global with sharing class Request

Properties

Name Type Description
documentId ID

c2g.CancelDocuments.Response

global with sharing class Response

Properties

Name Type Description
cancelingDocumentId ID
errorMessage String
hasErrors Boolean
© Copyright 2009–2026 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.