Accounting Apex API Developer Reference


global inherited sharing class PurchaseCreditNotePostAndMatchService

The service class relating to the Post and Match feature within Payable Credit Notes.



global PurchaseCreditNotePostAndMatchService()


global static Id postAndMatch(Id creditNoteId)

Posts the selected payable credit note and then matches it with the corresponding payable invoice.

Input Parameters

Name Type Description
creditNoteId Id Id of the payable credit note that you want to post and match.

Return Value

This service returns the Id of the payable credit note.

Sample Code

//Note: This sample code is for demonstration purposes only. It is not intended for
//use in a production environment, is not guaranteed against defects or errors, and
//is in no way optimized or streamlined.

Id creditNoteId = ‘a1i28000000DYKZ’ 
© Copyright 2009–2023 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.