Apply Credit Memo Line (POST)

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

Special Access Rules 

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

Resource 

1/commerce/invoicing/credit-memo-lines/{creditMemoLineId}/actions/apply

Resource Example 

1https://{yourInstance}.salesforce.com/services/data/v68.0/commerce/invoicing/credit-memo-lines/{9yxSG0000000LUHYA2}/actions/apply

Available Version 

62.0

HTTP Methods 

POST

Path Parameter for POST 

NameTypeDescriptionRequired or OptionalAvailable Version
creditMemo​LineIdStringID of the credit memo line record.Required62.0

Request Body for POST 

JSON Example

1{
2 "applyCreditDetails": [
3 {
4 "invoiceLineId": "5TVSG0000002ZJR4A2",
5 "appliedAmount": 5,
6 "description": "Apply to invoice line 1",
7 "effectiveDate": "2024-07-01"
8 },
9 {
10 "invoiceLineId": "5TVSG0000002ZJS4A2",
11 "appliedAmount": 10,
12 "description": "Apply to invoice line 2",
13 "effectiveDate": "2024-07-01"
14 }
15 ]
16}

Properties

NameTypeDescriptionRequired or OptionalAvailable Version
applyCredit​DetailsCredit Memo Line Application Input[]List of one or more applications to apply the credit memo line for. Each application represents an invoice line that’s credited by using the balance of the specified credit memo line.Required62.0

Response Body for POST 

Credit Memo Line Applied