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.

Cancelling Late Fees

With cancelInvoiceLateFees API, you can cancel a late fee incorrectly applied to an invoice.

API

Signature

cancelInvoiceLateFees

static List cancelInvoiceLateFees(List inputs)

cancelInvoiceLateFees API accepts Related A/R Transaction ID and Description as input parameters. This API cancels the late fee and deducts the late fee amount from the Total Due Amount of the Invoice. A Destinated Related A/R Transaction record is created for the canceled late fee. cancelInvoiceLateFees API returns cancelInvoiceLateFeeResult object as a response parameter.

Request: cancelLateFeeInputs

Field

Type

Required?

Description

relatedLateFeeTransactionId

ID

Yes

ID of the Related A/R Transaction record

description

String

Yes

Reason to cancel the late fee.

Response: cancelInvoiceLateFeeResult

Field

Type

Description

isSuccess

Boolean

Value is set as true if the Late Fee is canceled successfully.

Value is set as false if the API encounters an error.

errorMessage

String

If the API execution false, errorMessage string contains a detailed error message.

invoiceId

ID

Value is set as the ID of the invoice for which the late fee was canceled successfully.

cancellationTransactionId

ID

Value is set as the ID of the Related A/R Transaction created record the cancellation of late fee

List<CustomClass.CancelInvoiceLateFeeInput> cancelLateFeeInputs = new List<CustomClass.CancelInvoiceLateFeeInput>();

CustomClass.CancelInvoiceLateFeeInput cancelInput1 = new CustomClass.CancelInvoiceLateFeeInput('a5p2v000000dpZ3', 'test description');

cancelLateFeeInputs.add(cancelInput1);

List<CustomClass.CancelInvoiceLateFeeResult> cancelInvoiceLateFeeResult = BillingService.cancelInvoiceLateFees(cancelLateFeeInputs);