---
schema_version: "1"
id: a5ba77b48451102b4ff453505dfb3a30306f7678376a72d479a692e5975a3f4e
title: Create Order Payment Summary Action
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/flow_ref_elements_om_actions_create_op_summary.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_om_actions_create_op_summary.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 660240745ca27247008ed9d2c8d6987d819b41caa578f9cb26c29811d19a3fe6
description: In Salesforce Order Management, create an order payment summary for a payment authorization or payments that use the same payment method and are attached to the same order summary.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Create Order Payment Summary Action

In Salesforce Order Management, create an order payment summary for a payment authorization or payments that use the same payment method and are attached to the same order summary.

### 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;"><a href="https://help.salesforce.com/s/articleView?id=platform.flow_ref_supported_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Flow Builder. Some Flow Builder features integrate with other Salesforce products that require additional licenses.">View supported editions.</a></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">This feature requires the Salesforce Order Management add-on. To purchase, contact your Salesforce account executive.</td></tr></tbody></table>

In Flow Builder, add an Action element to your flow. Select the **Order Management** category, and search for **Create Order Payment Summary**.

## Set Input Values

Use values from earlier in the flow to set the inputs. Include at least one payment authorization or list of payments. You don’t need both.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:17.006802721088434%">
          <col style="width:82.99319727891157%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d86883e83">Input Parameter</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d86883e85">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d86883e83 "><strong class="uicontrol">Order Payment Summary Create Input</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d86883e85 ">
              <p>This input is an Apex-defined variable of class <a href="https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_connectapi_input_create_order_payment_summary.htm" target="_blank">ConnectApi.CreateOrderPaymentSummaryInputRepresentation</a>.</p>
              <p>The variable
                includes these fields:</p>
              <ul>
                <li><strong class="uicontrol">orderSummaryId</strong> — Reference to the order summary
                  associated with the payments. In orgs with the multicurrency feature enabled,
                  the order payment summary inherits the <strong class="uicontrol">ISO Currency</strong> value
                  from the order summary.</li>
                <li><strong class="uicontrol">paymentAuthorizationId</strong> — Reference to the payment
                  authorization to associate with the summary.</li>
                <li><strong class="uicontrol">paymentIds</strong> — List of IDs of the payments to
                  associate with the summary.</li>
              </ul>
            </td>
          </tr>
        </tbody>
      </table>

## Store Output Values

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:17.513134851138354%">
          <col style="width:82.48686514886164%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d86883e134">Output Parameter</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d86883e137">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Output Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d86883e134 ">
              <strong class="uicontrol">Order Payment Summary Output</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d86883e137 ">
              <p>This value is an Apex-defined variable of class <a href="https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_connectapi_output_create_order_payment_summary_output.htm" target="_blank">ConnectApi.CreateOrderPaymentSummaryOutputRepresentation</a>.</p>
              <p style="margin-bottom:0;">The
                <strong class="uicontrol">orderPaymentSummaryId</strong> field contains the ID of the created
                order payment summary.
              </p>
            </td>

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

## Usage

To set up the Order Payment Summary Create Input for payments, first use Assignment elements to add the payment IDs to a list of strings variable. Then use that variable in the action input.

#### See Also

- [Add and Edit Elements](https://help.salesforce.com/s/articleView?id=platform.flow_build_elements.htm&release=264.0.0&type=5 "Use elements to define actions that the flow can run. When they’re on the canvas, connect them to create the order in which they run.")