CreditMemoLineApply Class

Manage credit memo line applications by using the CreditMemoLineApply class.

Namespace 

ConnectApi

CreditMemoLineApply Methods 

These methods are for CreditMemoLineApply. All methods are static.

applyCreditMemoLines(CreditMemoLineApplyInput, creditMemoLineId) 

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

API Version 

62.0

Requires Chatter 

No

Signature 

public static ConnectApi.CreditMemoLineAppliedResponse applyCreditMemoLines(ConnectApi.CreditMemoLineApplyInput CreditMemoLineApplyInput, String creditMemoLineId)

Parameters 

CreditMemoLineApplyInput

Type: ConnectApi.CreditMemoLineApplyInput

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

creditMemoLineId

Type: String

ID of the credit memo line record.

Return Value 

Type: ConnectApi.CreditMemoLineAppliedResponse

Usage 

You need the Credit Memo Operations User permission set to use this method.

unapplyCreditMemoLines(CreditMemoLineUnapplyInput, creditMemoLineInvoiceLineId) 

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

API Version 

62.0

Requires Chatter 

No

Signature 

public static ConnectApi.CreditMemoLineUnappliedResponse unapplyCreditMemoLines(ConnectApi.CreditMemoLineUnapplyInput CreditMemoLineUnapplyInput, String creditMemoLineInvoiceLineId)

Parameters 

CreditMemoLineUnapplyInput

Type: ConnectApi.CreditMemoLineUnapplyInput

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

creditMemoLineInvoiceLineId

Type: String

ID of the credit memo line invoice line record.

Return Value 

Type: ConnectApi.CreditMemoLineUnappliedResponse

Usage 

You need the Credit Memo Operations User permission set to use this method.