Conga Product Documentation

Welcome to the new doc site. Some of your old bookmarks will no longer work. Please use the search bar to find your desired topic.

Delete Credit Memos

The deleteCreditMemos API is used to delete multiple credit memos at once by accepting a set of credit memo IDs.

APISignature
deleteCreditMemosstatic List deletecreditmemos(Set creditMemoIds)
When you call the API and input a set of credit memo IDs, the API:
  • Validates each credit memo in the set.
  • Deletes credit memos that are eligible (e.g., in Canceled status).
  • Return a list of results, one for each credit memo, indicating success or failure for each approval attempt.

Request Parameters

FieldTypeRequiredDescription
creditMemoIdsSetYesA set of credit memo IDs you want to delete.

Response

FieldTypeDescription
CustomClass.CreditMemoActionResultListA result parameter is returned for each request parameter.

Code Sample - Request

List<Apttus_Billing.CustomClass.CreditMemoActionResult> deletecreditmemos = Apttus_Billing.CreditMemoService.deletecreditmemos(new Set<Id>{'a5JDc000000lq9J'});
System.debug('-deletecreditmemos-'+deletecreditmemos);

Code Sample - Response

deletecreditmemos-(CreditMemoActionResult:[creditMemoId=a5JDc000000lq9JMAQ, isSuccess=true, message=CreditMemo has been Deleted.])