Loading
Salesforce now sends email only from verified domains. Read More
Automate Your Business Processes
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Delete Cart Action

          Delete Cart Action

          In a B2B Commerce Checkout flow, delete a cart.

          Required Editions

          Available in: Lightning Experience
          View supported editions.
          Note
          Note Cart actions aren’t available in flows for B2B stores built on an Aura template. To build a B2B Commerce Checkout flow for an Aura store, see B2B Commerce Checkout Flow (Aura).

          In Flow Builder, add an Action element to your flow. Select the Commerce category, and search for Delete Cart. To access this action from REST API, use the name deleteCart.

          Set Input Values

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

          Input ParameterDescription
          Cart State or ID ID of the cart or state of the cart to delete. Valid state values are: active and current. A current cart is neither closed nor pending deletion.
          effectiveAccountId (Optional) ID of the buyer account or guest buyer profile for which the request is made. If unspecified, the default value is determined from context.
          Web Store ID ID of the web store associated with the cart.

          Store Output Values

          Output values aren’t available for this action.

          Error Conditions

          Error Condition Description

          The user doesn’t have access to the cart.

          Error Message: You don't have access to this cart. If possible, contact the admin for this web store.

          Error Code: INSUFFICIENT_ACCESS_OR_READONLY

          HTTP Status Code: 400

           
          Loading
          Salesforce Help | Article