Cancel Invoice Late Fees
With cancelInvoiceLateFees API, you can cancel a late fee incorrectly applied to an invoice.
|
API |
Signature |
|---|---|
|
cancelInvoiceLateFees |
|
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<Apttus_Billing.CustomClass.CancelInvoiceLateFeeInput> cancelLateFeeInputs = new List<Apttus_Billing.CustomClass.CancelInvoiceLateFeeInput>();
Apttus_Billing.CustomClass.CancelInvoiceLateFeeInput cancelInput1 = new Apttus_Billing.CustomClass.CancelInvoiceLateFeeInput('a5XDc000000B0iY', 'test description');// relatedLateFeeTransactionId, desc
cancelLateFeeInputs.add(cancelInput1);
List<Apttus_Billing.CustomClass.CancelInvoiceLateFeeResult> cancelInvoiceLateFeeResult =
Apttus_Billing.InvoiceService.cancelInvoiceLateFees(cancelLateFeeInputs);
System.debug('==cancelInvoiceLateFeeResult=='+cancelInvoiceLateFeeResult);
