Loading
Prepare for Email to Become the Default Login ExperienceRead More
Intermittent freezing when using using certain browser versionsRead More
Automate Your Business Processes with Salesforce Flow
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