Accounting Apex API Developer Reference

c2g.DiscardDocuments

global with sharing class DiscardDocuments

@category Accounting @since Summer 2026 @supportsAgents @keywords discard, remove, delete, invoice, journal, document Discards accounting documents by ID using the supplied discard reason.

Methods

discardDocuments

global static List<c2g.DiscardDocuments.Response> discardDocuments(List<c2g.DiscardDocuments.Request> requests)

c2g.DiscardDocuments.Request

global with sharing class Request

Properties

Name Type Description
documentId ID
discardReason String

c2g.DiscardDocuments.Response

global with sharing class Response

Properties

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