CreditMemoApply Class

Manage credit memo applications by using the CreditMemoApply class.

ConnectApi

These methods are for CreditMemoApply. All methods are static.

Adjust or correct already issued invoices by applying an existing credit memo to an invoice.

62.0

No

public static ConnectApi.ApplyCreditResults applyCreditMemos(ConnectApi.CreditMemoApplyInputRequest CreditMemoApplyInput, String creditMemoId)

CreditMemoApplyInput

Type: ConnectApi.CreditMemoApplyInputRequest

Input representation of the request to apply a credit memo to an invoice.

creditMemoId

Type: String

ID of the credit memo record.

Type: ConnectApi.ApplyCreditResults

Specify the credit memo ID and the amounts to be applied, with the total of all applied amounts not exceeding the credit memo’s balance.

The credit amount for each invoice can’t surpass the original charge or adjustment amount, and the overall credit amount must not exceed the invoice’s outstanding balance. The exceptions include any taxes calculated by an external service.

For example, your organization sold 10 tablets at US$500 each, totaling $5000, to a vendor who later reported that 6 tablets were defective. Using this method, your accounts receivable team creates a $3000 credit memo and applies this credit to the original invoice.

Unapply a credit memo from an invoice and return the invoice and the credit memo to their pre-application states.

62.0

No

public static ConnectApi.UnapplyCreditResult unapplyCreditMemos(ConnectApi.CreditMemoUnapplyInputRequest CreditMemoUnapplyInput, String creditMemoInvApplicationId)

CreditMemoUnapplyInput

Type: ConnectApi.CreditMemoUnapplyInputRequest

Input representation of the request to unapply a credit memo from an invoice.

creditMemoInvApplicationId

Type: String

ID of the credit memo invoice application.

Type: ConnectApi.UnapplyCreditResult

Use this method if an error occurred when a credit is issued. For example, if an incorrect credit memo is applied to an invoice, or if a credit memo is created for an incorrect amount, use this method to unapply the credit memo.