# Subflow: Credit Memo

**LFS version:** requires Limio for Salesforce v12.18 or later

**Limio version requirement**: requires Limio v93 or later

Credit memos are official documents vendors use to rectify billing errors, oversee outstanding balances on invoices or accounts. Also credit memos can be issued to customers as a form of appeasement, compensation or goodwill gesture in situations where a vendor seeks to address concerns or dissatisfaction, fostering a positive relationship with the customer.\
\
These memos effectively lower both the invoice and account balances. When applied to invoices with positive balances, credit memos work similarly to applying payments, resulting in a reduction of the invoice balances.\
\
Limio for Salesforce introduces a new subscription action supported by Limio Manage Subscriptions flow: Credit Memo.

### How to enable Credit Memo action & define reasons list

This action is hidden by default. In order to make it visible, follow these steps:

1. Navigate to **Custom Metadata Types -> icAssistConfig -> Manage records -> Subscription Actions**
2. Edit the **Config** field:
   1. add a new **allowCreditMemoAction** boolean property and set it to *true*.
   2. add a new **creditMemoReasons** property: assign a *list of strings* for reasons.

### Action visibility rules

Credit Memo action is available for subscriptions with Active, Cancelled or Lapsed status and if *allowCreditMemoAction* config is set to true.

<figure><img src="/files/bux5xQBc9ph1NchYAFlE" alt=""><figcaption></figcaption></figure>

### Flow overview

This flow consists of the following elements:

<figure><img src="/files/xnrLN9DyUqpm7EExYDoh" alt=""><figcaption></figcaption></figure>

1. **Get reasons** - Apex Action that fetches reasons list for credit memo orders. Output of this action is written into a **Reasons** flow property - a collection of **i42as\_\_PicklistChoice**.

   List\<i42as.PicklistChoice> Reasons;

   If you'd like to fetch reasons from a different location in the org using your custom Apex, feel free to do so as long as the return type is List\<i42as.PicklistChoice> and you write the output into the **Reasons** variable.
2. **Credit Memo Screen** - contains two components:\
   \&#xNAN;*Limio Order Total* - renders Zuora Preview for a selected credit memo.\
   ![](/files/n6CS3sjcPkPqsJWlz6A9)<br>

   *Limio Order - Credit Memo* - accepts the list Reasons, Selected Subscription and additionally self-references orderItems. It allows selecting a credit memo, changing quantity on the selected item and publishes these updates back to the flow.\
   ![](/files/zckwX8xtDt7BY18pCUG3)
3. **Order Summary** - consistently with the other Manage Subscription flow journeys, this component displays a brief summary of the order and order total, and allows submitting the order to Limio.

### How to add Credit Memo subflow to an existing copy of Manage Subscriptions flow

{% embed url="<https://www.loom.com/share/7e551afd5ba14b1ab6cadc385fd9e1b0>" %}

### How to customise the experience

1. By default the action is called Credit Memo. This label is reused in several places across the flow. It is possible to relabel the action on the main Credit Memo screen and the Order Summary screen by passing your custom label into an Action Label property.<br>

   Custom label is going to be reflected in the highlighted areas on the screen:

   <figure><img src="/files/TAhhxsCqrsucxA9g63w5" alt=""><figcaption></figcaption></figure>

   <figure><img src="/files/xwBjOmGXxMrZftX7gXAq" alt=""><figcaption></figcaption></figure>
2. In order to relabel the action in the subscription actions dropdown, please refer to this document for more details: [Override Supported Subscription Actions](/integrations/setting-up-limio-for-salesforce/subscription-actions-rules/override-subscription-actions.md)
3. If you'd like to always offer to the customer a credit memo of a certain type during this journey, learn how to adjust the add-on type selection here: [Specify Types of Add-Ons to Display](/integrations/setting-up-limio-for-salesforce/add-ons-config/add-ons-display-types.md)

Related article:

1. [Open Credit Memo](/integrations/using-limio-for-salesforce/manage-subscriptions-flow/subflow-credit-memo/open-credit-memo.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.limio.com/integrations/using-limio-for-salesforce/manage-subscriptions-flow/subflow-credit-memo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
