Apply Credit Action
Apply a credit memo or credit memo line to an invoice or invoice line, respectively.
This action credits the amount of the credit memo or credit memo line to the corresponding invoice or invoice line, reducing both their balances.
This action is available in API version 62.0 and later.
The Apply Credit action is available in Enterprise, Developer, and Unlimited Editions where Billing is enabled. To use this action, you need the Credit Memo Operations User permission set.
URI: /services/data/v68.0/actions/standard/applyCredit
Formats: JSON, XML
HTTP Methods: POST
Authentication: Authorization: Bearer TOKEN
Where TOKEN is a placeholder for your OAuth access token.
| Input | Type | Description |
|---|---|---|
appliedCreditAmount | double | Required. Credit amount applied to an invoice or invoice line. |
creditSourceRecordId | string | Required. ID of the credit memo or credit memo line that’s applied to an invoice or invoice line. |
creditTargetRecordId | string | Required. ID of the invoice or invoice line record that the credit is applied to. |
description | string | Additional details about the credit memo or credit memo line to be applied to an invoice or invoice line. |
effectiveDate | string | Date to use for applying the credit memo to an invoice or invoice line. |
| Output | Type | Description |
|---|---|---|
recordId | string | ID of the credit memo invoice application or credit memo line invoice line record of type Applied that the action created. |
POST
This example shows a sample request for the Apply Credit action.
This example shows a sample response for the Apply Credit action.