---
schema_version: "1"
id: 53b4005bed6f8d11660d486a2c2ff6b30a9874603a4075eb96db187690447513
title: Manage Credit Memos by Using APIs or Flow Actions
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/billing_credit_memos_apis_and_actions.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.billing_credit_memos_apis_and_actions.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: c1a6019018d3726c721adfb0c98b4ce2c4e47f31392ad05d01460c8ab9363753
description: Use APIs or Flow actions to create credit memos, apply credit memos to invoices, unapply already applied credits from invoices, and convert negative invoice lines into posted credit memos.
products:
  - Revenue Cloud
release: "264"
---
# Manage Credit Memos by Using APIs or Flow Actions

Use APIs or Flow actions to create credit memos, apply credit memos to invoices, unapply already applied credits from invoices, and convert negative invoice lines into posted credit memos.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions with <a href="https://help.salesforce.com/s/articleView?id=ind.revenue_licenses_areas_and_features.htm&amp;release=264.0.0&amp;type=5">the Revenue Cloud Advanced license or the Revenue Cloud Billing license</a></td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col>
        <col>
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d107821e71">Goal</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d107821e74">API </th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Goal" class="slds-cell-wrap" style="vertical-align:top;" headers="d107821e71 ">Create a standalone credit memo without applying it to an invoice</td>

          <td data-label="API" class="slds-cell-wrap" style="vertical-align:top;" headers="d107821e74 ">
            <p style="margin-bottom:0;"><a href="https://developer.salesforce.com/docs/atlas.en-us.revenue_lifecycle_management_dev_guide.meta/revenue_lifecycle_management_dev_guide/connect_resources_create_a_standalone_credit_memo.htm" target="_blank">Create a Standalone Credit Memo</a></p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Goal" class="slds-cell-wrap" style="vertical-align:top;" headers="d107821e71 ">Create a credit memo and apply it to an invoice</td>

          <td data-label="API" class="slds-cell-wrap" style="vertical-align:top;" headers="d107821e74 "><a href="https://developer.salesforce.com/docs/atlas.en-us.revenue_lifecycle_management_dev_guide.meta/revenue_lifecycle_management_dev_guide/connect_resources_create_and_apply_a_credit_memo.htm" target="_blank">Create and Apply Credit Memo API</a></td>

        </tr>
        <tr class="">
          <td data-label="Goal" class="slds-cell-wrap" style="vertical-align:top;" headers="d107821e71 ">Apply a credit memo to an invoice</td>

          <td data-label="API" class="slds-cell-wrap" style="vertical-align:top;" headers="d107821e74 ">
            <p><a href="https://developer.salesforce.com/docs/atlas.en-us.revenue_lifecycle_management_dev_guide.meta/revenue_lifecycle_management_dev_guide/connect_resources_credit_memo_apply.htm" target="_blank">Apply Credit Memo API</a></p>
            <p style="margin-bottom:0;">To automate the
              process of applying credits, build a custom flow and use the <a href="https://developer.salesforce.com/docs/atlas.en-us.revenue_lifecycle_management_dev_guide.meta/revenue_lifecycle_management_dev_guide/actions_obj_run_apply_credit.htm" target="_blank">Apply Credit action</a>. When the <a href="https://help.salesforce.com/s/articleView?id=ind.billing_setup_credit_memo_features_enable.htm&amp;release=264.0.0&amp;type=5" title="Set up Billing to automatically create credit memos from negative invoice lines and apply them to settle outstanding invoice balances, and to configure whether credits apply to invoices or invoice lines.">credit application level is Invoice</a>, this action applies the balances of
              credit memos to settle the balances of posted invoices.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Goal" class="slds-cell-wrap" style="vertical-align:top;" headers="d107821e71 ">Apply a credit memo line to an invoice line</td>

          <td data-label="API" class="slds-cell-wrap" style="vertical-align:top;" headers="d107821e74 ">
            <p><a href="https://developer.salesforce.com/docs/atlas.en-us.revenue_lifecycle_management_dev_guide.meta/revenue_lifecycle_management_dev_guide/connect_resources_credit_memo_line_level_apply.htm" target="_blank">Apply Credit Memo Line API</a></p>
            <p style="margin-bottom:0;">To automate the
              process of applying credits, build a custom flow and use the <a href="https://developer.salesforce.com/docs/atlas.en-us.revenue_lifecycle_management_dev_guide.meta/revenue_lifecycle_management_dev_guide/actions_obj_run_apply_credit.htm" target="_blank">Apply Credit action</a>. When the <a href="https://help.salesforce.com/s/articleView?id=ind.billing_setup_credit_memo_features_enable.htm&amp;release=264.0.0&amp;type=5" title="Set up Billing to automatically create credit memos from negative invoice lines and apply them to settle outstanding invoice balances, and to configure whether credits apply to invoices or invoice lines.">credit application level is Invoice Line</a>, this action applies the balances
              of credit memo lines to settle the balances of posted invoice lines.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Goal" class="slds-cell-wrap" style="vertical-align:top;" headers="d107821e71 ">Unapply an applied credit memo from an invoice</td>

          <td data-label="API" class="slds-cell-wrap" style="vertical-align:top;" headers="d107821e74 ">
            <p><a href="https://developer.salesforce.com/docs/atlas.en-us.revenue_lifecycle_management_dev_guide.meta/revenue_lifecycle_management_dev_guide/connect_resources_credit_memo_invoice_application_unapply.htm" target="_blank">Unapply Credit Memo API</a></p>
            <p style="margin-bottom:0;">To automate the
              process of unapplying credits, build a custom flow and use the <a href="https://developer.salesforce.com/docs/atlas.en-us.revenue_lifecycle_management_dev_guide.meta/revenue_lifecycle_management_dev_guide/actions_obj_run_unapply_credit.htm" target="_blank">Unapply Credit action</a>. When the <a href="https://help.salesforce.com/s/articleView?id=ind.billing_setup_credit_memo_features_enable.htm&amp;release=264.0.0&amp;type=5" title="Set up Billing to automatically create credit memos from negative invoice lines and apply them to settle outstanding invoice balances, and to configure whether credits apply to invoices or invoice lines.">credit application level is Invoice</a>, this action unapplies credit memos
              from invoices and creates a related Credit Memo Invoice Application record of type
              Unapplied for the existing Credit Memo Invoice Application record of type
              Applied.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Goal" class="slds-cell-wrap" style="vertical-align:top;" headers="d107821e71 ">Unapply an applied credit memo line from an invoice line</td>

          <td data-label="API" class="slds-cell-wrap" style="vertical-align:top;" headers="d107821e74 ">
            <p><a href="https://developer.salesforce.com/docs/atlas.en-us.revenue_lifecycle_management_dev_guide.meta/revenue_lifecycle_management_dev_guide/connect_resources_credit_memo_line_level_unapply.htm" target="_blank">Unapply Credit Memo Line API</a></p>
            <p style="margin-bottom:0;">To automate the
              process of unapplying credits, build a custom flow and use the <a href="https://developer.salesforce.com/docs/atlas.en-us.revenue_lifecycle_management_dev_guide.meta/revenue_lifecycle_management_dev_guide/actions_obj_run_unapply_credit.htm" target="_blank">Unapply Credit action</a>. When the <a href="https://help.salesforce.com/s/articleView?id=ind.billing_setup_credit_memo_features_enable.htm&amp;release=264.0.0&amp;type=5" title="Set up Billing to automatically create credit memos from negative invoice lines and apply them to settle outstanding invoice balances, and to configure whether credits apply to invoices or invoice lines.">credit application level is Invoice Line</a>, this action unapplies credit
              memos lines from invoice lines and creates a related Credit Memo Line Invoice Line
              record of type Unapplied for the existing Credit Memo Line Invoice Line record of
              type Applied.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Goal" class="slds-cell-wrap" style="vertical-align:top;" headers="d107821e71 ">Convert a list of invoice lines with a negative amount into a posted credit
            memo</td>

          <td data-label="API" class="slds-cell-wrap" style="vertical-align:top;" headers="d107821e74 "><a href="https://developer.salesforce.com/docs/atlas.en-us.revenue_lifecycle_management_dev_guide.meta/revenue_lifecycle_management_dev_guide/connect_resources_convert_negative_invoice_lines_to_credit.htm" target="_blank">Convert Negative Invoice Lines into Credit Memos
              API</a></td>

        </tr>
      </tbody>
    </table>