---
schema_version: "1"
id: 9345563e5c3c638497f69647e9db51db47fa3857bb0bc344e4298edea7b7dc48
title: Price Cart 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_b2b_comm_actions_price_cart.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_b2b_comm_actions_price_cart.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: d3a14c377298eba05f7189646da023a968c5d0c965d54a2c5d7dfb872023fb5d
description: In a B2B Commerce Checkout flow, request a reprice of all line items in a cart.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Price Cart Action

In a B2B Commerce Checkout flow, request a reprice of all line items in a cart.

### 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></tbody></table>

In Flow Builder, add an Action element to your flow. Select the **B2B Commerce** category, and search for **Price Cart**. To access this action from the API, use the name `priceCart`.

## Set Input Values

Use values from earlier in the flow to set the inputs.

 
| Input Parameter | Description |
| --- | --- |
| **cartId** | The ID of the cart containing the items that you want to reprice. |

## Store Output Values

 
| Output Parameter | Description |
| --- | --- |
| **backgroundOperationId** | The ID of the background operation that processes the total price of all items in the cart. |

## Error Conditions

<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="d303365e151">Error Condition</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d303365e154">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Error Condition" class="slds-cell-wrap" style="vertical-align:top;" headers="d303365e151 ">Invalid CartId Input</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d303365e154 ">
              <p>The cart ID value isn’t accepted.</p>
              <p>Error Code: UNKNOWN_EXCEPTION</p>
              <p style="margin-bottom:0;">HTTP Status Code: 500</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Error Condition" class="slds-cell-wrap" style="vertical-align:top;" headers="d303365e151 ">User Can’t Invoke Action</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d303365e154 ">
              <p>The caller doesn’t have the appropriate permissions to call the action, including the MAD
                or B2B Commerce Integrator user perms.</p>
              <p>Error Code: BAD_REQUEST</p>
              <p style="margin-bottom:0;">HTTP Status Code: 400</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Error Condition" class="slds-cell-wrap" style="vertical-align:top;" headers="d303365e151 ">User Doesn’t Have Access to the Cart</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d303365e154 ">
              <p>The buyer doesn’t own the cart, doesn’t have read access to the cart, or the cart isn’t
                shared with the buyer.</p>
              <p>Error Code: BAD_REQUEST</p>
              <p style="margin-bottom:0;">HTTP Status Code: 400</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Error Condition" class="slds-cell-wrap" style="vertical-align:top;" headers="d303365e151 ">Cart Isn’t in the Checkout State</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d303365e154 ">
              <p>The cart status isn’t in the Checkout state and can’t continue.</p>
              <p>Error Code: INVALID_OPERATION</p>
              <p style="margin-bottom:0;">HTTP Status Code: 403</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Error Condition" class="slds-cell-wrap" style="vertical-align:top;" headers="d303365e151 ">Integration Is Already in Progress</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d303365e154 ">
              <p>Only one integration can be processed at a time. This error indicates when an integration
                is already running.</p>
              <p>Error Code: ALREADY_IN_PROCESS</p>
              <p style="margin-bottom:0;">HTTP Status Code: 400</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Error Condition" class="slds-cell-wrap" style="vertical-align:top;" headers="d303365e151 ">Account Associated With the Cart Isn’t Valid or Accessible</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d303365e154 ">
              <p>The effective account listed isn’t valid.</p>
              <p>Error Code: INSUFFICIENT_ACCESS_OR_READONLY</p>
              <p style="margin-bottom:0;">HTTP Status Code: 500</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Error Condition" class="slds-cell-wrap" style="vertical-align:top;" headers="d303365e151 ">User Isn’t a Member of the Store</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d303365e154 ">
              <p>The user isn’t a member of the store.</p>
              <p>Error Code: INSUFFICIENT_ACCESS_OR_READONLY</p>
              <p style="margin-bottom:0;">HTTP Status Code: 500</p>
            </td>

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

## Usage

This action runs asynchronously using the pricing service configured in [StoreIntegratedService](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_storeintegratedservice.htm).

#### 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.")