---
schema_version: "1"
id: 6ebd52ee06d27faf91295c7aa42452658ca6d2212c41cbc4cf057b827218b1e7
title: Allow Multiple Credit Types for Refunds
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/om_flow_enable_unreferenced_refund.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.om_flow_enable_unreferenced_refund.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 3d0b30c60b78364f98a90b13bf03d3763a8d1dbf07280469b983768fdd3091b7
description: You can use all Order Management service flows out of the box, and you can also customize a flow and expand its functionality. This customization lets you process returns as unreferenced refunds. Unreferenced refunds are disconnected from the original payment method, so the funds can be returned to any credit type. You can enable unreferenced refunds in the return and RMA flows.
products:
  - Commerce
  - Salesforce Order Management
release: "264"
---
# Allow Multiple Credit Types for Refunds

You can use all Order Management service flows out of the box, and you can also customize a flow and expand its functionality. This customization lets you process returns as unreferenced refunds. Unreferenced refunds are disconnected from the original payment method, so the funds can be returned to any credit type. You can enable unreferenced refunds in the return and RMA flows.

Before customizing the flows, add [credit types](https://help.salesforce.com/s/articleView?id=commerce.om_create_credit_types.htm&release=264.0.0&type=5 "Add credit types to control and expand how refunds are returned when a customer returns an item. A customer service representative can divide the refund amount across multiple credit types.") to your store to provide a wider selection of credit types to assign refunds to. All orgs by default have the Credit type created and enabled. Only enabled credit types are available in your flows.

This task provides information about customizing both the Return RMA flow and the Return Item flow. To enable unreferenced refunds for Return RMA, modify both the Return RMA flow and the Create Credit Memo and Ensure Refund flow. To enable unreferenced refunds for Return Item, modify the Return Item flow.

1. Click ![Setup](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-commerce-om_order_management-264-0-0-production-enus/4c4844e3-a194-4a65-95b7-17291a6dbefa/om_order_management/images/om_setup_icon_no_border.png) at the top of the page, and then select **Setup**.
2. In the Quick Find box, enter flows, and select **Flows**.
3. Select the Return RMA flow, Create Credit Memo and Ensure Refund flow, or the Return Item flow template. The template has the Template column of the table checked.
4. In a different tab, find and open your existing version of the flow you’re modifying.
5. To modify the Return RMA flow, use the template as a reference. Create or modify each of these variables and elements in your cloned flow.
    
    Insert these variables:
    
    - paymentCredit
    - refund
    - refundInstructionsHint
    
    Insert these elements:
    
    - Payment Credit Sequence - Collection Sort
    - Refund Sequence - Collection Sort
    - Refund Instruction Hint Input Representation - Transform
    
    Make these element modifications:
    
    - Return Order Input: Add an assignment for the refund instruction hint.
    - Preview Changes: See steps 8 through 12.
6. To modify the Return Item flow, use the template as a reference. Create or modify each of these variables and elements in your cloned flow.
    
    Insert these variables:
    
    - paymentCredit
    - refund
    - refundInstructionsHint
    
    Insert these elements:
    
    - Ensure Payment Credit Sequence - Collection Sort
    - Ensure Payment Credit Input - Transform
    - Ensure Refund Sequence - Collection Sort
    - Ensure Refund Sequence Input - Transform
    - Ensure Refund Input - Assignment
    
    Make these element modifications:
    
    - Return Order Input: Add an assignment for the refund instruction hint.
    - Preview Changes: See steps 8 through 12.
7. To modify the Create Credit and Ensure Refund flow, use the template as a reference. Create or modify each of these variables and elements in your cloned flow.
    
    Insert these variables:
    
    - paymentCreditSequence
    - refundSequenceItemOutputRepresentation
    - refundSequenceList
    - refundSequenceEntry
    
    Insert these text templates:
    
    - GetRecordsReturnReturnOrderItemsFaultDescription
    - GetRecordsReturnReturnOrderItemsFaultMessage
    - CreateInvoiceInvocableFaultMessage
    - ReturnReturnOrderItemsInvocableFaultMessage
    - CreateCreditMemoInvocableFaultMessage
    - EnsureRefundsInvocableFaultMessage
    - EnsurePaymentCreditInvocableFaultMessage
    
    Insert these elements:
    
    - Ensure Payment Credit Amount
    - Ensure Payment Credit Required? - Decision
    - Payment Credit Sequence - Assignment
    - Payment Credit Sequence - Collection sort
    - Ensure Refund Input - Transform
    - Ensure Payment Credit - Action
    - Ensure Payment Credit Fault Description - Assignment
    - Payment Credit - Loop
    - Payment Credit - Update records
    - Credit Memo - Get records
    - Ensure Refunds Required? - Decision
    - End - End
    - Refunds Hint - Assignment
    - Refunds Hint - Collection Sort
    - Refunds Hint - Loop
    - Refund Sequence Entry - Assignment
    - Refund Sequence List - Assignment
    
    Make these element modifications:
    
    - Ensure Refunds Input: Insert the refundsSequenceList.
    - Fault Description: Change to Ensure Refunds Fault Description and replicate component.
8. For both the Return Item and Return RMA flows, find and select **PreviewChanges**.
9. Select **OMS Change Review**.
10. Set Use Setup Refund Instructions to true.
11. Set the Use Credit Types field to true.
12. Set the Payment Credit Type entries field. <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
          <tbody><tr class="">
            <th style="vertical-align:top;" headers="d46708e331-option" id="d46708e335">Use all credit types</th>

            <td style="vertical-align:top;" headers="d46708e331-desc d46708e335">Keep the field empty.</td>

          </tr>
          <tr class="">
            <th style="vertical-align:top;" headers="d46708e331-option" id="d46708e344">Specify each credit type</th>

            <td style="vertical-align:top;" headers="d46708e331-desc d46708e344">Enter the API name of each credit type in the field as a comma-delineated
              list.</td>

          </tr>
          <tr class="">
            <th style="vertical-align:top;" headers="d46708e331-option" id="d46708e353">Create a custom list of credit types</th>

            <td style="vertical-align:top;" headers="d46708e331-desc d46708e353">
              <p>Create a text list variable in the flow. </p>
              <p>After the Set Stage to Stage 5 Assignment, create an Assignment. Create a resource and
                select Variable as the type. Name the variable, set the Data Type to Text, and allow
                multiple values. Click <strong class="uicontrol">Done</strong>.</p>
              <p>Use the new list as a variable to create an assignment for each credit type, with or
                without conditions.</p>
              <p>In the PreviewChanges element, enter that list in the Payment Credit Type entries
                field.</p>
            </td>

          </tr>
        </tbody></table>
13. Save your flow.

#### See Also

- [Add Credit Types for Refunds](https://help.salesforce.com/s/articleView?id=commerce.om_create_credit_types.htm&release=264.0.0&type=5 "Add credit types to control and expand how refunds are returned when a customer returns an item. A customer service representative can divide the refund amount across multiple credit types.")
- [Unreferenced Refunds](https://help.salesforce.com/s/articleView?id=commerce.om_unreferenced_refunds.htm&release=264.0.0&type=5 "By default, when a product is returned, the refund is credited to the original payment source. To credit the refund to a different source, process the return as an unreferenced refund. You can credit an unreferenced refund amount to any credit type configured in your org.")